From dbb0148a7045d9b9378a12cda13daa1fcd382a27 Mon Sep 17 00:00:00 2001 From: Volker Fischer Date: Sat, 20 Jun 2020 12:40:47 +0200 Subject: [PATCH] changed translation management so that not only the PC language setting is used but also the country --- src/main.cpp | 2 +- src/resources.qrc | 28 ++++++++++++++-------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 8acd1a43..251ec0d0 100755 --- a/src/main.cpp +++ b/src/main.cpp @@ -587,7 +587,7 @@ int main ( int argc, char** argv ) if ( bUseGUI && bUseTranslation ) { - if ( myappTranslator.load ( ":/translations/translation.qm" ) ) + if ( myappTranslator.load ( QLocale(), "translation", "_", ":/translations" ) ) { pApp->installTranslator ( &myappTranslator ); } diff --git a/src/resources.qrc b/src/resources.qrc index bc735b5b..8539e4d8 100755 --- a/src/resources.qrc +++ b/src/resources.qrc @@ -1,24 +1,24 @@ - - res/translation/translation_de_DE.qm + + res/translation/translation_de_DE.qm - - res/translation/translation_fr_FR.qm + + res/translation/translation_fr_FR.qm - - res/translation/translation_pt_PT.qm + + res/translation/translation_pt_PT.qm - - res/translation/translation_es_ES.qm + + res/translation/translation_es_ES.qm - - res/translation/translation_nl_NL.qm + + res/translation/translation_nl_NL.qm - - res/translation/translation_it_IT.qm + + res/translation/translation_it_IT.qm - - res/translation/translation_pl_PL.qm + + res/translation/translation_pl_PL.qm