You can localize menu choices and G2 facilities using a
LANGUAGE-TRANSLATION item.
To create a language translation definition:
KB Workspace > New-Definition > language-translation.
in language [, context] : symbol-to-localize = localized-symbol-or-text
tabella is the localization for table when Italiano is the current language. The language translation defined for that choice is:
in italiano : table = tabella
in italiano : table = "tabella"
as {a | an} {attribute of {a | an} | facility-element in the} g2-facility:
symbol-to-localize = localized-symbol-or-text
Only certain combinations of attributes or facility-elements and g2-facility specifications make sense. Combinations are checked when you close the edit. For example, for the Text Editor, you can specify a button label as a valid facility-element, but not any attributes.
To specify the label on a button in a G2 facility:
as a button-label in the {text-editor | icon-editor}
in my-world, as a button label in the text-editor: end = Complete
in my-world, as a button label in the icon-editor: Update = "Finalize"
| Text Editor Buttons | Icon Editor Buttons |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Localizing the G2 Login Dialog
You can localize each element of the G2 Login dialog, including:
![]() |
Specifying the Dialog Buttons
You can localize these buttons:
Paste, Undo, and Update that appear when a user edits one of the dialog attributes.
To specify a G2 Login dialog button:
as a button-label in the g2-login-dialog : button = local-name
as a button-label in the g2-login-dialog: end = complete
simple-message. By default in G2, this message reads:
Please modify user settings.
To specify a simple message in the dialog:
as a simple-message in the g2-login-dialog : g2-login-message = "local-text"
g2-login-prompt-message, so to modify it, enter a definition such as:
in my-language, as a simple-message in the g2-login-dialog: g2-login-prompt-message = "Please login with your NT user name:"
G2-LOGIN item.
To localize the G2 login dialog attributes:
as an attribute of a g2-login : {g2-login-attribute} = "local-text"
in my-language, as an attribute of a g2-login :
password = "Your password:"
simple-condition.
To localize the condition messages that can appear:
as a simple-condition in the g2-login-dialog : {g2-login-condition } = "local-text"
in my-language, as a simple-condition in the g2-login-dialog :
unknown-user-or-bad-password = "G2 does not recognize your User name or password. Please reenter both and try again. "