You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/language_xls.md
+19-16Lines changed: 19 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Most elements displayed in the form can be translated, such as **question labels
8
8
When your form includes multiple translations, KoboCollect and Enketo will display a language selector in the **top right corner of the form**, allowing respondents to choose their preferred language.
9
9
10
10
<pclass="note">
11
-
<strong>Note:</strong> Adding translations in XLSForm is faster and more efficient than using the <ahref="https://support.kobotoolbox.org/Formbuilder.html">Formbuilder</a>, especially for longer forms. To learn how to download your form in XLSForm to add translations, see <ahref="xlsform_with_kobotoolbox.html">Using XLSForm with KoboToolbox</a>.
11
+
<strong>Note:</strong> Adding translations in XLSForm is faster and more efficient than <ahref="https://support.kobotoolbox.org/language_dashboard.html">using the Formbuilder</a>, especially for longer forms. To learn how to download your form in XLSForm to add translations, see <ahref="xlsform_with_kobotoolbox.html">Using XLSForm with KoboToolbox</a>.
12
12
<br><br>
13
13
For hands-on practice with adding translations in XLSForm, see KoboToolbox Academy's <ahref="https://academy.kobotoolbox.org/courses/xlsform-fundamentals">XLSForm Fundamentals Course</a>.
14
14
</p>
@@ -27,7 +27,7 @@ To add translations to an XLSForm, first define the default language. This is th
27
27
To define the default language of your form:
28
28
1. In the `settings` worksheet, add a **default_language** column.
29
29
2. In the `default_language` column, enter the default language using the **language (code)** format.
30
-
- For example: `English (en)`.
30
+
- For example: `English (en)`.
31
31
32
32
**settings worksheet**
33
33
@@ -39,9 +39,9 @@ To define the default language of your form:
39
39
To set up the `survey` worksheet:
40
40
41
41
1. Rename the **label** column using the format **label::language (code)**.
42
-
- For example: `label::English (en)`.
43
-
2. If your form includes **hint**, **required_message**, **constraint_message**, or [media](https://support.kobotoolbox.org/media.html) columns in the `survey` worksheet, rename the existing columns using the format **column_name::language (code)**.
44
-
- For example: `hint::English (en)`.
42
+
- For example: `label::English (en)`.
43
+
2. If your form includes `hint`, `required_message`, `constraint_message`, or `media` columns in the `survey` worksheet, rename the existing columns using the format **column_name::language (code)**.
44
+
- For example: `hint::English (en)`.
45
45
46
46
**survey worksheet**
47
47
@@ -53,6 +53,8 @@ To set up the `survey` worksheet:
53
53
54
54
Finally, to set up the `choices` worksheet, rename the **label** column using the format **label::language (code)**.
55
55
56
+
**choices worksheet**
57
+
56
58
| list_name | name | label::English (en) |
57
59
| :--------- | :--- | :------------------ |
58
60
| yn | yes | Yes |
@@ -63,11 +65,15 @@ Finally, to set up the `choices` worksheet, rename the **label** column using th
63
65
64
66
Once you have defined your default language, you can add translations for each visible element of your form. You can add as many translation columns as you like.
65
67
68
+
<pclass="note">
69
+
<strong>Note:</strong> If you omit text for a translated element, it will appear as a blank field on the form.
70
+
</p>
71
+
66
72
To add translations to the `survey` worksheet:
67
73
1. Add a new **label** column for each translation language using the format **label::language (code)**.
68
-
- For example: `label::Spanish (es)`.
69
-
2. If your form includes **hint**, **required_message**, **constraint_message**, or [media](https://support.kobotoolbox.org/media.html) columns in the `survey` worksheet, set up the corresponding translation columns using the **column_name::language (code)** format.
70
-
- For example: `hint::French (fr)` or `required_message::Chichewa (ny)`.
74
+
- For example: `label::Spanish (es)`.
75
+
2. If your form includes `hint`, `required_message`, `constraint_message`, or `media` columns in the `survey` worksheet, set up the corresponding translation columns using the **column_name::language (code)** format.
76
+
- For example: `hint::French (fr)` or `required_message::Chichewa (ny)`.
71
77
3. Enter the translations for all form elements in the relevant columns.
72
78
73
79
<pclass="note">
@@ -84,9 +90,9 @@ To add translations to the `survey` worksheet:
84
90
85
91
To add translations to the `choices` worksheet:
86
92
1. Add a new **label** column for each translation language using the format **label::language (code)**.
87
-
- For example: `label::Spanish (es)`.
93
+
- For example: `label::Spanish (es)`.
88
94
2. Enter the translation for each choice label in the relevant translation column.
89
-
3. If your `choices` worksheet includes [media](https://support.kobotoolbox.org/media.html) columns, set up the corresponding translation columns using the **column_name::language (code)** format.
95
+
3. If your `choices` worksheet includes media columns, set up the corresponding translation columns using the **column_name::language (code)** format.
90
96
91
97
<pclass="note">
92
98
<strong>Note:</strong> To learn more about managing media files in translated forms, see <ahref="https://support.kobotoolbox.org/media.html#adding-media-to-translations">Adding media to an XLSForm</a>.
@@ -100,9 +106,6 @@ To add translations to the `choices` worksheet:
100
106
| yn | no | No | Ayi |
101
107
| choices |
102
108
103
-
<pclass="note">
104
-
<strong>Note:</strong> If you omit text for a translated element, it will appear as a blank field on the form.
105
-
</p>
106
109
107
110
## Guidelines for translations
108
111
@@ -117,7 +120,7 @@ Machine translations should always be reviewed and validated by a fluent speaker
117
120
Non-Latin scripts such as Arabic, Cyrillic, Tamil, Nepali, or Hindi are fully supported in KoboToolbox and can be used for default languages or translations.
118
121
119
122
<pclass="note">
120
-
<strong>Note:</strong> It is recommended to use only Latin characters for question and choice <strong>names</strong>, because non-Latin scripts may cause errors or compatibility issues when exporting data or working with XLSForm, but question and <strong>choice labels</strong> can safely use any script.
123
+
<strong>Note:</strong> It is recommended to use only Latin characters for question and choice <strong>names</strong>, because non-Latin scripts may cause errors or compatibility issues when exporting data or working with XLSForm, but question and choice <strong>labels</strong> can safely use any script.
121
124
</p>
122
125
123
126
When adding translations in non-Latin scripts, it is essential to **use proper Unicode characters**. Unicode ensures that text is correctly displayed and understood across all devices and platforms.
@@ -128,14 +131,14 @@ To enter Unicode text, you do not need to install any special fonts. Instead, se
128
131
129
132
When adding a language that uses a right-to-left (RTL) script, such as Arabic, Hebrew, or Urdu, it is important to **use the correct language code** and to ensure the **first visible text in the translation** (e.g., a question label, hint, or note) is written in the RTL language. This will ensure that the form's layout does not default to left-to-right (LTR) formatting.
130
133
131
-
Additionally, when incorporating question references within question labels using RTL scripts, please note that the question reference syntax is reversed (i.e., `$ {question_name}` instead of `${question_name}`).
134
+
Additionally, when incorporating question references within question labels using RTL scripts, please note that the question reference syntax is reversed (i.e., `{question_name}$`).
132
135
133
136
**survey worksheet**
134
137
135
138
| type | name | label::English (en) | label::Arabic (ar) |
0 commit comments