Docs GODI Archive
Projects Blog Knowledge

Look up function:

(e.g. "List.find" or "keysym")
More options

The UI language
 ui:alist-value and ui:alist-item
 ui:dyn-enum-value and ui:dyn-enum-item
 ui:enum-value and ui:enum-item
 ui:enumeration and ui:enum
 ui:text and ui:password
 t:*, q:*, and p:*
 Dot notation (v1.v2)
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 &lt;, &gt;, &amp;, and &quot;, respectively.


Level: Generative

<!ELEMENT ui:translate EMPTY>
<!ATTLIST ui:translate
          type     NMTOKEN #REQUIRED
          internal NMTOKEN #REQUIRED>

  • type: Specifies the name of a declared enumerator type (see ui:enumeration).

  • internal: Selects the internal value of the declared enumerator type.

Sub elements

ui:translate does not have sub elements.


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:page name="sample_page">
        <ui:translate type="smallnumbers" internal="2"/>
This web site is published by Informatikbüro Gerd Stolpmann
Powered by Caml