install and load Qt translation files on win32
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1692 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
2008-09-22 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* src/core/main.cpp:
|
||||
* data/locale/CMakeLists.txt:
|
||||
install and load Qt translation files on win32
|
||||
|
||||
* src/core/song.cpp:
|
||||
fixed file-dialog for choosing export filename
|
||||
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
FILE(GLOB QM_FILES *.qm)
|
||||
INSTALL(FILES ${QM_FILES} DESTINATION ${LMMS_DATA_DIR}/locale)
|
||||
IF(LMMS_BUILD_WIN32)
|
||||
FILE(GLOB QT_QM_FILES ${QT_TRANSLATIONS_DIR}/qt*[^h].qm)
|
||||
ENDIF(LMMS_BUILD_WIN32)
|
||||
INSTALL(FILES ${QM_FILES} ${QT_QM_FILES} DESTINATION ${LMMS_DATA_DIR}/locale)
|
||||
|
||||
|
||||
@@ -313,6 +313,12 @@ int main( int argc, char * * argv )
|
||||
|
||||
|
||||
QString pos = QLocale::system().name().left( 2 );
|
||||
|
||||
#ifdef LMMS_BUILD_WIN32
|
||||
#undef QT_TRANSLATIONS_DIR
|
||||
#define QT_TRANSLATIONS_DIR configManager::inst()->localeDir()
|
||||
#endif
|
||||
|
||||
#ifdef QT_TRANSLATIONS_DIR
|
||||
// load translation for Qt-widgets/-dialogs
|
||||
loadTranslation( QString( "qt_" ) + pos,
|
||||
|
||||
Reference in New Issue
Block a user