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:
@@ -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