When translated surveys are fielded, they naturally collect open-ended responses in languages other than the primary language that the survey is programmed in. To leverage machine translations to automatically translate such responses, use the autotranslate
tag.
When autotranslate: y
is applied, new fields are added to the survey data set which contain the translated text (obtained via Google Translate). The original field's name and data are undisturbed. The new field is labeled Qx_lang, where x is the original question ID, and lang is the translation language. The tag may be placed locally on a single question, or on an entire survey via the appconfig
widget.
Note: The system will only make translations for respondent data that is received while the tag is affixed to the question (i.e., no retroactive translating). Be sure to add this tag early if you think you'll need it.
Syntax
The autotranslate
tag permits the use of a yes/no (y/n) input, or a specific language/set of languages.
Automatically translate to primary language
To automatically translate back into the primary survey language, use the 'y' input. The primary survey language is specified in the survey's Configuration application.
autotranslate: y
Automatically translate to other language(s)
To specify one or more languages, use the language
name as specified here. For multiple languages, use a comma-separated list. For each language specified, the system creates a new '_lang' survey field to contain the translated contents.
autotranslate: language1, (language2), (language3), ...
Examples
Translate all fields into the primary language
appconfig autotranslate: y
Translate a single field into German
1. Translate the contents of this question into German. type: textbox autotranslate: german
Translate a single field into Chinese, Russian, and Portuguese
1. Translate the contents of this question into Chinese, Russian, Portuguese. type: textbox autotranslate: chinese, russian, portuguese
Comments
0 comments
Please sign in to leave a comment.