diff --git a/Makefile b/Makefile index b283828474f..762b4ea5c29 100755 --- a/Makefile +++ b/Makefile @@ -121,6 +121,7 @@ locales: msgfmt -o modules/imaging_uploader/locale/ja/LC_MESSAGES/imaging_uploader.mo modules/imaging_uploader/locale/ja/LC_MESSAGES/imaging_uploader.po msgfmt -o modules/instrument_builder/locale/ja/LC_MESSAGES/instrument_builder.mo modules/instrument_builder/locale/ja/LC_MESSAGES/instrument_builder.po msgfmt -o modules/instrument_list/locale/ja/LC_MESSAGES/instrument_list.mo modules/instrument_list/locale/ja/LC_MESSAGES/instrument_list.po + msgfmt -o modules/instrument_list/locale/es/LC_MESSAGES/instrument_list.mo modules/instrument_list/locale/es/LC_MESSAGES/instrument_list.po msgfmt -o modules/instrument_manager/locale/ja/LC_MESSAGES/instrument_manager.mo modules/instrument_manager/locale/ja/LC_MESSAGES/instrument_manager.po msgfmt -o modules/instruments/locale/ja/LC_MESSAGES/instruments.mo modules/instruments/locale/ja/LC_MESSAGES/instruments.po msgfmt -o modules/issue_tracker/locale/ja/LC_MESSAGES/issue_tracker.mo modules/issue_tracker/locale/ja/LC_MESSAGES/issue_tracker.po diff --git a/locale/es/LC_MESSAGES/loris.po b/locale/es/LC_MESSAGES/loris.po index 0c74e9918b3..7de0ab60cb9 100644 --- a/locale/es/LC_MESSAGES/loris.po +++ b/locale/es/LC_MESSAGES/loris.po @@ -17,6 +17,7 @@ msgstr "" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1)\n" # Smarty template main.tpl strings msgid "LORIS" @@ -86,7 +87,7 @@ msgstr "" #: modules/imaging_uploader/php/module.class.inc:54 #: modules/mri_violations/php/module.class.inc:53 msgid "Imaging" -msgstr "" +msgstr "Imágenes" #: modules/candidate_list/php/module.class.inc:76 #: modules/new_profile/php/module.class.inc:50 @@ -110,7 +111,7 @@ msgstr "" # Common loris terms. Consider moving these to their own textdomain? msgid "TimePoint" -msgstr "" +msgstr "Punto en el tiempo" # Common select option labels msgid "Yes" @@ -119,6 +120,12 @@ msgstr "Sí" msgid "No" msgstr "No" +msgid "Create" +msgstr "Crear" + +msgid "N/A" +msgstr "N/A" + # Common swal labels msgid "Cancel" msgstr "" @@ -145,11 +152,16 @@ msgstr "" msgid "Project" msgstr "Projecto" -msgid "Cohort" -msgstr "Cohorte" +msgid "Candidate Registration Project" +msgstr "Projecto donde se registró al Candidato" -msgid "Cohorts" -msgstr "Cohortes" +msgid "Timepoint Project" +msgstr "Punto en el tiempo del Projecto" + +msgid "Cohort" +msgid_plural "Cohorts" +msgstr[0] "Cohorte" +msgstr[1] "Cohortes" msgid "Session" msgstr "" @@ -175,59 +187,68 @@ msgstr "" msgid "Stage" msgstr "Etapa" -msgid "Sent To DCC" +msgid "Send To DCC" msgstr "Enviar a CCD" +msgid "Sent To DCC" +msgstr "Enviado a CCD" + +msgid "Reverse Send To DCC" +msgstr "Revertir Enviar al CCD" + msgid "Date of Birth" -msgstr "" +msgstr "Fecha de Nacimiento" msgid "Visits" -msgstr "" +msgstr "Visitas" msgid "An error occured while loading the page." -msgstr "" +msgstr "Un error ocurrió minstras cargaba la página" msgid "Entity Type" -msgstr "" +msgstr "Tipo de Entidad" msgid "Scan Done" -msgstr "" +msgstr "Scan hecho" msgid "Show Advanced Filters" -msgstr "" +msgstr "Mostras filtros avanzados" msgid "Hide Advanced Filters" -msgstr "" +msgstr "Ocultar filtros avanzados" msgid "Language" msgstr "Lenguaje" # Data table strings msgid "{{pageCount}} rows displayed of {{totalCount}}." -msgstr "" +msgstr "{{pageCount}} filas mostradas de {{totalCount}}." msgid "Maximum rows per page:" -msgstr "" +msgstr "Máximo de filasa por página" -msgid "Download Table as CSV" -msgstr "" +msgid "Download Data as CSV" +msgstr "Descargar Datos como CSV" # Dashboard panel strings msgid "Views" -msgstr "" +msgstr "Vistas" # Common strings on widgets msgid "NEW" -msgstr "" +msgstr "Nuevo" msgid "Updated" -msgstr "" +msgstr "Actualizado" msgid "Uploaded" -msgstr "" +msgstr "Subido" msgid "Total" -msgstr "" +msgstr "Total" + +msgid "Error!" +msgstr "Error!" # Common timepoint and vist terms msgid "Not Started" @@ -259,3 +280,43 @@ msgstr "Retirado" msgid "In Progress" msgstr "En Progreso" + +msgid "Complete" +msgstr "Completo" + +msgid "Instruments" +msgstr "Instrumentos" + +msgid "None" +msgstr "Ninguna" + +msgid "Partial" +msgstr "Parcial" + +msgid "All" +msgstr "Completa" + +msgid "Data Entry" +msgstr "Entrada de datos" + +msgid "Administration" +msgstr "Administración" + +msgid "Double Data Entry Form" +msgstr "Formulario de entrada de datos duplicado" + +msgid "Double Data Entry Status" +msgstr "Estado del formulario de entrada de datos duplicado" + +msgid "Double Data Entry" +msgstr "Entrada de datos duplicada" + +# Age related terms +msgid "Age" +msgstr "Edad" + +msgid "{{months}} months old" +msgstr "{{months}} meses" + +msgid "{{years}} years old" +msgstr "{{years}} años" diff --git a/locale/loris.pot b/locale/loris.pot index 3447c50ba5c..a1456967b2c 100644 --- a/locale/loris.pot +++ b/locale/loris.pot @@ -151,6 +151,12 @@ msgstr "" msgid "Project" msgstr "" +msgid "Candidate Registration Project" +msgstr "" + +msgid "Timepoint Project" +msgstr "" + msgid "Cohort" msgid_plural "Cohorts" msgstr[0] "" @@ -179,9 +185,15 @@ msgstr "" msgid "Stage" msgstr "" +msgid "Send To DCC" +msgstr "" + msgid "Sent To DCC" msgstr "" +msgid "Reverse Send To DCC" +msgstr "" + msgid "Date of Birth" msgstr "" @@ -267,6 +279,36 @@ msgstr "" msgid "In Progress" msgstr "" +msgid "Complete" +msgstr "" + +msgid "Instruments" +msgstr "" + +msgid "None" +msgstr "" + +msgid "Partial" +msgstr "" + +msgid "All" +msgstr "" + +msgid "Data Entry" +msgstr "" + +msgid "Administration" +msgstr "" + +msgid "Double Data Entry Form" +msgstr "" + +msgid "Double Data Entry Status" +msgstr "" + +msgid "Double Data Entry" +msgstr "" + # Age related terms msgid "Age" msgstr "" diff --git a/modules/instrument_list/locale/es/LC_MESSAGES/instrument_list.po b/modules/instrument_list/locale/es/LC_MESSAGES/instrument_list.po new file mode 100644 index 00000000000..c93dcd47843 --- /dev/null +++ b/modules/instrument_list/locale/es/LC_MESSAGES/instrument_list.po @@ -0,0 +1,52 @@ +# Default LORIS strings to be translated (English). +# Copy this to a language specific file and add translations to the +# new file. +# Copyright (C) 2025 +# This file is distributed under the same license as the LORIS package. +# Dave MacFarlane , 2025. +# +msgid "" +msgstr "" +"Project-Id-Version: LORIS 27\n" +"Report-Msgid-Bugs-To: https://github.com/aces/Loris/issues\n" +"POT-Creation-Date: 2025-04-08 14:37-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +msgid "Instrument List" +msgstr "Lista de Instrumentos" + +msgid "Visit to Site" +msgstr "Visita al Sitio" + +msgid "Within Optimal" +msgstr "Dentro de lo óptimo" + +msgid "Within Permitted" +msgstr "Dentro de permitido" + +msgid "Behavioural Battery of Instruments" +msgstr "Batería de instrumentos de comportamiento" + +msgid "The battery has no registered instruments" +msgstr "La batería no tiene instrumentos registrados" + +msgid "View Imaging data" +msgstr "Ver datos de Imágenes" + +msgid "Send TimePoint" +msgstr "Enviar Punto en el Tiempo" + +msgid "No actions" +msgstr "No acciones" + +msgid "Stage: %s" +msgstr "Etapa: %s" + +msgid "Start %s Stage" +msgstr "Iniciar %s Etapa" diff --git a/modules/instrument_list/locale/instrument_list.po b/modules/instrument_list/locale/instrument_list.pot similarity index 65% rename from modules/instrument_list/locale/instrument_list.po rename to modules/instrument_list/locale/instrument_list.pot index 11e01ab6a01..12754aac68e 100644 --- a/modules/instrument_list/locale/instrument_list.po +++ b/modules/instrument_list/locale/instrument_list.pot @@ -21,3 +21,32 @@ msgstr "" msgid "Instrument List" msgstr "" +msgid "Visit to Site" +msgstr "" + +msgid "Within Optimal" +msgstr "" + +msgid "Within Permitted" +msgstr "" + +msgid "Behavioural Battery of Instruments" +msgstr "" + +msgid "The battery has no registered instruments" +msgstr "" + +msgid "View Imaging data" +msgstr "" + +msgid "Send TimePoint" +msgstr "" + +msgid "No actions" +msgstr "" + +msgid "Stage: %s" +msgstr "" + +msgid "Start %s Stage" +msgstr "" diff --git a/modules/instrument_list/php/instrument_list.class.inc b/modules/instrument_list/php/instrument_list.class.inc index 8cc83c06c9b..8e1c6201b16 100644 --- a/modules/instrument_list/php/instrument_list.class.inc +++ b/modules/instrument_list/php/instrument_list.class.inc @@ -309,7 +309,8 @@ class Instrument_List extends \NDB_Menu_Filter $current_date = new \DateTime(); $dob_year = abs($current_date->diff($dob_date)->y); $dob_month = abs($current_date->diff($dob_date)->m); - $dob_age = $dob_year . " y / " . $dob_month . " m"; + $dob_age = $dob_year . dgettext("timepoint_list", " y / ") + . $dob_month . dgettext("timepoint_list", " m"); $this->tpl_data['dob_age'] = $dob_age; } // EDC to EDC Age @@ -319,7 +320,8 @@ class Instrument_List extends \NDB_Menu_Filter $current_date = new \DateTime(); $edc_year = abs($current_date->diff($edc_date)->y); $edc_month = abs($current_date->diff($edc_date)->m); - $edc_age = $edc_year . " y / " . $edc_month . " m"; + $edc_age = $edc_year . dgettext("timepoint_list", " y / ") + . $edc_month . dgettext("timepoint_list", " m"); $this->tpl_data['edc_age'] = $edc_age; } } diff --git a/modules/instrument_list/templates/instrument_list_controlpanel.tpl b/modules/instrument_list/templates/instrument_list_controlpanel.tpl index b10050bde74..ae26865a827 100644 --- a/modules/instrument_list/templates/instrument_list_controlpanel.tpl +++ b/modules/instrument_list/templates/instrument_list_controlpanel.tpl @@ -1,17 +1,17 @@ -

