The translate
tag can be applied to survey elements to specify translation instructions. Both the translate
tag and decorator can accept 'y' or 'n' inputs or language codes to specify which languages a survey element should be translated into.
Tag
set list: AGELIST
translate: n
1. 1 - 17
18. 18 - 24
25. 25 - 34
35. 35 - 44
45. 45 - 54
55. 55 - 64
65. 65+
Decorator
set conditioned text: ROWSQ8
1. (e.g., International Brand 1) {if anyChecked($QCNTRY,11)} {translate: n}
2. (e.g., International Brand 2) {if anyChecked($QCNTRY,12)} {translate: n}
3. (e.g., Brand 3 that needs localization) {if anyChecked($QCNTRY,16)}
Details
- The
translate
tag can be added to any survey widget type. It is most commonly used with standalone lists (set lists
), groups, questions, variables, anddefine sheet
. - Questions that have an implicit
invisible: y
tag are automatically excluded from translations. These include all quotas (regular, derived, click balance), variables created withselectby
, coded variables, reporting-only variables, and summary variables. - To include content in a translation that would normally be excluded, include the
translate
tag or decorator. - The
translate
decorator is also supported in sheets. - Any content that includes
translate: n
will also be hidden from the Masks applet.
Additional examples
Including content by specifying languages
If a survey has multiple translations, the translate
tag or decorator can be used to specify which languages should include certain content in translations by using the translation key, separated by commas.
1. What's your favorite color?
type: radio
optsfrom: COLORS
translate: spa-1,eng-2
The language codes shown above are also compatible with the translate
decorator.
Translating sheets
By default, only certain sheet content is included in translations — columns with "text" in the header, a translate
column, and content from columns with the following exact names (case-insensitive): ALT, EG, EXAMPLES, LC, PIPE, SHORT, UC, and UCFIRST.
To exclude a sheet from translations, use the define sheet
widget with translate: n
.
define sheet: surveyid.mysheetname translate: n
Comments
0 comments
Please sign in to leave a comment.