Defect #13579
closed
Datepicker uses Simplified Chinese in Traditional Chinese locale
Added by Chage Juan over 11 years ago.
Updated over 11 years ago.
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
Could you tell me why does it need?
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?
- Tracker changed from Patch to Defect
- Status changed from New to Confirmed
- Target version set to 2.3.1
- Subject changed from Traditional Chinese "jquery.locale" setting to Datepicker uses Simlified Chinese in Traditional Chinese
Confirmed.
wrong¶
correct¶
- Subject changed from Datepicker uses Simlified Chinese in Traditional Chinese to Datepicker uses Simlified Chinese in Traditional Chinese locale
- Subject changed from Datepicker uses Simlified Chinese in Traditional Chinese locale to Datepicker uses Simplified Chinese in Traditional Chinese locale
- Status changed from Confirmed to Closed
- Resolution set to Fixed
Committed in trunk and 2.3-stable, thanks.
Also available in: Atom
PDF