Bug 797569 - Swedish account templates not accessible

If environment variable LANG is set to 'Swedish_Sweden' (to work around a gettext bug
affecting Swedish locales) the wrong unix locale was substituted previnting
gnucash from finding the associated account hierarchy templates.
This commit is contained in:
Geert Janssens 2020-01-13 22:25:36 +01:00
parent ead5c94787
commit 826c826cc1

View File

@ -244,7 +244,7 @@ gnc_get_ea_locale_dir(const char *top_dir)
*/
locale = g_getenv("LANG");
if (g_strcmp0(locale, "Swedish_Sweden") == 0)
locale = g_strdup("sv_SV");
locale = g_strdup("sv_SE");
else if (g_strcmp0(locale, "Swedish_Finland") == 0)
locale =g_strdup("sv_FI");
else