diff --git a/src/app/main.cpp b/src/app/main.cpp index 047a119891..5afdcee993 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -117,9 +117,9 @@ int main( int argc, char **argv ) qtTranslatorLoaded = qtTranslator.load( QStringLiteral( "qt_%1" ).arg( customLanguage ), QStringLiteral( ":/i18n/" ), "_" ); } if ( !qfieldTranslatorLoaded || qfieldTranslator.isEmpty() ) - ( void ) qfieldTranslator.load( QLocale(), "qfield", "_", ":/i18n/" ); + ( void ) qfieldTranslator.load( QLocale( QLocale::system().name() ), "qfield", "_", ":/i18n/" ); if ( !qtTranslatorLoaded || qtTranslator.isEmpty() ) - ( void ) qtTranslator.load( QLocale(), "qt", "_", ":/i18n/" ); + ( void ) qtTranslator.load( QLocale( QLocale::system().name() ), "qt", "_", ":/i18n/" ); dummyApp->installTranslator( &qtTranslator ); dummyApp->installTranslator( &qfieldTranslator );