Skip to content

Commit a97065f

Browse files
author
jef
committedDec 6, 2010
use system qt translations
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14856 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/app/main.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,13 +592,14 @@ int main( int argc, char *argv[] )
592592
{
593593
myApp.installTranslator( &qgistor );
594594
}
595+
595596
/* Translation file for Qt.
596597
* The strings from the QMenuBar context section are used by Qt/Mac to shift
597598
* the About, Preferences and Quit items to the Mac Application menu.
598599
* These items must be translated identically in both qt_ and qgis_ files.
599600
*/
600601
QTranslator qttor( 0 );
601-
if ( qttor.load( QString( "qt_" ) + myTranslationCode, i18nPath ) )
602+
if ( qttor.load( QString( "qt_" ) + myTranslationCode, QLibraryInfo::location( QLibraryInfo::TranslationsPath ) ) )
602603
{
603604
myApp.installTranslator( &qttor );
604605
}

0 commit comments

Comments
 (0)
Please sign in to comment.