Skip to content

Commit 1336dfd

Browse files
author
jef
committedApr 21, 2011
add runtime warning if loading of translation fails
git-svn-id: http://svn.osgeo.org/qgis/trunk@15796 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 28f5cbc commit 1336dfd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎src/app/main.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -521,6 +521,10 @@ int main( int argc, char *argv[] )
521521
{
522522
myApp.installTranslator( &qgistor );
523523
}
524+
else
525+
{
526+
qWarning( "loading of qgis translation failed [%s]", QString( "%1/qgis_%2" ).arg( i18nPath ).arg( myTranslationCode ).toLocal8Bit().constData() );
527+
}
524528

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

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

0 commit comments

Comments
 (0)
Please sign in to comment.