Defect #13579
Datepicker uses Simplified Chinese in Traditional Chinese locale
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due 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.
Related issues
Associated revisions
fix that datepicker uses Simplified Chinese in Traditional Chinese locale (#13579)
Contributed by Chage Juan.
add test of datepicker in Simplified Chinese and Traditional Chinese (#13579)
History
#1
Updated by Toshi MARUYAMA over 9 years ago
Could you tell me why does it need?
#2
Updated by Chage Juan over 9 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 9 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 9 years ago
- Subject changed from Traditional Chinese "jquery.locale" setting to Datepicker uses Simlified Chinese in Traditional Chinese
#5
Updated by Toshi MARUYAMA over 9 years ago
- File correct.png added
- File wrong.png added
#6
Updated by Toshi MARUYAMA over 9 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 9 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 9 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 7 years ago
- Related to Feature #19489: Translation for Spanish Panama added