Create buttons for switching locales
Create a button that changes the interface language to English and a button that changes the interface language to Polish.
- Create the buttons:
- In theProject viewpane, create two buttons by right-clickingMainWindow (type)and selecting .
- Rename the buttons by hovering-over each button, selecting , and entering:
- USLocaleButton
- PLLocaleButton
- Configure the English locale button:
- In theProject viewpane, selectUSLocaleButton.
- In thePropertiespane, set theTextproperty value toEnglish.
- In theEventspane, next toMouseClick eventselect and select .
- UnderInput arguments, create a dynamic link between theVariableToModifyproperty and .MANCIA: You can select thevalues from the@AttributeAttributedrop-down menu at the bottom of the dialog.For more information about dynamic links, see Create dynamic links.
- UnderInput arguments, set theValueproperty value toen-US.
- Configure the Polish locale button:
- In theProject viewpane, selectPLLocaleButton.
- In thePropertiespane, set theTextproperty value toPolish.
- In theEventspane, next toMouseClick eventselect and select .
- UnderInput arguments, create a dynamic link between theVariableToModifyproperty and .MANCIA: You can select thevalues from the@AttributeAttributedrop-down menu at the bottom of the dialog.For more information about dynamic links, see Create dynamic links.
- UnderInput arguments, set theValueproperty value topl-PL.
Fornire un feedback