Skip to content
Permalink
Browse files

use system qt translations

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@14856 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef
jef committed Dec 6, 2010
1 parent 59e161e commit a97065f951fb47aef55b6b8e05b3bc7fa7c5d0fa
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 a97065f

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