Skip to content
Permalink
Browse files

main: fix installation of qt translator

  • Loading branch information
jef-n committed Feb 16, 2014
1 parent 7f9a755 commit e0c761ccd5cb5be5469635640cbbf2ee951561b3
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/main.cpp
@@ -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 ) )
@@ -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 );

0 comments on commit e0c761c

Please sign in to comment.
You can’t perform that action at this time.