Vote #73637
完了Datepicker uses Simplified Chinese in Traditional Chinese locale
0%
説明
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.
journals
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:
<pre>
jquery:
locale: "zh-CN"
</pre>
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?
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Confirmed.
h3. wrong
!wrong.png!
h3. correct
!correct.png!
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Committed in trunk and 2.3-stable, thanks.
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
relates,Closed,19489,Translation for Spanish Panama