Configure controls to change displayed text between languages
Use the Switch Language Button control to create separate buttons that allow you to change text between different languages. Use the Flag Switching Button control to create a single button that allows you to toggle between languages.
Before you begin
Important:
- You must provide the translated text for the selected properties. The Designer does not automatically translate text.
- The Switch Language button does not act as a toggle button; that is, you cannot use the same button to switch back to the original language. You must add a separate language button for each language that you want to be able to switch to. However, the Flag Switching button does act as a toggle button; that is, you use only the one button to switch between the configured languages.
Procedure
- In the navigator, click .
- From the Forms list, select the resource you want to work with.
- Click .
- Click the Toolbox tab.
- To configure the Switch Language Button control, do the following:
- Repeat steps 4-5 for each separate language button.
- To configure the Flag Switching Button control, do the following:
- If required, add controls whose text you want to switch to an alternate language.
- Select a control, and then click the Properties tab.
- Click the Localization ellipsis button.The Localization Configuration dialog box appears.
- From the Property Name list, select the property whose text you want to switch languages for.
- From the Language list, select the language you want to switch the text to.Note: This language must match the Language ID property of the switch language button.
- In the Text field, enter the translated text for the selected property, and then click Apply.The information for language switching appears in the Translations area.
- Click OK.Tip: To remove a translation string, select it, click Delete, and then click OK.
- Repeat steps 8-13 for each additional control.
- Save the form or user display.
Click Save on the... To save... toolbar locally for WPF forms; to the server for Silverlight forms title bar to the server for WPF forms