Project

General

Profile

Actions

Defect #13579

closed

Datepicker uses Simplified Chinese in Traditional Chinese locale

Added by Chage Juan almost 12 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
I18n
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
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.


Files

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

Related issues

Related to Redmine - Feature #19489: Translation for Spanish PanamaClosed

Actions
Actions #1

Updated by Toshi MARUYAMA almost 12 years ago

Could you tell me why does it need?

Actions #2

Updated by Chage Juan almost 12 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?

Actions #3

Updated by Toshi MARUYAMA almost 12 years ago

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

Updated by Toshi MARUYAMA almost 12 years ago

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

Updated by Toshi MARUYAMA almost 12 years ago

Confirmed.

wrong

correct

Actions #6

Updated by Toshi MARUYAMA almost 12 years ago

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

Updated by Toshi MARUYAMA almost 12 years ago

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

Updated by Toshi MARUYAMA almost 12 years ago

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

Committed in trunk and 2.3-stable, thanks.

Actions #9

Updated by Toshi MARUYAMA over 9 years ago

Actions

Also available in: Atom PDF