Localize Control Names and Descriptions
- Last UpdatedNov 15, 2023
- 2 minute read
Localize a control name and description to make it usable with a specific language, script, and culture.
To localize a control name and description
-
In the Enterprise Console, click the Menu button, and then click Forms. The Forms page appears.
-
Right-click on a form, and then click Design Form (or click on a form, and then click Design). The Forms Designer page appears.
-
Point to the control, and then click the Properties button. The Properties dialog box appears.
-
In the Name box, type @@<localize_name>@@.
-
In the Description box, type @@<localize_description>@@.
-
Click Apply. The properties are saved and the Properties dialog box is closed.
-
Add a key-value pair for name and description in an existing or a new text file in the <AVEVA Work Tasks Install Path>\Locales\<culture>\Forms2 and <AVEVA Work Tasks Install Path>\Locales\<culture>\Forms2\Standard folders in the following format: @@<localization_key>@@:Localized Value.
That is @@<localize_name>@@:Localized Name for Name and for @@<localize_description>@@:Localized Description for Description.
Note: In the format @@<localization_key>@@, the <localization_key> key name should not have space and special characters. However, you can use - and _ characters for the key names.
-
On the action bar, click Preview.
-
Check look and feel of the form for browser with the localized values.
-
Click the Close button. The Preview dialog box is closed.
Example
To localize a Text control name to Employee Name and description to Contract Employee, first set the Name property to @@emp_name@@ (the localization key you have chosen for the name) and set the Description property to @@emp_desc@@ (the localization key you have chosen for the description), then add a key-value pair in an existing or a new text file in the <AVEVA Work Tasks Install Path>\Locales\<culture>\Forms2 folder as @@emp_name@@:Employee Name and @@emp_desc@@:Contract Employee.
Note:
- When you localize Button Text of Button control, use the unresolved localized text for Value while creating conditions for Button Pressed in Possible Distinct Outputs property for Invoke Form activity of workflow.
- For example, if the Button Text is Approve and the localized text is @@Approve@@, then use @@Approve@@ for Value of Button Pressed in Possible Distinct Outputs property for Invoke Form activity of the workflow.
- For information about Invoke Form activity and Possible Distinct Outputs, see Invoke Form Activity in Developer Guide.