10,850
edits
Line 480: | Line 480: | ||
See [[Style editor#Questionnaire Designer|Style editor]] for more information. | See [[Style editor#Questionnaire Designer|Style editor]] for more information. | ||
== Localization == | |||
You can add multiple language mutations for your questionnaire templates. App users can answer the questionnaire in their language. | |||
=== Adding a new language === | |||
# Click '''Localization'''. | |||
# Click '''Add''' and select a language, then click '''OK'''. All localizable strings are displayed. | |||
# Translate all the strings. | |||
# If you want to allow the user to select their favorite questionnaire language, set '''Language Selection''' to '''Selected by User'''. The default behavior is automatic language; in this case, the language of the questionnaire will match the language of the app (configured in [[Setup]]/Settings). | |||
# Save everything and verify the result in the app. | |||
[[File:Localization.png|600px]] | |||
If you want to have texts translated by a person without access to the questionnaire designer, you can export the language to a file, have it translated, and import the result back. | |||
=== Localizing custom strings === | |||
In addition to the texts for all the questions and options, you can also define custom strings that can be localized. You can then use these custom strings in rules, for example, to display a custom message to the user, or to modify the form caption (described in the example below). | |||
# Edit a language and click '''Add custom string'''. | |||
# As the name, enter the internal name of the string. As a label, enter the text in the default language. Then click '''OK'''. | |||
# Add the localized text, then save and close localization. | |||
# Click '''On Load''' to add a new rule that changes the form caption to the localized string.<br>[[File:Custom string rule.png]] | |||
== Configuring commands == | == Configuring commands == |