Multilingual support

  Previous topic Next topic JavaScript is required for the print function Mail us feedback on this topic! Mail us feedback on this topic!  

When you use the Polls module on a multilingual website, you can choose from two options:

 

You can create a new poll for every language - this is useful if you wish to track votes for different cultures/countries of your website.

 

devguide_clip1308
 
or
 

You can create a single poll for all languages using in-place localization expressions - in this case, all votes are tracked together. In order to learn how to localize strings of the poll, please refer to the Localization Expressions topic. More detailed information on these expressions can be found in the Appendix A - Macro expressions topic.

 

If you want to create a single localized poll (or adjust an existing one to create a single localized poll), you will have to take steps similar to those described in the Managing polls topic. The main difference consists in entering localization expressions into the corresponding text fields. For example, if you would like to have your poll both in the website default language and in Czech, the macro must be entered in the {$=Default string|cs-cz=Czech string$} format.

 

On the General tab of the Poll properties dialog, use localization expressions for the following fields:

 

Display name
Question
Message after vote

 

devguide_clip1309

 

Click OK to save the changes. Now switch to the Answers tab to localize the answers of your poll. You will use the localization expression only in the Text text field.

 

devguide_clip1310

 

When you have entered the new value, click OK again.

 

 

 

Please note

 

To culturally localize your polls, you can also use basic localization macros. These are entered in the {$string.key$} format. The system uses the ResHelper.GetString(“string.key”) method and replaces the macros with the appropriate resource strings. To learn more about this type of localization, please refer to the Configuring multilingual and RTL UI topic.

 

 

Page url: http://devnet.kentico.com/docs/5_5r2/devguide/index.html?multilingual_support.htm