gnucash maint: Bug 797569 - Swedish account templates not accessible

Geert Janssens gjanssens at code.gnucash.org
Mon Jan 13 16:25:43 EST 2020


Updated	 via  https://github.com/Gnucash/gnucash/commit/826c826c (commit)
	from  https://github.com/Gnucash/gnucash/commit/ead5c947 (commit)



commit 826c826cc14c77aa0f6a7c135e88fcce920a5a76
Author: Geert Janssens <geert at kobaltwit.be>
Date:   Mon Jan 13 22:25:36 2020 +0100

    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.

diff --git a/gnucash/gnome/assistant-hierarchy.c b/gnucash/gnome/assistant-hierarchy.c
index 9f9733452..29c5113e7 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



Summary of changes:
 gnucash/gnome/assistant-hierarchy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list