From 826c826cc14c77aa0f6a7c135e88fcce920a5a76 Mon Sep 17 00:00:00 2001 From: Geert Janssens Date: Mon, 13 Jan 2020 22:25:36 +0100 Subject: [PATCH] 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. --- gnucash/gnome/assistant-hierarchy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnucash/gnome/assistant-hierarchy.c b/gnucash/gnome/assistant-hierarchy.c index 9f97334528..29c5113e77 100644 --- a/gnucash/gnome/assistant-hierarchy.c +++ b/gnucash/gnome/assistant-hierarchy.c @@ -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