启动 Apache Velocity 本地化/国际化 (i18n)
我很难找到有关如何使用 Apache Velocity 实现国际化/本地化的文档。我检查了 Velocity 文档并进行了在线研究,但我找不到有关如何使用 .vm(Velocity 模板)文件和属性组织和支持本地化的支持材料。
有人可以指导我找到正确的资源/文档/书籍来描述如何使用 Apache Velocity 实现本地化吗?
我正在尝试在开始编码之前进行尽可能多的前期研究和阅读。
谢谢, 游击队
I have a great difficulty finding documentation on how to implement internationalization/localization with Apache Velocity. I checked Velocity documentation and did online research, but I can't find supporting material on how to organize and support localization using .vm (Velocity template) files and properties.
Can someone please direct me to the right resource/documentation/book that describes how to implement localization using Apache Velocity?
I'm trying to do as much as I can up-front research and reading before starting coding.
Thanks,
partizan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用速度工具。
http://velocity.apache .org/tools/releases/2.0/javadoc/org/apache/velocity/tools/generic/ResourceTool.html
Spring也可能提供一些velocimacro或上下文对象这有助于 i18n,因为 Spring 通常对 i18n 有很多支持
Use VelocityTools.
http://velocity.apache.org/tools/releases/2.0/javadoc/org/apache/velocity/tools/generic/ResourceTool.html
It's also likely that Spring provides some velocimacro or context object that helps with i18n, as Spring generally has a lot of support for i18n