Avoid setting globally QLocale which was introduced in a recent MR as it will change number formats, etc. which is not necessarily what a user switching language wants. Beside that

small fix of a trasnlation comment.
This commit is contained in:
Andre Rummler
2026-09-21 12:40:52 +02:00
parent 3202c145e8
commit 24776bfcf6
5 changed files with 19 additions and 12 deletions
+3 -1
View File
@@ -236,7 +236,7 @@ QString QETApp::loadedQtTranslationFile()
void QETApp::setLanguage(const QString &desired_language) {
QString languages_path = languagesPath();
QLocale::setDefault(QLocale(desired_language));
m_interface_language = desired_language;
// load Qt library translations
QString qt_l10n_path = QLibraryInfo::path(QLibraryInfo::TranslationsPath);
@@ -3045,3 +3045,5 @@ int QETApp::projectId(const QETProject *project) {
}
return(-1);
}
QString QETApp::m_interface_language;