Skip to content
Permalink
Browse files

use system qt translations

git-svn-id: http://svn.osgeo.org/qgis/trunk@14856 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Dec 6, 2010
1 parent 7e5d546 commit 28fa451930e8eee6d51353ede0e998136cdf77d9
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/app/main.cpp
@@ -592,13 +592,14 @@ int main( int argc, char *argv[] )
{
myApp.installTranslator( &qgistor );
}

/* Translation file for Qt.
* The strings from the QMenuBar context section are used by Qt/Mac to shift
* 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, i18nPath ) )
if ( qttor.load( QString( "qt_" ) + myTranslationCode, QLibraryInfo::location( QLibraryInfo::TranslationsPath ) ) )
{
myApp.installTranslator( &qttor );
}

0 comments on commit 28fa451

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