1
1
mirror of https://gitlab.gnome.org/GNOME/gimp.git synced 2025-10-06 01:12:40 +02:00

tools: fix self-localization of languages for Windows.

Basically reusing the solution from commit 7ccfad1716.
This commit is contained in:
Jehan
2024-08-15 12:07:12 +02:00
parent 90fb84de26
commit 364f541336

View File

@@ -321,6 +321,7 @@ gimp_language_store_parser_init (GError **error)
* If it fails, gettext fallbacks to C (en_US) itself.
*/
g_setenv ("LANGUAGE", code, TRUE);
g_setenv ("LANG", code, TRUE);
setlocale (LC_ALL, "");
localized_name = g_strdup (dgettext ("iso_639_3", english_name));
@@ -334,6 +335,7 @@ gimp_language_store_parser_init (GError **error)
g_free (localized_name);
g_setenv ("LANGUAGE", base_code, TRUE);
g_setenv ("LANG", base_code, TRUE);
setlocale (LC_ALL, "");
localized_name = g_strdup (dgettext ("iso_639_3", english_name));