Actions

+

{dgettext("timepoint_list", "Actions:")}

  • {if $access.next_stage}  Start {$next_stage} Stage + href="{$baseurl}/next_stage/?candID={$candID}&sessionID={$sessionID}&identifier={$sessionID}">{sprintf(dgettext("instrument_list", "Start %s Stage"), dgettext("loris", $next_stage))} {else} - (No actions) + ({dgettext("instrument_list", "No actions")}) {/if}
-

Stage: {$current_stage}

+

{sprintf(dgettext("instrument_list", "Stage: %s"), dgettext("loris", $current_stage))}

    {section name=item loop=$status}
  • @@ -24,73 +24,77 @@ onclick="sendUpdate('/instrument_list/?candID={$candID}&sessionID={$sessionID}&setStageUpdate=' + '{$onclickValue}')" style="cursor: pointer;" > - {$status[item].label} + {dgettext("loris", $status[item].label)} {else} - {$status[item].label} + {dgettext("loris", $status[item].label)} {/if}
  • {/section}
-

Send Time Point

+

{dgettext("instrument_list", "Send TimePoint")}

-

BVL QC Type

+

{dgettext("timepoint_list", "BVL QC")}

-

BVL QC Status

+

{dgettext("timepoint_list", "BVL QC")}

  • {if $bvl_qc_status_none.showlink|default} - Not Done + {dgettext("timepoint_list", "Not Done")} {else} - Not Done + {dgettext("timepoint_list", "Not Done")} {/if}
  • @@ -99,7 +103,7 @@ {if $bvl_qc_status_complete.showlink|default} Complete {else} - Complete + {dgettext("timepoint_list", "Complete")} {/if}
