/
I8n_no_lang.xml
229 lines (229 loc) · 14.3 KB
/
I8n_no_lang.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
<?xml version="1.0"?>
<h:html xmlns="http://www.w3.org/2002/xforms" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:h="http://www.w3.org/1999/xhtml" xmlns:jr="http://openrosa.org/javarosa" xmlns:odk="http://www.opendatakit.org/xforms" xmlns:orx="http://openrosa.org/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<h:head>
<h:title>I8n no lang</h:title>
<model odk:xforms-version="1.0.0">
<instance><data id="I8n_no_lang">
<some_text />
<a_integer>123</a_integer>
<a_decimal />
<calculate />
<calculate_test_output />
<select_example />
<required_text />
<acknowledge_test />
<skip_example />
<skipable_question />
<group_test>
<field_list_note />
<select_multiple_1 />
<select_multiple_2 />
</group_test>
<table_list_example>
<generated_table_list_label_17 />
<reserved_name_for_field_list_labels_18 />
<table_list_question_1 />
<table_list_question_2 />
</table_list_example>
<select_appearance_note />
<labeled_select_group>
<label_test />
<list-nolabel_test />
</labeled_select_group>
<compact_test />
<data_types_note />
<date_test />
<time_test />
<datetime_test />
<geopoint_test />
<barcode_test />
<image_test />
<audio_test />
<video_test />
<metadata_note />
<start />
<start_test_output />
<end />
<end_test_output />
<today />
<today_test_output />
<deviceid />
<deviceid_test_output />
<simserial />
<simserial_test_output />
<phonenumber />
<phonenumber_test_output />
<meta>
<instanceID />
</meta>
</data></instance>
<bind nodeset="/data/some_text" type="string" />
<bind nodeset="/data/a_integer" type="int" />
<bind constraint=". <= /data/a_integer " jr:constraintMsg="You can set the toast that appears when a constraint is violated." nodeset="/data/a_decimal" type="decimal" />
<bind calculate=" /data/a_integer + /data/a_decimal " nodeset="/data/calculate" type="string" />
<bind nodeset="/data/calculate_test_output" readonly="true()" type="string" />
<bind nodeset="/data/select_example" type="string" />
<bind nodeset="/data/required_text" required="true()" type="string" />
<bind nodeset="/data/acknowledge_test" type="string" />
<bind nodeset="/data/skip_example" type="string" />
<bind nodeset="/data/skipable_question" relevant="selected( /data/skip_example , 'no')" type="string" />
<bind nodeset="/data/group_test/field_list_note" readonly="true()" type="string" />
<bind constraint="not(selected(., 'yes') and selected (., 'no'))" jr:constraintMsg="You can't select yes and no." nodeset="/data/group_test/select_multiple_1" required="false()" type="string" />
<bind nodeset="/data/group_test/select_multiple_2" type="string" />
<bind nodeset="/data/table_list_example/generated_table_list_label_17" readonly="true()" type="string" />
<bind nodeset="/data/table_list_example/reserved_name_for_field_list_labels_18" type="string" />
<bind nodeset="/data/table_list_example/table_list_question_1" type="string" />
<bind nodeset="/data/table_list_example/table_list_question_2" type="string" />
<bind nodeset="/data/select_appearance_note" readonly="true()" type="string" />
<bind nodeset="/data/labeled_select_group/label_test" type="string" />
<bind nodeset="/data/labeled_select_group/list-nolabel_test" type="string" />
<bind nodeset="/data/compact_test" type="string" />
<bind nodeset="/data/data_types_note" readonly="true()" type="string" />
<bind nodeset="/data/date_test" type="date" />
<bind nodeset="/data/time_test" type="time" />
<bind nodeset="/data/datetime_test" type="dateTime" />
<bind nodeset="/data/geopoint_test" type="geopoint" />
<bind nodeset="/data/barcode_test" type="barcode" />
<bind nodeset="/data/image_test" type="binary" />
<bind nodeset="/data/audio_test" type="binary" />
<bind nodeset="/data/video_test" type="binary" />
<bind nodeset="/data/metadata_note" readonly="true()" type="string" />
<bind jr:preload="timestamp" jr:preloadParams="start" nodeset="/data/start" type="dateTime" />
<bind nodeset="/data/start_test_output" readonly="true()" type="string" />
<bind jr:preload="timestamp" jr:preloadParams="end" nodeset="/data/end" type="dateTime" />
<bind nodeset="/data/end_test_output" readonly="true()" type="string" />
<bind jr:preload="date" jr:preloadParams="today" nodeset="/data/today" type="date" />
<bind nodeset="/data/today_test_output" readonly="true()" type="string" />
<bind jr:preload="property" jr:preloadParams="deviceid" nodeset="/data/deviceid" type="string" />
<bind nodeset="/data/deviceid_test_output" readonly="true()" type="string" />
<bind jr:preload="property" jr:preloadParams="simserial" nodeset="/data/simserial" type="string" />
<bind nodeset="/data/simserial_test_output" readonly="true()" type="string" />
<bind jr:preload="property" jr:preloadParams="phonenumber" nodeset="/data/phonenumber" type="string" />
<bind nodeset="/data/phonenumber_test_output" readonly="true()" type="string" />
<bind jr:preload="uid" nodeset="/data/meta/instanceID" readonly="true()" type="string" />
</model>
</h:head>
<h:body><input ref="/data/some_text"><label>This is a basic fill in the blank question.</label>
<hint>Hints provide additional information about a question that is displayed less prominently.</hint></input><input ref="/data/a_integer"><label>Enter a integer:</label></input><input ref="/data/a_decimal"><label>Enter a decimal:</label>
<hint>This question has a constraint so that the decimal must be less that the integer.</hint></input><input ref="/data/calculate_test_output"><label>The sum of the integer and decimal: <output value=" /data/calculate " /></label></input>
<select1 ref="/data/select_example"><label>This is a select_one type question.</label>
<hint>In the type column you must include the name of a choices list that sets the available options. Choices lists are specified on the choices sheet.</hint>
<item><label>Yes</label>
<value>yes</value>
</item>
<item><label>No</label>
<value>no</value>
</item>
<item><label>Maybe</label>
<value>maybe</value>
</item>
</select1><input ref="/data/required_text"><label>Required field</label>
<hint>You have to enter something to continue.</hint></input>
<trigger ref="/data/acknowledge_test"><label>Acknowledge prompts can be used to indicate some action was completed. For example, a real prompt might read, "Inform the subject how the data collected on them will be used."</label></trigger>
<select1 ref="/data/skip_example"><label>Skip the next question?</label>
<item><label>Yes</label>
<value>yes</value>
</item>
<item><label>No</label>
<value>no</value>
</item>
<item><label>Maybe</label>
<value>maybe</value>
</item>
</select1><input ref="/data/skipable_question"><label>This question will be skipped if its "relevant" column is false.</label>
<hint>You can also have skip logic for groups.</hint></input>
<group appearance="field-list" ref="/data/group_test"><label>A group</label><input ref="/data/group_test/field_list_note"><label>Using a group with a field-list appearance you can make multiple promps appear on the same screen.</label></input><select appearance="minimal" ref="/data/group_test/select_multiple_1"><label>Select multiple 1</label>
<item><label>Yes</label>
<value>yes</value>
</item>
<item><label>No</label>
<value>no</value>
</item>
<item><label>Maybe</label>
<value>maybe</value>
</item>
</select><select ref="/data/group_test/select_multiple_2"><label>select multiple 2</label>
<item><label>a</label>
<value>a</value>
</item>
<item><label>b</label>
<value>b</value>
</item>
</select></group>
<group appearance="field-list" ref="/data/table_list_example"><input ref="/data/table_list_example/generated_table_list_label_17"><label>table-list group</label></input>
<select1 appearance="label" ref="/data/table_list_example/reserved_name_for_field_list_labels_18"><label> </label>
<item><label>Yes</label>
<value>yes</value>
</item>
<item><label>No</label>
<value>no</value>
</item>
<item><label>Maybe</label>
<value>maybe</value>
</item>
</select1>
<select1 appearance="list-nolabel" ref="/data/table_list_example/table_list_question_1"><label>Table list question 1</label>
<hint>A hint</hint>
<item><label>Yes</label>
<value>yes</value>
</item>
<item><label>No</label>
<value>no</value>
</item>
<item><label>Maybe</label>
<value>maybe</value>
</item>
</select1>
<select1 appearance="list-nolabel" ref="/data/table_list_example/table_list_question_2"><label>Table list question 2</label>
<hint>A hint</hint>
<item><label>Yes</label>
<value>yes</value>
</item>
<item><label>No</label>
<value>no</value>
</item>
<item><label>Maybe</label>
<value>maybe</value>
</item>
</select1>
</group><input ref="/data/select_appearance_note"><label>The following questions demo different appearance attributes for select type questions</label></input>
<group appearance="field-list" ref="/data/labeled_select_group"><label>labeled select group test</label>
<select1 appearance="label" ref="/data/labeled_select_group/label_test"><label>label-test</label>
<item><label>Yes</label>
<value>yes</value>
</item>
<item><label>No</label>
<value>no</value>
</item>
<item><label>Maybe</label>
<value>maybe</value>
</item>
</select1>
<select1 appearance="list-nolabel" ref="/data/labeled_select_group/list-nolabel_test"><label>list-nolabel-test</label>
<item><label>Yes</label>
<value>yes</value>
</item>
<item><label>No</label>
<value>no</value>
</item>
<item><label>Maybe</label>
<value>maybe</value>
</item>
</select1>
</group>
<select1 appearance="compact" ref="/data/compact_test"><label>Compact appearance</label>
<hint>Requires images</hint>
<item><label>a</label>
<value>a</value>
</item>
<item><label>b</label>
<value>b</value>
</item>
</select1><input ref="/data/data_types_note"><label>The following prompts demo some of the other types of information you can collect with ODK Collect.</label></input><input ref="/data/date_test"><label>Enter a date:</label></input><input ref="/data/time_test"><label>Enter a time:</label></input><input ref="/data/datetime_test"><label>Enter a date and a time:</label></input><input ref="/data/geopoint_test"><label>Record your location:</label></input><input ref="/data/barcode_test"><label>Scan a barcode:</label></input>
<upload mediatype="image/*" ref="/data/image_test"><label>Take a picture:</label></upload>
<upload mediatype="audio/*" ref="/data/audio_test"><label>Record audio:</label></upload>
<upload mediatype="video/*" ref="/data/video_test"><label>Capture video:</label></upload><input ref="/data/metadata_note"><label>The following prompts show some of the metadata that you can gather during a survey.</label></input><input ref="/data/start_test_output"><label>Survey start time: <output value=" /data/start " /></label></input><input ref="/data/end_test_output"><label>Survey end time: <output value=" /data/end " /></label></input><input ref="/data/today_test_output"><label>Today: <output value=" /data/today " /></label></input><input ref="/data/deviceid_test_output"><label>deviceid: <output value=" /data/deviceid " /></label></input><input ref="/data/simserial_test_output"><label>simserial: <output value=" /data/simserial " /></label>
<hint>Depending on your device and carrier this might not be recordable.</hint></input><input ref="/data/phonenumber_test_output"><label>phonenumber: <output value=" /data/phonenumber " /></label>
<hint>Depending on your device and carrier this might not be recordable.</hint></input>
</h:body>
</h:html>