问题
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?
回答1:
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
来源:https://stackoverflow.com/questions/32447970/struts-dojo-internationalization-of-values