Bug 576910: Show 'Language' setting languages in native language

Showing the current system locale between square brackets in the
"System Language" item was causing some issues on some systems (showing
some very weird and long value).
This was mostly a cosmetic change anyway with limited gain. Let's
just get rid of it. The main part of the feature (each language
displayed in itself) is still there.
This commit is contained in:
Jehan 2013-07-05 23:38:10 +09:00
parent ba9fbde288
commit fc873cd6c3
1 changed files with 1 additions and 2 deletions

View File

@ -99,8 +99,7 @@ gimp_translation_store_constructed (GObject *object)
* We want the system locale to be localized in itself. */
g_setenv ("LANGUAGE", setlocale (LC_ALL, NULL), TRUE);
setlocale (LC_ALL, "");
label = g_strdup_printf ("%s [%s]", _("System Language"),
setlocale (LC_ALL, NULL));
label = g_strdup_printf ("%s", _("System Language"));
g_setenv ("LANGUAGE", current_lang, TRUE);
setlocale (LC_ALL, "");
g_free (current_lang);