Skip to content
Permalink
Browse files
add runtime warning if loading of translation fails
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@15796 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Apr 21, 2011
1 parent 9b6c1bc commit 3ca58b49ecc61100ec3d102217a3270abd6a993f
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/app/main.cpp
@@ -521,6 +521,10 @@ int main( int argc, char *argv[] )
{
myApp.installTranslator( &qgistor );
}
else
{
qWarning( "loading of qgis translation failed [%s]", QString( "%1/qgis_%2" ).arg( i18nPath ).arg( myTranslationCode ).toLocal8Bit().constData() );
}

/* Translation file for Qt.
* The strings from the QMenuBar context section are used by Qt/Mac to shift
@@ -532,6 +536,10 @@ int main( int argc, char *argv[] )
{
myApp.installTranslator( &qttor );
}
else
{
qWarning( "loading of qt translation failed [%s]", QString( "%1/qt_%2" ).arg( QLibraryInfo::location( QLibraryInfo::TranslationsPath ) ).arg( myTranslationCode ).toLocal8Bit().constData() );
}

//set up splash screen
QString mySplashPath( QgsApplication::splashPath() );

0 comments on commit 3ca58b4

Please sign in to comment.