Skip to content

Commit e745ffa

Browse files
committed
try to fix #406, no UI translation now for LANG=en_* (not only en_US)
Signed-off-by: Martin <Ho-Ro@users.noreply.github.com>
1 parent 17d05f8 commit e745ffa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
2025-03-08 (17d05f8): add persistent option "doNotTranslate" to bypass the localisation
12
2025-03-04 (7b8942a): Show oversampling factor on top of screen
23
2025-03-03 (3f42320): finetuning the build process - no OH6022 changes
34
2025-03-03 (b174c4c): test for macos intel and arm64 build

openhantek/src/main.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,8 @@ int main( int argc, char *argv[] ) {
139139
//////// Load translations for command line help texts ////////
140140
QTranslator qtTranslator;
141141
QTranslator parserTranslator;
142-
143-
if ( !doNotTranslate && useLocale &&
144-
QLocale().name() != "en_US" ) { // somehow Qt on MacOS uses the german translation for en_US?!
142+
// feedback from a mac user: "somehow Qt on MacOS uses the german translation for en_US?!"
143+
if ( !doNotTranslate && useLocale && QLocale().name().left( 3 ) != "en_" ) { // l18n only in these cases
145144
if ( qtTranslator.load( "qt_" + QLocale().name(), QLibraryInfo::location( QLibraryInfo::TranslationsPath ) ) ) {
146145
parserApp.installTranslator( &qtTranslator );
147146
}

0 commit comments

Comments
 (0)