[UP] The UI language |
The element ui:translate This element is replaced in the generated HTML output by the corresponding external value of the specified internal value of a declared enumerator. The external value is HTML-quoted before being processed; i.e. the characters <, >, &, and " are substituted by the corresponding HTML entities <, >, &, and ", respectively. Declaration Level: Generative <!ELEMENT ui:translate EMPTY> <!ATTLIST ui:translate type NMTOKEN #REQUIRED internal NMTOKEN #REQUIRED> Attributes
Sub elements ui:translate does not have sub elements. Example The following piece of code simply displays "Two": <ui:dialog name="sample" start-page="sample_page"> <ui:enumeration name="smallnumbers"> <ui:enum internal="1" external="One"/> <ui:enum internal="2" external="Two"/> <ui:enum internal="3" external="Three"/> </ui:enumeration> <ui:page name="sample_page"> <html> <body> <ui:translate type="smallnumbers" internal="2"/> </body> </html> </ui:page> </ui:dialog> |