Skip to content

Commit

Permalink
main: fix installation of qt translator
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Feb 16, 2014
1 parent 7f9a755 commit e0c761c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/main.cpp
Expand Up @@ -790,6 +790,7 @@ int main( int argc, char *argv[] )
}

QTranslator qgistor( 0 );
QTranslator qttor( 0 );
if ( myTranslationCode != "C" )
{
if ( qgistor.load( QString( "qgis_" ) + myTranslationCode, i18nPath ) )
Expand All @@ -806,7 +807,6 @@ int main( int argc, char *argv[] )
* the About, Preferences and Quit items to the Mac Application menu.
* These items must be translated identically in both qt_ and qgis_ files.
*/
QTranslator qttor( 0 );
if ( qttor.load( QString( "qt_" ) + myTranslationCode, QLibraryInfo::location( QLibraryInfo::TranslationsPath ) ) )
{
myApp.installTranslator( &qttor );
Expand Down

0 comments on commit e0c761c

Please sign in to comment.