Create a button that changes the interface language to English and a button that changes the interface language to Polish.
-
Create the buttons:
-
In Project view, create two buttons by right-clicking MainWindow (type) and selecting .
-
Rename the buttons by hovering-over each button, selecting
, and entering:
-
USLocaleButton
-
PLLocaleButton
-
Configure the English locale button:
-
In Project view, select USLocaleButton.
-
In Properties, set Text to English.
-
In Events, next to MouseClick event select
and select .
-
Under Input arguments, create a dynamic link between VariableToModify and .
Tip: You can select the @Attribute values from the Attribute drop-down menu at the bottom of the dialog.
For more information about dynamic links, see Create dynamic links.
-
Under Input arguments, set Value to en-US.
-
Configure the Polish locale button:
-
In Project view, select PLLocaleButton.
-
In Properties, set the Text property value to Polish.
-
In Events, next to MouseClick event select
and select .
-
Under Input arguments, create a dynamic link between VariableToModify and .
Tip: You can select the @Attribute values from the Attribute drop-down menu at the bottom of the dialog.
For more information about dynamic links, see Create dynamic links.
-
Under Input arguments, set Value to pl-PL.