Fix bug #3566: add missing locales to Eastern nameorder
authorRicardo Mones <ricardo@mones.org>
Wed, 18 Nov 2015 13:13:51 +0000 (14:13 +0100)
committerRicardo Mones <ricardo@mones.org>
Wed, 18 Nov 2015 13:13:51 +0000 (14:13 +0100)
Thanks to Páder Rezső for the patch!

src/editaddress.c
src/jpilot.c

index ad243013b01a4110e3d382bb391b8c87bf20c9e0..ac22b189929569fea8c616d28cc6e1fedca85822 100644 (file)
@@ -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);
index 43f58f45e4ff34c6f8a1d714c1f1b2d04b08d75d..6eff9b2ebe7e8cc66f3d73f00d51ada4169b3aa1 100644 (file)
@@ -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;
        }