commit cef63ad02b77e3832a11e2f1b202a99665343155
parent 3a8df4ede9bb943828911d1d09e7bec67704c791
Author: Ricardo Mones <ricardo@mones.org>
Date: Wed, 18 Nov 2015 14:13:51 +0100
Fix bug #3566: add missing locales to Eastern nameorder
Thanks to Páder Rezső for the patch!
Diffstat:
2 files changed, 8 insertions(+), 2 deletions(-)
diff --git 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
@@ -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;
}