mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Let override AppleLanguages on Macs.
This commit is contained in:
parent
c87870f9d0
commit
35a64ffaf8
@ -258,10 +258,13 @@ set_mac_locale()
|
|||||||
* before another call to setlocale messes it up. */
|
* before another call to setlocale messes it up. */
|
||||||
gnc_localeconv ();
|
gnc_localeconv ();
|
||||||
/* Process the languages, including the one from the Apple locale. */
|
/* Process the languages, including the one from the Apple locale. */
|
||||||
|
if (g_getenv("LANGUAGE") == NULL)
|
||||||
|
{
|
||||||
if ([languages count] > 0)
|
if ([languages count] > 0)
|
||||||
mac_set_languages(languages, lang_str);
|
mac_set_languages(languages, lang_str);
|
||||||
else
|
else
|
||||||
g_setenv("LANGUAGE", [lang_str UTF8String], TRUE);
|
g_setenv("LANGUAGE", [lang_str UTF8String], TRUE);
|
||||||
|
}
|
||||||
[languages release];
|
[languages release];
|
||||||
[pool drain];
|
[pool drain];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user