Defect #13579

Datepicker uses Simplified Chinese in Traditional Chinese locale

Added by Chage Juan over 4 years ago. Updated over 4 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:I18n
Target version:2.3.1
Resolution:Fixed Affected version:

Description

Setting added: jquery.locale

diff --git a/config/locales/zh-TW.yml b/config/locales/zh-TW.yml
index 1483201..8293256 100644
--- a/config/locales/zh-TW.yml
+++ b/config/locales/zh-TW.yml
@@ -4,6 +4,8 @@

 "zh-TW":
   direction: ltr
+  jquery:
+    locale: "zh-TW" 
   date:
     formats:
       # Use the strftime parameters for formats.

correct.png (32.8 KB) Toshi MARUYAMA, 2013-03-25 11:25

wrong.png (32 KB) Toshi MARUYAMA, 2013-03-25 11:25


Related issues

Related to Redmine - Feature #19489: Translation for Spanish Panama Closed

Associated revisions

Revision 11682
Added by Toshi MARUYAMA over 4 years ago

fix that datepicker uses Simplified Chinese in Traditional Chinese locale (#13579)

Contributed by Chage Juan.

Revision 11685
Added by Toshi MARUYAMA over 4 years ago

add test of datepicker in Simplified Chinese and Traditional Chinese (#13579)

Revision 11689
Added by Toshi MARUYAMA over 4 years ago

Merged r11682 and r11685 from trunk to 2.3-stable (#13579)

fix that datepicker uses Simplified Chinese in Traditional Chinese locale.

Contributed by Chage Juan.

History

#1 Updated by Toshi MARUYAMA over 4 years ago

Could you tell me why does it need?

#2 Updated by Chage Juan over 4 years ago

Sorry, my English is poor. (so I'm afraid to write too much)

The language setting of my account is set to "zh-TW".
But the datepicker of jquery ui will show "zh-CN".
(It includes file "i18n/jquery.ui.datepicker-zh-CN.js" not "i18n/jquery.ui.datepicker-zh-TW.js")

After I traced the code. I found there is a setting in "config/locale/zh.yml" which is:

jquery:
  locale: "zh-CN" 

So I added similar settings to "config/locale/zh-TW.yml".
And that works.

I don't know if this is right way to fix my problem. Is it?

#3 Updated by Toshi MARUYAMA over 4 years ago

  • Tracker changed from Patch to Defect
  • Status changed from New to Confirmed
  • Target version set to 2.3.1

#4 Updated by Toshi MARUYAMA over 4 years ago

  • Subject changed from Traditional Chinese "jquery.locale" setting to Datepicker uses Simlified Chinese in Traditional Chinese

#5 Updated by Toshi MARUYAMA over 4 years ago

Confirmed.

wrong

correct

#6 Updated by Toshi MARUYAMA over 4 years ago

  • Subject changed from Datepicker uses Simlified Chinese in Traditional Chinese to Datepicker uses Simlified Chinese in Traditional Chinese locale

#7 Updated by Toshi MARUYAMA over 4 years ago

  • Subject changed from Datepicker uses Simlified Chinese in Traditional Chinese locale to Datepicker uses Simplified Chinese in Traditional Chinese locale

#8 Updated by Toshi MARUYAMA over 4 years ago

  • Status changed from Confirmed to Closed
  • Resolution set to Fixed

Committed in trunk and 2.3-stable, thanks.

#9 Updated by Toshi MARUYAMA over 2 years ago

Also available in: Atom PDF