@@ -116,4 +120,4 @@ function sendUpdate(suffix) { console.error("An error occurred: " + e.message); } } - \ No newline at end of file + diff --git a/modules/instrument_list/templates/menu_instrument_list.tpl b/modules/instrument_list/templates/menu_instrument_list.tpl index 9ce26b789fb..89199758ca4 100644 --- a/modules/instrument_list/templates/menu_instrument_list.tpl +++ b/modules/instrument_list/templates/menu_instrument_list.tpl @@ -5,27 +5,27 @@ {assign var="DoB" value=$candidate->getDisplayDoB()} - Derived Age + {dgettext("timepoint_list", "Derived Age")} - EDC Age + {dgettext("timepoint_list", "EDC Age")} - Biological Sex + {dgettext("timepoint_list", "Biological Sex")} {if $display.ProjectTitle == $display.ProjectName && $display.ProjectName != ""} - Project + {dgettext("loris", "Project")} {else} {if $display.ProjectTitle != ""} - Candidate Registration Project + {dgettext("loris", "Candidate Registration Project")} {/if} {if $display.ProjectName != ""} - Timepoint Project + {dgettext("loris", "Timepoint Project")} {/if} {/if} @@ -36,22 +36,22 @@ {/foreach} {if $sessionID != ""} - Visit Label + {dgettext("loris", "Visit Label")} - Visit to Site + {dgettext("instrument_list", "Visit to Site")} - Cohort + {dgettext("loris", "Cohort")} - MR Scan Done + {dgettext("timepoint_list", "Imaging Scan Done")} - Within Optimal + {dgettext("instrument_list", "Within Optimal")} - Within Permitted + {dgettext("instrument_list", "Within Permitted")} {if $SupplementalSessionStatuses|default} {foreach from=$timePoint.status item=status key=name} @@ -109,20 +109,31 @@ {$display.CohortTitle} - {$display.Scan_done|default:"\"Data"} + {if $display.Scan_done != ""} + {if $display.Scan_done == 'Y'} + {assign var="scan_done" value=dgettext("loris", "Yes")} + + {$scan_done} + {else} + {assign var="scan_done" value={dgettext("loris", "No")}} + {$scan_done} + {/if} + {else} + Data Missing + {/if} {if $display.WindowInfo.Optimum|default} - Yes + {dgettext("loris", "Yes")} {else} - No + {dgettext("loris", "No")} {/if} {if $display.WindowInfo.Permitted|default} - Yes + {dgettext("loris", "Yes")} {else} - No + {dgettext("loris", "No")} {/if} {if $SupplementalSessionStatuses|default} @@ -142,20 +153,20 @@ - Stage + {dgettext("loris", "Stage")} - Status + {dgettext("timepoint_list", "Stage Status")} - Date + {dgettext("timepoint_list", "Date of Stage")} - Screening + {dgettext("loris", "Screening")} {$display.Screening} @@ -166,10 +177,12 @@ - Visit + {dgettext("loris", "Visit")} - {$display.Visit} + {if $display.Visit != ""} + {dgettext("loris", $display.Visit)} + {/if} {$display.Date_visit} @@ -177,7 +190,7 @@ - Approval + {dgettext("loris", "Approval")} {$display.Approval} @@ -191,7 +204,7 @@ -

