Struts Dojo国际化的价值观 [英] Struts Dojo Internationalization of values
本文介绍了Struts Dojo国际化的价值观的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
可以为Struts Dojo标签实现国际化吗?
例如:
我有这个struts dojo提交标签:
< sx:submit cssClass =styled_buttontargets =myDivvalue =close >
我想要[value =close]指向我的属性文件,以便我可以实现国际化。
这是否可能与struts dojo?
解决方案
你可以使用 dojo
标签属性键
获取您的区域设置值
< pre class =lang-xml prettyprint-override>
< sx:submit cssClass =styled_button
name =ss
targets =myDiv
key =yourKey
name =anyName/>
和 yourKey
将是您拥有的属性文件在 struts.xml
中提到
Is it possible to implement internationalization for Struts Dojo Tags?
For example:
I have this struts dojo submit tag:
<sx:submit cssClass="styled_button" targets="myDiv" value="close"/>
I want the [value="close"] to point to my properties file so that I can implement internationalization.
Is this possible with struts dojo?
解决方案
You can use dojo
tag attribute key
to get your locale value
<sx:submit cssClass = "styled_button"
name = "ss"
targets = "myDiv"
key = "yourKey"
name = "anyName" />
and yourKey
will be property file you have mentioned in your struts.xml
这篇关于Struts Dojo国际化的价值观的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文