From cef63ad02b77e3832a11e2f1b202a99665343155 Mon Sep 17 00:00:00 2001 From: Ricardo Mones Date: Wed, 18 Nov 2015 14:13:51 +0100 Subject: [PATCH] Fix bug #3566: add missing locales to Eastern nameorder MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Thanks to Páder Rezső for the patch! --- src/editaddress.c | 4 +++- src/jpilot.c | 6 +++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/editaddress.c b/src/editaddress.c index ad243013b..ac22b1899 100644 --- a/src/editaddress.c +++ b/src/editaddress.c @@ -955,8 +955,10 @@ static void addressbook_edit_person_page_basic( gint pageNum, gchar *pageLbl ) { #endif locale = conv_get_current_locale(); if (locale && - (!g_ascii_strncasecmp(locale, "ja", 2) || + (!g_ascii_strncasecmp(locale, "hu", 2) || + !g_ascii_strncasecmp(locale, "ja", 2) || !g_ascii_strncasecmp(locale, "ko", 2) || + !g_ascii_strncasecmp(locale, "vi", 2) || !g_ascii_strncasecmp(locale, "zh", 2))) { ATTACH_ROW(_("Last Name"), entry_ln); ATTACH_ROW(_("First Name"), entry_fn); diff --git a/src/jpilot.c b/src/jpilot.c index 43f58f45e..6eff9b2eb 100644 --- a/src/jpilot.c +++ b/src/jpilot.c @@ -1522,7 +1522,11 @@ gint jpilot_read_data( JPilotFile *pilotFile ) { cur_locale = conv_get_current_locale(); - if( g_ascii_strncasecmp( cur_locale, "ja", 2 ) == 0 ) { + if( g_ascii_strncasecmp( cur_locale, "hu", 2 ) == 0 || + g_ascii_strncasecmp( cur_locale, "ja", 2 ) == 0 || + g_ascii_strncasecmp( cur_locale, "ko", 2 ) == 0 || + g_ascii_strncasecmp( cur_locale, "vi", 2 ) == 0 || + g_ascii_strncasecmp( cur_locale, "zh", 2 ) == 0 ) { name_order = FAMILY_FIRST; } -- 2.25.1