Behavioural Battery of Instruments

+

{dgettext("instrument_list", "Behavioural Battery of Instruments")}

@@ -199,17 +212,17 @@ - - - - - - + + + + + {section name=instrument loop=$instruments[group]} @@ -218,29 +231,42 @@ - - + + {/if} + - + {/section} {sectionelse} - + {/section}
{$instrument_groups[group].title} + {dgettext("loris", $instrument_groups[group].title)} {if $smarty.section.group.iteration == 1} -
(Click To Open) +
({dgettext("timepoint_list", "Click to Open")}) {/if}
Data EntryAdministrationFeedbackDouble Data Entry FormDouble Data Entry Status{dgettext("loris", "Data Entry")}{dgettext("loris", "Administration")}{dgettext("loris", "Feedback")}{dgettext("loris", "Double Data Entry Form")}{dgettext("loris", "Double Data Entry Status")}
{$instruments[group][instrument].fullName}{$instruments[group][instrument].dataEntryStatus}{$instruments[group][instrument].administrationStatus} + {if $instruments[group][instrument].dataEntryStatus != ""} + {dgettext("loris", $instruments[group][instrument].dataEntryStatus)} + {if $instruments[group][instrument].administrationStatus != ""} + {dgettext("loris", $instruments[group][instrument].administrationStatus)} + {/if} + - {$instruments[group][instrument].feedbackStatus} + {dgettext("timepoint_list", $instruments[group][instrument].feedbackStatus)} - {if $instruments[group][instrument].isDdeEnabled } - Double Data Entry - {/if}  + {if $instruments[group][instrument].isDdeEnabled } + {dgettext("loris", "Double Data Entry")} + {/if}  {if $instruments[group][instrument].isDdeEnabled }{$instruments[group][instrument].ddeDataEntryStatus}{/if}  + {if $instruments[group][instrument].isDdeEnabled && $instruments[group][instrument].ddeDataEntryStatus != "" } + {dgettext("loris", $instruments[group][instrument].ddeDataEntryStatus)} + {/if}  +
The battery has no registered instruments
{dgettext("instrument_list", "The battery has no registered instruments")}
{if $imaging_browser_permission}
- +
{/if} - \ No newline at end of file + diff --git a/modules/timepoint_list/locale/es/LC_MESSAGES/timepoint_list.po b/modules/timepoint_list/locale/es/LC_MESSAGES/timepoint_list.po index 3df14db9f7a..65c36598352 100644 --- a/modules/timepoint_list/locale/es/LC_MESSAGES/timepoint_list.po +++ b/modules/timepoint_list/locale/es/LC_MESSAGES/timepoint_list.po @@ -75,6 +75,9 @@ msgstr " a / " msgid " m" msgstr " m" +msgid "Not Done" +msgstr "No Hecha" + msgid "Visual" msgstr "Visual" diff --git a/modules/timepoint_list/locale/timepoint_list.pot b/modules/timepoint_list/locale/timepoint_list.pot index 7661e7ffe13..8d6ba3de0cc 100644 --- a/modules/timepoint_list/locale/timepoint_list.pot +++ b/modules/timepoint_list/locale/timepoint_list.pot @@ -5,9 +5,18 @@ # This file is distributed under the same license as the LORIS package. # Dave MacFarlane , 2025. # - msgid "" msgstr "" +"Project-Id-Version: LORIS 27\n" +"Report-Msgid-Bugs-To: https://github.com/aces/Loris/issues\n" +"POT-Creation-Date: 2025-04-08 14:37-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" msgid "Timepoint List" msgstr "" @@ -66,6 +75,9 @@ msgstr "" msgid " m" msgstr "" +msgid "Not Done" +msgstr "" + msgid "Visual" msgstr ""