Skip to content

Commit 6a868b2

Browse files
authored
[instrument_list] Translates Instrument list module. (#10033)
- Translates Instrument list module - Spanish language was use for demonstration purposes only. ( Also the only Spanish translations included in the loris.po file were the ones used in this module -- for simplicity and speeding the process) - some entries were added to the general loris.pot file since they are used in other modules as well. - Breadcrumb are not translated in this PR since they came from other two modules candidate_list and candidate_profile respectively
1 parent 30870ad commit 6a868b2

File tree

10 files changed

+324
-92
lines changed

10 files changed

+324
-92
lines changed

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ locales:
121121
msgfmt -o modules/imaging_uploader/locale/ja/LC_MESSAGES/imaging_uploader.mo modules/imaging_uploader/locale/ja/LC_MESSAGES/imaging_uploader.po
122122
msgfmt -o modules/instrument_builder/locale/ja/LC_MESSAGES/instrument_builder.mo modules/instrument_builder/locale/ja/LC_MESSAGES/instrument_builder.po
123123
msgfmt -o modules/instrument_list/locale/ja/LC_MESSAGES/instrument_list.mo modules/instrument_list/locale/ja/LC_MESSAGES/instrument_list.po
124+
msgfmt -o modules/instrument_list/locale/es/LC_MESSAGES/instrument_list.mo modules/instrument_list/locale/es/LC_MESSAGES/instrument_list.po
124125
msgfmt -o modules/instrument_manager/locale/ja/LC_MESSAGES/instrument_manager.mo modules/instrument_manager/locale/ja/LC_MESSAGES/instrument_manager.po
125126
msgfmt -o modules/instruments/locale/ja/LC_MESSAGES/instruments.mo modules/instruments/locale/ja/LC_MESSAGES/instruments.po
126127
msgfmt -o modules/issue_tracker/locale/ja/LC_MESSAGES/issue_tracker.mo modules/issue_tracker/locale/ja/LC_MESSAGES/issue_tracker.po

locale/es/LC_MESSAGES/loris.po

Lines changed: 84 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ msgstr ""
1717
"MIME-Version: 1.0\n"
1818
"Content-Type: text/plain; charset=UTF-8\n"
1919
"Content-Transfer-Encoding: 8bit\n"
20+
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
2021

2122
# Smarty template main.tpl strings
2223
msgid "LORIS"
@@ -86,7 +87,7 @@ msgstr ""
8687
#: modules/imaging_uploader/php/module.class.inc:54
8788
#: modules/mri_violations/php/module.class.inc:53
8889
msgid "Imaging"
89-
msgstr ""
90+
msgstr "Imágenes"
9091

9192
#: modules/candidate_list/php/module.class.inc:76
9293
#: modules/new_profile/php/module.class.inc:50
@@ -110,7 +111,7 @@ msgstr ""
110111

111112
# Common loris terms. Consider moving these to their own textdomain?
112113
msgid "TimePoint"
113-
msgstr ""
114+
msgstr "Punto en el tiempo"
114115

115116
# Common select option labels
116117
msgid "Yes"
@@ -119,6 +120,12 @@ msgstr "Sí"
119120
msgid "No"
120121
msgstr "No"
121122

123+
msgid "Create"
124+
msgstr "Crear"
125+
126+
msgid "N/A"
127+
msgstr "N/A"
128+
122129
# Common swal labels
123130
msgid "Cancel"
124131
msgstr ""
@@ -145,11 +152,16 @@ msgstr ""
145152
msgid "Project"
146153
msgstr "Projecto"
147154

148-
msgid "Cohort"
149-
msgstr "Cohorte"
155+
msgid "Candidate Registration Project"
156+
msgstr "Projecto donde se registró al Candidato"
150157

151-
msgid "Cohorts"
152-
msgstr "Cohortes"
158+
msgid "Timepoint Project"
159+
msgstr "Punto en el tiempo del Projecto"
160+
161+
msgid "Cohort"
162+
msgid_plural "Cohorts"
163+
msgstr[0] "Cohorte"
164+
msgstr[1] "Cohortes"
153165

154166
msgid "Session"
155167
msgstr ""
@@ -175,59 +187,68 @@ msgstr ""
175187
msgid "Stage"
176188
msgstr "Etapa"
177189

178-
msgid "Sent To DCC"
190+
msgid "Send To DCC"
179191
msgstr "Enviar a CCD"
180192

193+
msgid "Sent To DCC"
194+
msgstr "Enviado a CCD"
195+
196+
msgid "Reverse Send To DCC"
197+
msgstr "Revertir Enviar al CCD"
198+
181199
msgid "Date of Birth"
182-
msgstr ""
200+
msgstr "Fecha de Nacimiento"
183201

184202
msgid "Visits"
185-
msgstr ""
203+
msgstr "Visitas"
186204

187205
msgid "An error occured while loading the page."
188-
msgstr ""
206+
msgstr "Un error ocurrió minstras cargaba la página"
189207

190208
msgid "Entity Type"
191-
msgstr ""
209+
msgstr "Tipo de Entidad"
192210

193211
msgid "Scan Done"
194-
msgstr ""
212+
msgstr "Scan hecho"
195213

196214
msgid "Show Advanced Filters"
197-
msgstr ""
215+
msgstr "Mostras filtros avanzados"
198216

199217
msgid "Hide Advanced Filters"
200-
msgstr ""
218+
msgstr "Ocultar filtros avanzados"
201219

202220
msgid "Language"
203221
msgstr "Lenguaje"
204222

205223
# Data table strings
206224
msgid "{{pageCount}} rows displayed of {{totalCount}}."
207-
msgstr ""
225+
msgstr "{{pageCount}} filas mostradas de {{totalCount}}."
208226

209227
msgid "Maximum rows per page:"
210-
msgstr ""
228+
msgstr "Máximo de filasa por página"
211229

212-
msgid "Download Table as CSV"
213-
msgstr ""
230+
msgid "Download Data as CSV"
231+
msgstr "Descargar Datos como CSV"
214232

215233
# Dashboard panel strings
216234
msgid "Views"
217-
msgstr ""
235+
msgstr "Vistas"
218236

219237
# Common strings on widgets
220238
msgid "NEW"
221-
msgstr ""
239+
msgstr "Nuevo"
222240

223241
msgid "Updated"
224-
msgstr ""
242+
msgstr "Actualizado"
225243

226244
msgid "Uploaded"
227-
msgstr ""
245+
msgstr "Subido"
228246

229247
msgid "Total"
230-
msgstr ""
248+
msgstr "Total"
249+
250+
msgid "Error!"
251+
msgstr "Error!"
231252

232253
# Common timepoint and vist terms
233254
msgid "Not Started"
@@ -259,3 +280,43 @@ msgstr "Retirado"
259280

260281
msgid "In Progress"
261282
msgstr "En Progreso"
283+
284+
msgid "Complete"
285+
msgstr "Completo"
286+
287+
msgid "Instruments"
288+
msgstr "Instrumentos"
289+
290+
msgid "None"
291+
msgstr "Ninguna"
292+
293+
msgid "Partial"
294+
msgstr "Parcial"
295+
296+
msgid "All"
297+
msgstr "Completa"
298+
299+
msgid "Data Entry"
300+
msgstr "Entrada de datos"
301+
302+
msgid "Administration"
303+
msgstr "Administración"
304+
305+
msgid "Double Data Entry Form"
306+
msgstr "Formulario de entrada de datos duplicado"
307+
308+
msgid "Double Data Entry Status"
309+
msgstr "Estado del formulario de entrada de datos duplicado"
310+
311+
msgid "Double Data Entry"
312+
msgstr "Entrada de datos duplicada"
313+
314+
# Age related terms
315+
msgid "Age"
316+
msgstr "Edad"
317+
318+
msgid "{{months}} months old"
319+
msgstr "{{months}} meses"
320+
321+
msgid "{{years}} years old"
322+
msgstr "{{years}} años"

locale/loris.pot

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ msgstr ""
151151
msgid "Project"
152152
msgstr ""
153153

154+
msgid "Candidate Registration Project"
155+
msgstr ""
156+
157+
msgid "Timepoint Project"
158+
msgstr ""
159+
154160
msgid "Cohort"
155161
msgid_plural "Cohorts"
156162
msgstr[0] ""
@@ -179,9 +185,15 @@ msgstr ""
179185
msgid "Stage"
180186
msgstr ""
181187

188+
msgid "Send To DCC"
189+
msgstr ""
190+
182191
msgid "Sent To DCC"
183192
msgstr ""
184193

194+
msgid "Reverse Send To DCC"
195+
msgstr ""
196+
185197
msgid "Date of Birth"
186198
msgstr ""
187199

@@ -267,6 +279,36 @@ msgstr ""
267279
msgid "In Progress"
268280
msgstr ""
269281

282+
msgid "Complete"
283+
msgstr ""
284+
285+
msgid "Instruments"
286+
msgstr ""
287+
288+
msgid "None"
289+
msgstr ""
290+
291+
msgid "Partial"
292+
msgstr ""
293+
294+
msgid "All"
295+
msgstr ""
296+
297+
msgid "Data Entry"
298+
msgstr ""
299+
300+
msgid "Administration"
301+
msgstr ""
302+
303+
msgid "Double Data Entry Form"
304+
msgstr ""
305+
306+
msgid "Double Data Entry Status"
307+
msgstr ""
308+
309+
msgid "Double Data Entry"
310+
msgstr ""
311+
270312
# Age related terms
271313
msgid "Age"
272314
msgstr ""
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
# Default LORIS strings to be translated (English).
2+
# Copy this to a language specific file and add translations to the
3+
# new file.
4+
# Copyright (C) 2025
5+
# This file is distributed under the same license as the LORIS package.
6+
# Dave MacFarlane <[email protected]>, 2025.
7+
#
8+
msgid ""
9+
msgstr ""
10+
"Project-Id-Version: LORIS 27\n"
11+
"Report-Msgid-Bugs-To: https://github.com/aces/Loris/issues\n"
12+
"POT-Creation-Date: 2025-04-08 14:37-0400\n"
13+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
15+
"Language-Team: LANGUAGE <[email protected]>\n"
16+
"Language: es\n"
17+
"MIME-Version: 1.0\n"
18+
"Content-Type: text/plain; charset=UTF-8\n"
19+
"Content-Transfer-Encoding: 8bit\n"
20+
21+
msgid "Instrument List"
22+
msgstr "Lista de Instrumentos"
23+
24+
msgid "Visit to Site"
25+
msgstr "Visita al Sitio"
26+
27+
msgid "Within Optimal"
28+
msgstr "Dentro de lo óptimo"
29+
30+
msgid "Within Permitted"
31+
msgstr "Dentro de permitido"
32+
33+
msgid "Behavioural Battery of Instruments"
34+
msgstr "Batería de instrumentos de comportamiento"
35+
36+
msgid "The battery has no registered instruments"
37+
msgstr "La batería no tiene instrumentos registrados"
38+
39+
msgid "View Imaging data"
40+
msgstr "Ver datos de Imágenes"
41+
42+
msgid "Send TimePoint"
43+
msgstr "Enviar Punto en el Tiempo"
44+
45+
msgid "No actions"
46+
msgstr "No acciones"
47+
48+
msgid "Stage: %s"
49+
msgstr "Etapa: %s"
50+
51+
msgid "Start %s Stage"
52+
msgstr "Iniciar %s Etapa"

modules/instrument_list/locale/instrument_list.po renamed to modules/instrument_list/locale/instrument_list.pot

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,32 @@ msgstr ""
2121
msgid "Instrument List"
2222
msgstr ""
2323

24+
msgid "Visit to Site"
25+
msgstr ""
26+
27+
msgid "Within Optimal"
28+
msgstr ""
29+
30+
msgid "Within Permitted"
31+
msgstr ""
32+
33+
msgid "Behavioural Battery of Instruments"
34+
msgstr ""
35+
36+
msgid "The battery has no registered instruments"
37+
msgstr ""
38+
39+
msgid "View Imaging data"
40+
msgstr ""
41+
42+
msgid "Send TimePoint"
43+
msgstr ""
44+
45+
msgid "No actions"
46+
msgstr ""
47+
48+
msgid "Stage: %s"
49+
msgstr ""
50+
51+
msgid "Start %s Stage"
52+
msgstr ""

modules/instrument_list/php/instrument_list.class.inc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,8 @@ class Instrument_List extends \NDB_Menu_Filter
309309
$current_date = new \DateTime();
310310
$dob_year = abs($current_date->diff($dob_date)->y);
311311
$dob_month = abs($current_date->diff($dob_date)->m);
312-
$dob_age = $dob_year . " y / " . $dob_month . " m";
312+
$dob_age = $dob_year . dgettext("timepoint_list", " y / ")
313+
. $dob_month . dgettext("timepoint_list", " m");
313314
$this->tpl_data['dob_age'] = $dob_age;
314315
}
315316
// EDC to EDC Age
@@ -319,7 +320,8 @@ class Instrument_List extends \NDB_Menu_Filter
319320
$current_date = new \DateTime();
320321
$edc_year = abs($current_date->diff($edc_date)->y);
321322
$edc_month = abs($current_date->diff($edc_date)->m);
322-
$edc_age = $edc_year . " y / " . $edc_month . " m";
323+
$edc_age = $edc_year . dgettext("timepoint_list", " y / ")
324+
. $edc_month . dgettext("timepoint_list", " m");
323325
$this->tpl_data['edc_age'] = $edc_age;
324326
}
325327
}

0 commit comments

Comments
 (0)