mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 797873 - New Account Hierarchy selects en_US
In update_language_region_combos, the directory returned from gnc_path_get_accountsdir is traversed looking for language/regions. When it hits "C" directory it unconditionally overwrites the start_region variable which is used to determine the default language/region so commit compares this directory with the locale_dir before setting. Patch provided by 'YOSHINO Yoshihito'
This commit is contained in:
@@ -532,8 +532,12 @@ update_language_region_combos (hierarchy_data *data, const gchar *locale_dir)
|
||||
{
|
||||
gtk_list_store_set (region_store, ®ion_iter, LANGUAGE_STRING, "en", REGION_STRING, "US", -1);
|
||||
lang_name = g_strdup ("en");
|
||||
g_free (start_region);
|
||||
start_region = g_strdup (lang_name);
|
||||
|
||||
if (g_str_has_suffix (locale_dir, name))
|
||||
{
|
||||
g_free (start_region);
|
||||
start_region = g_strdup (lang_name);
|
||||
}
|
||||
}
|
||||
else
|
||||
lang_name = g_strdup (parts[0]);
|
||||
|
||||
Reference in New Issue
Block a user