本地化 org.apache.wicket.extensions.yui.calendar.DatePicker 中的标签
有谁知道如何本地化 org.apache.wicket.extensions.yui.calendar.DatePicker 的“月”、“年”、“好”和“取消”标签?
根据API,您可以重写 localize(Map) 方法来设置本地化字符串,但我无法找出相应属性的名称是什么。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
根据 this 您可以通过覆盖以下配置方法来本地化标签DatePicker 类:
希望您会发现此代码片段有用。
According to this you may localize the labels by overriding the configure method of the DatePicker class:
Hope you'll find this code snippet useful.
ticket 754 添加了对 本地化。
可能是引入的补丁可以给你一些线索?它引用:
with:
关于标签本身的本地化,也许你可以尝试:
The ticket 754 add support for localization.
May be the patch introduced then can give you some clues? It references:
with:
Regarding the localization of the labels itself, may be you could try:
我认为您正在谈论日历导航器上的标签。这个示例可能会有所帮助。
I think you are talking about the labels on the calendar navigator. This example might be helpful.
我认为这个解决方案很好:
I think this solution is nice: