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. */
|
||||
gnc_localeconv ();
|
||||
/* Process the languages, including the one from the Apple locale. */
|
||||
if ([languages count] > 0)
|
||||
mac_set_languages(languages, lang_str);
|
||||
else
|
||||
g_setenv("LANGUAGE", [lang_str UTF8String], TRUE);
|
||||
if (g_getenv("LANGUAGE") == NULL)
|
||||
{
|
||||
if ([languages count] > 0)
|
||||
mac_set_languages(languages, lang_str);
|
||||
else
|
||||
g_setenv("LANGUAGE", [lang_str UTF8String], TRUE);
|
||||
}
|
||||
[languages release];
|
||||
[pool drain];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user