diff options
| author | Ingo Klöcker <[email protected]> | 2025-11-26 09:38:47 +0100 |
|---|---|---|
| committer | Werner Koch <[email protected]> | 2025-11-26 11:28:31 +0100 |
| commit | 7f3e0c3942812d975fecc75b32493bb0c48b100c (patch) | |
| tree | 53f39399ef3417323b7118cd0d642829f1747090 /src | |
| parent | po: Update Portuguese translation (diff) | |
| download | libgpg-error-7f3e0c3942812d975fecc75b32493bb0c48b100c.tar.gz libgpg-error-7f3e0c3942812d975fecc75b32493bb0c48b100c.zip | |
Use UI language instead of locale for translations
* src/w32-gettext.c (my_nl_locale_name): Use GetThreadUILanguage instead
of GetThreadLocale.
--
This ensures that the user configured display language is used even if
the regional format (which is meant for dates and times) is set to
another locale.
GetThreadUILanguage is available since Windows Vista and Windows Server
2008.
GnuPG-bug-id: 7874
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32-gettext.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/w32-gettext.c b/src/w32-gettext.c index 5b15a77..eb65424 100644 --- a/src/w32-gettext.c +++ b/src/w32-gettext.c @@ -648,8 +648,8 @@ my_nl_locale_name (const char *categoryname) if (retval != NULL && retval[0] != '\0') return retval; - /* Use native Win32 API locale ID. */ - lcid = GetThreadLocale (); + /* Use native Win32 API language ID. */ + lcid = GetThreadUILanguage (); /* Strip off the sorting rules, keep only the language part. */ langid = LANGIDFROMLCID (lcid); } |
