-
Notifications
You must be signed in to change notification settings - Fork 13
/
config.json
577 lines (567 loc) · 15.1 KB
/
config.json
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
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
{
"name": "Multilingual",
"namespace": "CMH\\Multilingual",
"description": "Allow survey's and data entry forms to be translated into multiple languages. Add translations via the Online Designer.",
"versions": [
{"1.2": "Move all functions into Multilingual class"},
{"1.3": "Fix matrix column label order"},
{"1.4": "Hide all label elements"},
{"1.5": "Fix validation popup"},
{"1.6": "Fix NOAUTH, Other IE issues"},
{"1.7": "Piping, Button settings (color/width) and fix for XML export"},
{"1.8": "Piping for answers"},
{"1.8.1": "Bug fix for validation popup"},
{"1.8.2": "Bug fix for removing html on the data entry page"},
{"1.8.3": "Translate notes/slider, default validation messages translations, stop action translations, bug fixes"},
{"1.10.0": "Added form-specific text translation settings in the Survey Settings page"},
{"1.10.1": "Fix bugs that might prevent Survey Settings module values from loading or translation would fail on the surey page"},
{"1.11.3": "Added eConsent, basic navigation, and field-specific translation settings"},
{"1.11.4": "Survey Settings page will now correctly find the instructions and acknowlegement tinyMCE editors in REDCap 10.2+"},
{"1.11.5": "Fixed a bug where question labels with embedded HTML were renderly incorrectly"},
{"1.11.6": "Fixed regression where mobile surveys had faulty branching logic errors appear -- html translations now happen sequentially over found text nodes"},
{"1.12.0": "Add option to hide language translations at the form level. Added setting for 'Submit' button."},
{"1.12.1": "Fixed jQuery Exception in controlText and lang setting issue in getLanguage (multilingual_survey.js)"},
{"1.14.0": "Implemented PDF field translations."},
{"1.14.1": "Implemented PDF answer translations."}
],
"framework-version": 5,
"authors": [
{
"name": "Stephen Martin",
"email": "samartin1@cmh.edu",
"institution": "Children's Mercy Hospital"
},
{
"name": "Jen Hoitenga",
"email": "jahoitenga@cmh.edu",
"institution": "Children's Mercy Hospital"
}
],
"permissions": [
"redcap_data_entry_form",
"redcap_every_page_top",
"redcap_survey_complete",
"redcap_survey_page",
"redcap_pdf"
],
"links": {
"project": [
{
"name": "Multilingual Data Dictionary Support",
"icon": "gear",
"url": "dataDictionaryHelper.php"
}
]
},
"no-auth-pages": [
"index",
"multilingualPDF"
],
"system-settings": [
{
"key": "use-api-endpoint",
"name": "<b>Use API endpoint for public surveys</b>",
"type": "checkbox"
},
{
"key": "use-drafted-changes",
"name": "<b>Use drafted changes while in production</b>",
"type": "checkbox"
}
],
"project-settings": [
{
"key": "languages_variable",
"name": "Languages Variable",
"required": true,
"type": "text",
"repeatable": false,
"default": "languages"
},
{
"key": "translate_pdfs_instruments",
"name": "Translate PDFs on a per-instrument basis",
"required": false,
"type": "checkbox"
},
{
"key": "font-color",
"name": "Font Color (ex. #FFFFFF)",
"required": false,
"type": "text",
"repeatable": false,
"default": "#FFFFFF"
},
{
"key": "background-color",
"name": "Background Color (ex. #005cb9)",
"required": false,
"type": "text",
"repeatable": false,
"default": "#005cb9"
},
{
"key": "button-width",
"name": "Button Width (ex. 100px)",
"required": false,
"type": "text",
"repeatable": false,
"default": "100px"
},
{
"key": "start-screen-width",
"name": "Start Up Screen Width (ex. 220px, expand initial screen if using many languages)",
"required": false,
"type": "text",
"repeatable": false,
"default": ""
},
{
"key": "show-start-screen",
"name": "Show Start Up Screen when changing languages (instead of jumping to next language)",
"required": false,
"type": "checkbox",
"repeatable": false,
"default": ""
},
{
"key": "show-all-lang-buttons",
"name": "Always show all language select buttons",
"required": false,
"type": "checkbox",
"repeatable": false,
"default": ""
},
{
"key": "hide-answers-without-translation",
"name": "Hide Answers that do not have a translation on instruments. (Radio/Dropdown/Checkbox Options without a translation for the current language will not be displayed)",
"required": false,
"type": "checkbox",
"repeatable": false,
"default": ""
},
{
"key": "hide-matrix-questions-without-translation",
"name": "Hide Matrix Field Questions that do not have a translation on instruments. (Matrix Rows/Questions without a translation for the current language will not be displayed)",
"required": false,
"type": "checkbox",
"repeatable": false,
"default": ""
},
{
"key": "hide-answers-without-translation-survey",
"name": "Hide Answers that do not have a translation on surveys. (Radio/Dropdown/Checkbox Options without a translation for the current language will not be displayed)",
"required": false,
"type": "checkbox",
"repeatable": false,
"default": ""
},
{
"key": "hide-matrix-questions-without-translation-survey",
"name": "Hide Matrix Field Questions that do not have a translation on surveys. (Matrix Rows/Questions without a translation for the current language will not be displayed)",
"required": false,
"type": "checkbox",
"repeatable": false,
"default": ""
},
{
"key": "multilingual-econsent",
"name": "Use multilingual PDFs for eConsent/survey download",
"required": false,
"type": "checkbox",
"repeatable": false,
"default": ""
},
{
"key": "prevent-check-mark-submit",
"name": "Prevent symbolic translation for survey 'Submit' button",
"required": false,
"type": "checkbox",
"repeatable": false
},
{
"key": "multilingual-project-encoding",
"name": "PDF Encodings/Translations",
"required": false,
"type": "sub_settings",
"repeatable": true,
"sub_settings":[
{
"key": "encoding-language",
"name": "Language",
"required": false,
"type": "text",
"repeatable": false
},
{
"key": "encoding-type",
"name": "Encoding",
"required": false,
"type": "text",
"repeatable": false
},
{
"key": "pdf-title",
"name": "PDF Title",
"required": false,
"type": "text",
"repeatable": false
},
{
"key": "econsent-checkbox-text",
"name": "EConsent Checkbox Text",
"required": false,
"type": "notes",
"repeatable": false
}
]
},
{
"key": "save-return-later",
"name": "Save & Return Later Text",
"required": false,
"type": "sub_settings",
"repeatable": true,
"sub_settings":[
{
"key": "save-return-later-lang",
"name": "Language",
"required": false,
"type": "text",
"repeatable": false
},
{
"key": "descriptive-text1",
"name": "<span style=\"color:blue;font-style:italic;\">These are translations Save & Return on the survey page.</span>",
"type": "descriptive"
},
{
"key": "save-return-later-button",
"name": "Button Text",
"required": false,
"type": "text",
"repeatable": false
},
{
"key": "save-return-later-corner",
"name": "Returning? Corner of Survey",
"required": false,
"type": "text",
"repeatable": false
},
{
"key": "save-return-later-text",
"name": "Returning? Popup",
"required": false,
"type": "textarea",
"repeatable": false
},
{
"key": "save-return-later-continue-button",
"name": "Returning? Continue Button",
"required": false,
"type": "text",
"repeatable": false
},
{
"key": "descriptive-text2",
"name": "<span style=\"color:blue;font-style:italic;\">These are translations for the popup on return page (if using a return code).</span>",
"type": "descriptive"
},
{
"key": "save-return-page-popup-title",
"name": "Return Page Popup Title",
"required": false,
"type": "text",
"repeatable": false
},
{
"key": "save-return-page-popup-body",
"name": "Return Page Popup Body",
"required": false,
"type": "textarea",
"repeatable": false
},
{
"key": "save-return-page-popup-return-code",
"name": "Return Page Return Code text",
"required": false,
"type": "text",
"repeatable": false
},
{
"key": "descriptive-text3",
"name": "<span style=\"color:blue;font-style:italic;\">These are translations for the return page.</span>",
"type": "descriptive"
},
{
"key": "save-return-page-title",
"name": "Return Page Title",
"required": false,
"type": "text",
"repeatable": false
},
{
"key": "save-return-page-instructions",
"name": "Return Page Instructions",
"required": false,
"type": "textarea",
"repeatable": false
},
{
"key": "save-return-page-return-code-instructions",
"name": "Return Page Return Code Instructions",
"required": false,
"type": "textarea",
"repeatable": false
},
{
"key": "save-return-page-survey-link-title",
"name": "Return Page Email Title",
"required": false,
"type": "text",
"repeatable": false
},
{
"key": "save-return-page-email-instructions",
"name": "Return Page Email Instructions",
"required": false,
"type": "textarea",
"repeatable": false
},
{
"key": "save-return-page-email-button",
"name": "Return Page Email Button",
"required": false,
"type": "text",
"repeatable": false
},
{
"key": "save-return-page-continue-title",
"name": "Return Page Continue Title",
"required": false,
"type": "text",
"repeatable": false
},
{
"key": "descriptive-text4",
"name": "<span style=\"color:blue;font-style:italic;\">These are translations for the continue page.</span>",
"type": "descriptive"
},
{
"key": "save-return-page-survey-title",
"name": "Continue Title",
"required": false,
"type": "text",
"repeatable": false
},
{
"key": "save-return-page-continue-text",
"name": "Continue Page Text",
"required": false,
"type": "textarea",
"repeatable": false
},
{
"key": "save-return-page-startover-text",
"name": "Start Over Text",
"required": false,
"type": "textarea",
"repeatable": false
},
{
"key": "save-return-page-startover-button",
"name": "Start Over Button",
"required": false,
"type": "text",
"repeatable": false
},
{
"key": "descriptive-text5",
"name": "<span style=\"color:blue;font-style:italic;\">These are translations for a completed survey.</span>",
"type": "descriptive"
},
{
"key": "save-return-page-complete-text",
"name": "Completed Text",
"required": false,
"type": "textarea",
"repeatable": false
}
]
},
{
"key": "stop-text",
"name": "Stop Survey Text",
"required": false,
"type": "sub_settings",
"repeatable": true,
"sub_settings":[
{
"key": "stop-text-lang",
"name": "Language",
"required": false,
"type": "text",
"repeatable": false
},
{
"key": "stop-text-body",
"name": "Body",
"required": false,
"type": "textarea",
"repeatable": false
},
{
"key": "stop-text-stop-button",
"name": "Stop Button",
"required": false,
"type": "text",
"repeatable": false
},
{
"key": "stop-text-continue-button",
"name": "Continue Button",
"required": false,
"type": "text",
"repeatable": false
},
{
"key": "stop-text-return-body",
"name": "Return Body",
"required": false,
"type": "textarea",
"repeatable": false
}
]
},
{
"key": "survey-control-text",
"name": "Survey Control Text",
"required": false,
"type": "sub_settings",
"repeatable": true,
"sub_settings":[
{
"key": "survey-control-lang",
"name": "Language",
"required": false,
"type": "text",
"repeatable": false
},
{
"key": "survey-control-submit",
"name": "Submit Button",
"required": false,
"type": "text",
"repeatable": false
},
{
"key": "survey-control-next",
"name": "Next Button",
"required": false,
"type": "text",
"repeatable": false
},
{
"key": "survey-control-prev",
"name": "Previous Button",
"required": false,
"type": "text",
"repeatable": false
},
{
"key": "survey-control-reset",
"name": "Reset Field Link",
"required": false,
"type": "text",
"repeatable": false
},
{
"key": "survey-control-font-size",
"name": "Font Size Text",
"required": false,
"type": "text",
"repeatable": false
},
{
"key": "survey-control-page-number",
"name": "Page Number: Use 'CURRENTPAGE' and 'MAXPAGE' to place the numbers in the translation like so: (Page CURRENTPAGE of MAXPAGE)",
"required": false,
"type": "text",
"repeatable": false
}
]
},
{
"key": "default-error-prompt",
"name": "Default error prompt for text fields",
"required": false,
"type": "sub_settings",
"repeatable":true,
"sub_settings":[
{
"key": "validation",
"name": "Validation type",
"required": false,
"type": "dropdown",
"choices":[
{
"name" : "Integer",
"value" : "int"
},
{
"name" : "Number",
"value" : "float"
},
{
"name" : "Date (dmy)",
"value" : "date_dmy"
},
{
"name" : "Date (mdy)",
"value" : "date_mdy"
},
{
"name" : "Date (ymd)",
"value" : "date_ymd"
},
{
"name" : "Time",
"value" : "time"
},
{
"name" : "Email",
"value" : "email"
}
]
},
{
"key": "translations",
"name": "Translations",
"required": false,
"repeatable":true,
"type": "sub_settings",
"sub_settings":[
{
"key": "lang",
"name": "Language",
"required": false,
"type": "text"
},
{
"key": "error",
"name": "Translated error message",
"required": false,
"type": "textarea"
}
]
}
]
},
{
"key": "descriptive-text",
"name": "<u>Note</u><br><ul><li>Language must match with the labels as defined in the variable `language`.<br>e.g. 'English' instead of 1.</li><li>You may use `[validation_range]` in the translated error message to pipe the validation range.</li></ul>",
"type": "descriptive"
}
]
}