Configure / GnuPG System is not translated:
- en_US
- ja
Configure / GnuPG System is not translated:
| rW Gpg4win | |||
| rW0cd862340031 nsis: Fix uninstallation of vi locale folder | |||
| rW044a488e41ea libgpg-error: Use UI language instead of locale for translations | |||
| rWed64c25f957e libgpg-error: Add all available translations | |||
| rW58813e827970 qttranslations: Update list of translations to install | |||
| rWd55b773fafa7 extra-cmake-modules, ki18n: Add patches to fix wrong display language | |||
| rE libgpg-error | |||
| rE7f3e0c394281 Use UI language instead of locale for translations | |||
For such language tickets please give more information. What are your language settings? Not only in Kleo, the system language settings, too.
You could also try to delete klanguageoverridesrc and check again.
The screenshots were made with
The translation of GnuPG System in Kleopatra (as well as the output of gpg CLI) is in English after setting
So i guess, this is expected? Although a bit unexpected, as the "regional format" description says, it's about "numbers, currency, date and time"
I have no idea how Qt/KDE and how gettext (resp. gnupg's replacement of gettext for Windows) react to Windows's "regional format" setting. It seems that Qt/KDE correctly use English despite German regional format while gnupg uses German.
It's not clear from your comment whether gpg CLI also used German with the settings the screenshots were made with.
Edit: I guess https://dev.gnupg.org/T7886#207284 answers my question.
Notes to self:
The language settings of Windows have strange influence on Kleopatra and GnuPG.
Windows has:
Tested on a German system:
Windows display: en_US + Apps & websites: en_US(:de_DE) + Regional format: en_US -> both use en_US
GetUserPreferredUILanguages: QList("en-US")
QLocale(): QLocale(English, Latin, United States)
QLocale().uiLanguages(): QList("en-US", "en-Latn-US", "en")Windows display: en_US + Apps & websites: de_DE(:en_US) + Regional format: en_US -> both use en_US
GetUserPreferredUILanguages: QList("en-US")
QLocale(): QLocale(English, Latin, United States)
QLocale().uiLanguages(): QList("en-US", "en-Latn-US", "en")Windows display: en_US + Apps & websites: de_DE(:en_US) + Regional format: de_DE -> both use de_DE
GetUserPreferredUILanguages: QList("en-US")
QLocale(): QLocale(German, Latin, Germany)
QLocale().uiLanguages(): QList("de", "de-Latn-DE", "de-DE", "en-US", "en-Latn-US", "en")Windows display: en_US + Apps & websites: en_US(:de_DE) + Regional format: de_DE -> both use de_DE
GetUserPreferredUILanguages: QList("en-US")
QLocale(): QLocale(German, Latin, Germany)
QLocale().uiLanguages(): QList("de", "de-Latn-DE", "de-DE", "en-US", "en-Latn-US", "en")Windows display: de_DE + Apps & websites: de_DE(:en_US) + Regional format: de_DE -> both use de_DE
GetUserPreferredUILanguages: QList("de-DE", "en-US")
QLocale(): QLocale(German, Latin, Germany)
QLocale().uiLanguages(): QList("de-DE", "de-Latn-DE", "de", "en-US", "en-Latn-US", "en")Windows display: de_DE + Apps & websites: en_US(:de_DE) + Regional format: de_DE -> both use de_DE
QLocale(): QLocale(German, Latin, Germany)
QLocale().uiLanguages(): QList("de-DE", "de-Latn-DE", "de", "en-US", "en-Latn-US", "en")Windows display: de_DE + Apps & websites: en_US(:de_DE) + Regional format: en_US -> Kleo de_DE , GnuPG en_US
Windows display: de_DE + Apps & websites: de_DE(:en_US) + Regional format: en_US -> Kleo de_DE , GnuPG en_US
GetUserPreferredUILanguages: QList("de-DE", "en-US")
QLocale(): QLocale(English, Latin, United States)
QLocale().uiLanguages(): QList("de-DE", "de-Latn-DE", "de", "en-US", "en-Latn-US", "en")Conclusions:
Fixed. Kleopatra and the GnuPG System configuration and error messages coming from GnuPG should now always use the configured Windows display language regardless of the Preferred languages or the Regional format. (GnuPG on the command line will still use the Regional format.)
If a different language is configured directly in Kleopatra then this language should be used for everything in Kleopatra. But this functionality should be removed from Kleopatra by deactivating the switch_application_language action. This needs to be done for the special customized VSD and GPD builds.
Tested on gpg4win-5.0.0-beta413 @ win11
Done:
Issues found:
Please create a separate ticket for "The initial language in kleopatra is not selected according to windows settings". This is a bug in KDE Frameworks that's orthogonal to the issues of this ticket.
Actually, Werner wants the possibility to change the language in Kleopatra (or Okular) to be removed from Gpg4win/VSD which would make this issue irrelevant for us.
The remaining issue "Wrong language in GnuPG error messages" is now also fixed. Until there's a new version of libgpg-error I've added the changes as patches.