Fix bug #3566: add missing locales to Eastern nameorder

Thanks to Páder Rezső for the patch!
This commit is contained in:
Ricardo Mones 2015-11-18 14:13:51 +01:00
parent 3a8df4ede9
commit cef63ad02b
2 changed files with 8 additions and 2 deletions

View 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);

View 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;
}