mirror of https://github.com/GNOME/gimp.git
tools: fix self-localization of languages for Windows.
Basically reusing the solution from commit 7ccfad1716
.
This commit is contained in:
parent
90fb84de26
commit
364f541336
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue