[
https://issues.apache.org/jira/browse/WICKET-1243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12554589
]
dzlei commented on WICKET-1243:
-------------------------------
this is my way to fix it.
at org.apache.wicket.extensions.yui.calendar.DatePicker.java line463,
protected void localize(Map widgetProperties) {
DateFormatSymbols dfSymbols = new DateFormatSymbols(getLocale());
if (Locale.SIMPLIFIED_CHINESE.equals(getLocale())){
dfSymbols.setShortWeekdays(new String[] {"", "日", "一", "二", "三",
"四", "五", "六"});
};
setWidgetProperty(widgetProperties, "MONTHS_SHORT",
filterEmpty(dfSymbols.getShortMonths()));
setWidgetProperty(widgetProperties, "MONTHS_LONG",
filterEmpty(dfSymbols.getMonths()));
setWidgetProperty(widgetProperties, "WEEKDAYS_1CHAR",
filterEmpty(substring(dfSymbols
.getShortWeekdays(), 1)));
setWidgetProperty(widgetProperties, "WEEKDAYS_SHORT",
filterEmpty(substring(dfSymbols
.getShortWeekdays(), 2)));
setWidgetProperty(widgetProperties, "WEEKDAYS_MEDIUM",
filterEmpty(dfSymbols
.getShortWeekdays()));
setWidgetProperty(widgetProperties, "WEEKDAYS_LONG",
filterEmpty(dfSymbols.getWeekdays()));
}
> the DatePicker show the same week title in china.
> ---------------------------------------------------
>
> Key: WICKET-1243
> URL: https://issues.apache.org/jira/browse/WICKET-1243
> Project: Wicket
> Issue Type: Bug
> Components: wicket-datetime
> Affects Versions: 1.3.0-beta4, 1.3.0-rc1, 1.3.0-rc2
> Environment: in chinese(zh_CN) language
> Reporter: dzlei
> Priority: Minor
> Attachments: screenshot-1.jpg, screenshot-2.jpg
>
>
> the DatePicker show the same week title in china. you can see it here in
> the first pic.
> if DatePicker can show as the last pic is the best:
> i have correct this on my own version. i will submit the solution tomorrow
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.