Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 3ca58b4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/app/main.cpp
Expand Up @@ -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
Expand All @@ -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() );
Expand Down

0 comments on commit 3ca58b4

Please sign in to comment.