From 40841b9a88d82a8f08ae75d59392f21a7ca1fc24 Mon Sep 17 00:00:00 2001 From: lorisadmin Date: Mon, 29 Sep 2025 03:03:38 +0000 Subject: [PATCH 1/5] [instrument_list] Translates Instrument list module. --- Makefile | 1 + locale/es/LC_MESSAGES/loris.po | 28 +++++- locale/loris.pot | 27 ++++++ .../locale/es/LC_MESSAGES/instrument_list.po | 70 +++++++++++++ ...instrument_list.po => instrument_list.pot} | 47 +++++++++ .../php/instrument_list.class.inc | 6 +- .../instrument_list_controlpanel.tpl | 44 ++++----- .../templates/menu_instrument_list.tpl | 97 +++++++++++-------- .../locale/es/LC_MESSAGES/timepoint_list.po | 6 ++ .../timepoint_list/locale/timepoint_list.pot | 17 +++- 10 files changed, 275 insertions(+), 68 deletions(-) create mode 100644 modules/instrument_list/locale/es/LC_MESSAGES/instrument_list.po rename modules/instrument_list/locale/{instrument_list.po => instrument_list.pot} (54%) diff --git a/Makefile b/Makefile index c7dec64e0a2..aa674435371 100755 --- a/Makefile +++ b/Makefile @@ -113,6 +113,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..36550b53af0 100644 --- a/locale/es/LC_MESSAGES/loris.po +++ b/locale/es/LC_MESSAGES/loris.po @@ -86,7 +86,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 +110,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" @@ -145,6 +145,12 @@ msgstr "" msgid "Project" msgstr "Projecto" +msgid "Candidate Registration Project" +msgstr "Projecto donde se registró al Candidato" + +msgid "Timepoint Project" +msgstr "Punto en el tiempo del Projecto" + msgid "Cohort" msgstr "Cohorte" @@ -178,6 +184,9 @@ msgstr "Etapa" msgid "Sent To DCC" msgstr "Enviar a CCD" +msgid "Reverse Send To DCC" +msgstr "Revertir Enviar al CCD" + msgid "Date of Birth" msgstr "" @@ -259,3 +268,18 @@ 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" diff --git a/locale/loris.pot b/locale/loris.pot index 5d0d10f350e..7e11b4d1258 100644 --- a/locale/loris.pot +++ b/locale/loris.pot @@ -145,6 +145,12 @@ msgstr "" msgid "Project" msgstr "" +msgid "Candidate Registration Project" +msgstr "" + +msgid "Timepoint Project" +msgstr "" + msgid "Cohort" msgstr "" @@ -178,6 +184,9 @@ msgstr "" msgid "Sent To DCC" msgstr "" +msgid "Reverse Send To DCC" +msgstr "" + msgid "Date of Birth" msgstr "" @@ -259,3 +268,21 @@ msgstr "" msgid "In Progress" msgstr "" + +msgid "Complete" +msgstr "" + +msgid "Instruments" +msgstr "" + +msgid "None" +msgstr "" + +msgid "Partial" +msgstr "" + +msgid "All" +msgstr "" + +msgid "Start" +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..30870bd128d --- /dev/null +++ b/modules/instrument_list/locale/es/LC_MESSAGES/instrument_list.po @@ -0,0 +1,70 @@ +# 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 "Instruments" +msgstr "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 "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" + +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 54% rename from modules/instrument_list/locale/instrument_list.po rename to modules/instrument_list/locale/instrument_list.pot index 11e01ab6a01..87459122967 100644 --- a/modules/instrument_list/locale/instrument_list.po +++ b/modules/instrument_list/locale/instrument_list.pot @@ -21,3 +21,50 @@ msgstr "" msgid "Instrument List" msgstr "" +msgid "Instruments" +msgstr "" + +msgid "Visit to Site" +msgstr "" + +msgid "Within Optimal" +msgstr "" + +msgid "Within Permitted" +msgstr "" + +msgid "Behavioural Battery of Instruments" +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 "" + +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..4e9ece2ff23 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,73 @@ 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 Status")}

  • {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 +99,7 @@ {if $bvl_qc_status_complete.showlink|default} Complete {else} - Complete + {dgettext("timepoint_list", "Complete")} {/if}
@@ -116,4 +116,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..b978e86b7b1 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} @@ -113,16 +113,16 @@ {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 +142,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 +166,12 @@ - Visit + {dgettext("loris", "Visit")} - {$display.Visit} + {if $display.Visit != ""} + {dgettext("loris", $display.Visit)} + {/if} {$display.Date_visit} @@ -177,7 +179,7 @@ - Approval + {dgettext("loris", "Approval")} {$display.Approval} @@ -191,7 +193,7 @@ -

Behavioural Battery of Instruments

+

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

@@ -199,17 +201,17 @@ - - - - - - + + + + + {section name=instrument loop=$instruments[group]} @@ -218,29 +220,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("instrument_list", "Data Entry")}{dgettext("instrument_list", "Administration")}{dgettext("loris", "Feedback")}{dgettext("instrument_list", "Double Data Entry Form")}{dgettext("instrument_list", "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("instrument_list", "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..3bdbc094f69 100644 --- a/modules/timepoint_list/locale/es/LC_MESSAGES/timepoint_list.po +++ b/modules/timepoint_list/locale/es/LC_MESSAGES/timepoint_list.po @@ -36,6 +36,9 @@ msgstr "Imagen de Scan hecha" msgid "BVL QC" msgstr "CC Conductual" +msgid "BVL QC Status" +msgstr "Estado del CC Conductual" + msgid "BVL Exclusion" msgstr "Exclusión Conductual" @@ -75,6 +78,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..08c9c495f7d 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: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" msgid "Timepoint List" msgstr "" @@ -27,6 +36,9 @@ msgstr "" msgid "BVL QC" msgstr "" +msgid "BVL QC Status" +msgstr "" + msgid "BVL Exclusion" msgstr "" @@ -66,6 +78,9 @@ msgstr "" msgid " m" msgstr "" +msgid "Not Done" +msgstr "" + msgid "Visual" msgstr "" From 0d164abf68adbd38ee6ca6ccf1ef04ef7f09a772 Mon Sep 17 00:00:00 2001 From: lorisadmin Date: Mon, 29 Sep 2025 16:27:23 +0000 Subject: [PATCH 2/5] Updating translations locales. --- locale/es/LC_MESSAGES/loris.po | 15 +++++++++++++++ locale/loris.pot | 14 +++++++++++++- .../locale/es/LC_MESSAGES/instrument_list.po | 18 ------------------ .../instrument_list/locale/instrument_list.pot | 18 ------------------ .../templates/instrument_list_controlpanel.tpl | 2 +- .../templates/menu_instrument_list.tpl | 10 +++++----- .../locale/es/LC_MESSAGES/timepoint_list.po | 3 --- .../timepoint_list/locale/timepoint_list.pot | 3 --- 8 files changed, 34 insertions(+), 49 deletions(-) diff --git a/locale/es/LC_MESSAGES/loris.po b/locale/es/LC_MESSAGES/loris.po index 36550b53af0..838716f4fd0 100644 --- a/locale/es/LC_MESSAGES/loris.po +++ b/locale/es/LC_MESSAGES/loris.po @@ -283,3 +283,18 @@ 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" diff --git a/locale/loris.pot b/locale/loris.pot index 7e11b4d1258..6d4fb799dde 100644 --- a/locale/loris.pot +++ b/locale/loris.pot @@ -284,5 +284,17 @@ msgstr "" msgid "All" msgstr "" -msgid "Start" +msgid "Data Entry" +msgstr "" + +msgid "Administration" +msgstr "" + +msgid "Double Data Entry Form" +msgstr "" + +msgid "Double Data Entry Status" +msgstr "" + +msgid "Double Data Entry" 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 index 30870bd128d..c93dcd47843 100644 --- a/modules/instrument_list/locale/es/LC_MESSAGES/instrument_list.po +++ b/modules/instrument_list/locale/es/LC_MESSAGES/instrument_list.po @@ -21,9 +21,6 @@ msgstr "" msgid "Instrument List" msgstr "Lista de Instrumentos" -msgid "Instruments" -msgstr "Instrumentos" - msgid "Visit to Site" msgstr "Visita al Sitio" @@ -36,21 +33,6 @@ msgstr "Dentro de permitido" msgid "Behavioural Battery of Instruments" msgstr "Batería de instrumentos de comportamiento" -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" - msgid "The battery has no registered instruments" msgstr "La batería no tiene instrumentos registrados" diff --git a/modules/instrument_list/locale/instrument_list.pot b/modules/instrument_list/locale/instrument_list.pot index 87459122967..12754aac68e 100644 --- a/modules/instrument_list/locale/instrument_list.pot +++ b/modules/instrument_list/locale/instrument_list.pot @@ -21,9 +21,6 @@ msgstr "" msgid "Instrument List" msgstr "" -msgid "Instruments" -msgstr "" - msgid "Visit to Site" msgstr "" @@ -36,21 +33,6 @@ msgstr "" msgid "Behavioural Battery of Instruments" 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 "" - msgid "The battery has no registered instruments" msgstr "" diff --git a/modules/instrument_list/templates/instrument_list_controlpanel.tpl b/modules/instrument_list/templates/instrument_list_controlpanel.tpl index 4e9ece2ff23..c24c346e03f 100644 --- a/modules/instrument_list/templates/instrument_list_controlpanel.tpl +++ b/modules/instrument_list/templates/instrument_list_controlpanel.tpl @@ -83,7 +83,7 @@ -

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

+

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

  • diff --git a/modules/instrument_list/templates/menu_instrument_list.tpl b/modules/instrument_list/templates/menu_instrument_list.tpl index b978e86b7b1..ca07707474b 100644 --- a/modules/instrument_list/templates/menu_instrument_list.tpl +++ b/modules/instrument_list/templates/menu_instrument_list.tpl @@ -207,11 +207,11 @@
    ({dgettext("timepoint_list", "Click to Open")}) {/if} - {dgettext("instrument_list", "Data Entry")} - {dgettext("instrument_list", "Administration")} + {dgettext("loris", "Data Entry")} + {dgettext("loris", "Administration")} {dgettext("loris", "Feedback")} - {dgettext("instrument_list", "Double Data Entry Form")} - {dgettext("instrument_list", "Double Data Entry Status")} + {dgettext("loris", "Double Data Entry Form")} + {dgettext("loris", "Double Data Entry Status")} {section name=instrument loop=$instruments[group]} @@ -234,7 +234,7 @@ {if $instruments[group][instrument].isDdeEnabled } - {dgettext("instrument_list", "Double Data Entry")} + {dgettext("loris", "Double Data Entry")} {/if}  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 3bdbc094f69..65c36598352 100644 --- a/modules/timepoint_list/locale/es/LC_MESSAGES/timepoint_list.po +++ b/modules/timepoint_list/locale/es/LC_MESSAGES/timepoint_list.po @@ -36,9 +36,6 @@ msgstr "Imagen de Scan hecha" msgid "BVL QC" msgstr "CC Conductual" -msgid "BVL QC Status" -msgstr "Estado del CC Conductual" - msgid "BVL Exclusion" msgstr "Exclusión Conductual" diff --git a/modules/timepoint_list/locale/timepoint_list.pot b/modules/timepoint_list/locale/timepoint_list.pot index 08c9c495f7d..b7249f0e62e 100644 --- a/modules/timepoint_list/locale/timepoint_list.pot +++ b/modules/timepoint_list/locale/timepoint_list.pot @@ -36,9 +36,6 @@ msgstr "" msgid "BVL QC" msgstr "" -msgid "BVL QC Status" -msgstr "" - msgid "BVL Exclusion" msgstr "" From 0d72d268d2901a80f8e7f41a7afce9b8a42324ae Mon Sep 17 00:00:00 2001 From: lorisadmin Date: Thu, 16 Oct 2025 18:05:07 +0000 Subject: [PATCH 3/5] Errata --- locale/es/LC_MESSAGES/loris.po | 12 ++++++------ locale/loris.pot | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/locale/es/LC_MESSAGES/loris.po b/locale/es/LC_MESSAGES/loris.po index 58f5caa0baf..41103d303f2 100644 --- a/locale/es/LC_MESSAGES/loris.po +++ b/locale/es/LC_MESSAGES/loris.po @@ -86,7 +86,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 +110,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" @@ -155,7 +155,7 @@ msgid "Candidate Registration Project" msgstr "Projecto donde se registró al Candidato" msgid "Timepoint Project" -msgstr "" +msgstr "Punto en el tiempo del Projecto" msgid "Cohort" msgid_plural "Cohorts" @@ -244,7 +244,7 @@ msgid "Total" msgstr "Total" msgid "Error!" -msgstr "" +msgstr "Error!" # Common timepoint and vist terms msgid "Not Started" @@ -299,13 +299,13 @@ msgid "Administration" msgstr "Administración" msgid "Double Data Entry Form" -msgstr "Formulario de entrada de datos duplicad" +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 doble" +msgstr "Entrada de datos duplicada" # Age related terms msgid "Age" diff --git a/locale/loris.pot b/locale/loris.pot index 11d669c08ce..2be4d921724 100644 --- a/locale/loris.pot +++ b/locale/loris.pot @@ -155,7 +155,7 @@ msgid "Candidate Registration Project" msgstr "" msgid "Timepoint Project" -msgstr "Punto en el tiempo del Projecto" +msgstr "" msgid "Cohort" msgid_plural "Cohorts" From c3b7d69853e6af7ed3afab9234ba846340f1dc6b Mon Sep 17 00:00:00 2001 From: lorisadmin Date: Fri, 17 Oct 2025 02:48:58 +0000 Subject: [PATCH 4/5] fixes .pot and po file plus issue with .tpl file --- locale/es/LC_MESSAGES/loris.po | 3 ++- locale/loris.pot | 2 +- .../templates/instrument_list_controlpanel.tpl | 14 +++++++++----- modules/timepoint_list/locale/timepoint_list.pot | 2 +- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/locale/es/LC_MESSAGES/loris.po b/locale/es/LC_MESSAGES/loris.po index 41103d303f2..a5a311e20c2 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" @@ -186,7 +187,7 @@ msgstr "" msgid "Stage" msgstr "Etapa" -msgid "Sent To DCC" +msgid "Send To DCC" msgstr "Enviar a CCD" msgid "Reverse Send To DCC" diff --git a/locale/loris.pot b/locale/loris.pot index 2be4d921724..f6d47b37ffc 100644 --- a/locale/loris.pot +++ b/locale/loris.pot @@ -185,7 +185,7 @@ msgstr "" msgid "Stage" msgstr "" -msgid "Sent To DCC" +msgid "Send To DCC" msgstr "" msgid "Reverse Send To DCC" diff --git a/modules/instrument_list/templates/instrument_list_controlpanel.tpl b/modules/instrument_list/templates/instrument_list_controlpanel.tpl index c24c346e03f..ae26865a827 100644 --- a/modules/instrument_list/templates/instrument_list_controlpanel.tpl +++ b/modules/instrument_list/templates/instrument_list_controlpanel.tpl @@ -38,17 +38,21 @@
  • {if $access.send_to_dcc===true} {if $send_to_dcc.set_submitted=='Check'} - {$send_to_dcc.reverse|default:dgettext("loris", "Sent To DCC")}
    + {$send_to_dcc.reverse|default:dgettext("loris", "Send To DCC")}
    {else} - {dgettext("loris", $send_to_dcc.reverse)|default:dgettext("loris", "Sent To DCC")} + {if ($send_to_dcc.reverse) } + {dgettext("loris", $send_to_dcc.reverse)} + {else} + {dgettext("loris", "Send To DCC")} + {/if} {/if} {else} - {dgettext("loris", "Sent To DCC")} + {dgettext("loris", "Send To DCC")} {/if}
diff --git a/modules/timepoint_list/locale/timepoint_list.pot b/modules/timepoint_list/locale/timepoint_list.pot index b7249f0e62e..8d6ba3de0cc 100644 --- a/modules/timepoint_list/locale/timepoint_list.pot +++ b/modules/timepoint_list/locale/timepoint_list.pot @@ -13,7 +13,7 @@ msgstr "" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" -"Language: es\n" +"Language: \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" From f5ff1d1e394c019235cb43f52708cf17f246b16e Mon Sep 17 00:00:00 2001 From: lorisadmin Date: Fri, 17 Oct 2025 14:42:23 +0000 Subject: [PATCH 5/5] Missing translation and .pot entry. --- locale/es/LC_MESSAGES/loris.po | 3 +++ locale/loris.pot | 3 +++ .../templates/menu_instrument_list.tpl | 13 ++++++++++++- 3 files changed, 18 insertions(+), 1 deletion(-) diff --git a/locale/es/LC_MESSAGES/loris.po b/locale/es/LC_MESSAGES/loris.po index a5a311e20c2..7de0ab60cb9 100644 --- a/locale/es/LC_MESSAGES/loris.po +++ b/locale/es/LC_MESSAGES/loris.po @@ -190,6 +190,9 @@ msgstr "Etapa" 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" diff --git a/locale/loris.pot b/locale/loris.pot index f6d47b37ffc..a1456967b2c 100644 --- a/locale/loris.pot +++ b/locale/loris.pot @@ -188,6 +188,9 @@ msgstr "" msgid "Send To DCC" msgstr "" +msgid "Sent To DCC" +msgstr "" + msgid "Reverse Send To DCC" msgstr "" diff --git a/modules/instrument_list/templates/menu_instrument_list.tpl b/modules/instrument_list/templates/menu_instrument_list.tpl index ca07707474b..89199758ca4 100644 --- a/modules/instrument_list/templates/menu_instrument_list.tpl +++ b/modules/instrument_list/templates/menu_instrument_list.tpl @@ -109,7 +109,18 @@ {$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}