From c3bd4c34eeeea200e22a655a906e4d9fe124b12b Mon Sep 17 00:00:00 2001 From: Michael Lapadula Date: Tue, 4 Aug 2026 16:19:59 -0400 Subject: [PATCH 1/3] Adding missing translation --- modules/dashboard/php/module.class.inc | 2 +- raisinbread/locale/ExternalLinks.pot | 19 ++++++++++++++++++ .../locale/fr/LC_MESSAGES/ExternalLinks.po | 20 +++++++++++++++++++ .../AnonymousPageDecorationMiddleware.php | 2 +- .../UserPageDecorationMiddleware.php | 2 +- 5 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 raisinbread/locale/ExternalLinks.pot create mode 100644 raisinbread/locale/fr/LC_MESSAGES/ExternalLinks.po diff --git a/modules/dashboard/php/module.class.inc b/modules/dashboard/php/module.class.inc index 6d2a92221c..6c3e70aa4d 100644 --- a/modules/dashboard/php/module.class.inc +++ b/modules/dashboard/php/module.class.inc @@ -86,7 +86,7 @@ class Module extends \Module foreach ($dashboard_links as $text => $url) { $links[] = [ 'url' => $url, - 'label' => $text, + 'label' => dgettext("ExternalLinks", $text), 'WindowName' => md5($url), ]; } diff --git a/raisinbread/locale/ExternalLinks.pot b/raisinbread/locale/ExternalLinks.pot new file mode 100644 index 0000000000..250b4ab24d --- /dev/null +++ b/raisinbread/locale/ExternalLinks.pot @@ -0,0 +1,19 @@ +msgid "" +msgstr "" + +"Project-Id-Version: LORIS 28\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 "Loris Website" +msgstr "" + +msgid "GitHub" +msgstr "" diff --git a/raisinbread/locale/fr/LC_MESSAGES/ExternalLinks.po b/raisinbread/locale/fr/LC_MESSAGES/ExternalLinks.po new file mode 100644 index 0000000000..bd95ce32e2 --- /dev/null +++ b/raisinbread/locale/fr/LC_MESSAGES/ExternalLinks.po @@ -0,0 +1,20 @@ +msgid "" +msgstr "" + +"Project-Id-Version: LORIS 28\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: 2026-06-11 14:37-0400\n" +"Last-Translator: Saagar Arya \n" +"Language-Team: LANGUAGE \n" +"Language: fr\n" +"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" + +msgid "Loris Website" +msgstr "Site web LORIS" + +msgid "GitHub" +msgstr "GitHub" diff --git a/src/Middleware/AnonymousPageDecorationMiddleware.php b/src/Middleware/AnonymousPageDecorationMiddleware.php index 0fba440a8e..7234e17354 100644 --- a/src/Middleware/AnonymousPageDecorationMiddleware.php +++ b/src/Middleware/AnonymousPageDecorationMiddleware.php @@ -59,7 +59,7 @@ public function process(ServerRequestInterface $request, RequestHandlerInterface $tpl_data['links'][] = array( 'url' => $url, - 'label' => $label, + 'label' => dgettext("ExternalLinks", $label), 'windowName' => $WindowName, ); } diff --git a/src/Middleware/UserPageDecorationMiddleware.php b/src/Middleware/UserPageDecorationMiddleware.php index bf57bbd0ac..dedbb2367c 100644 --- a/src/Middleware/UserPageDecorationMiddleware.php +++ b/src/Middleware/UserPageDecorationMiddleware.php @@ -247,7 +247,7 @@ function ($a, $b) { $tpl_data['links'][] = array( 'url' => $url, - 'label' => $label, + 'label' => dgettext("ExternalLinks", $label), 'windowName' => $WindowName, ); } From 86bf3e660ad23ab46fada957e086e906bb08c583 Mon Sep 17 00:00:00 2001 From: Michael Lapadula Date: Tue, 4 Aug 2026 16:21:32 -0400 Subject: [PATCH 2/3] Change LORIS to Loris --- raisinbread/locale/fr/LC_MESSAGES/ExternalLinks.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raisinbread/locale/fr/LC_MESSAGES/ExternalLinks.po b/raisinbread/locale/fr/LC_MESSAGES/ExternalLinks.po index bd95ce32e2..932d9eaba3 100644 --- a/raisinbread/locale/fr/LC_MESSAGES/ExternalLinks.po +++ b/raisinbread/locale/fr/LC_MESSAGES/ExternalLinks.po @@ -14,7 +14,7 @@ msgstr "" "Plural-Forms: nplurals=2; plural=(n > 1);\n" msgid "Loris Website" -msgstr "Site web LORIS" +msgstr "Site web Loris" msgid "GitHub" msgstr "GitHub" From 27760b4724764b30ea9762fc1bfd3bddcbe984d5 Mon Sep 17 00:00:00 2001 From: Michael Lapadula Date: Wed, 5 Aug 2026 09:53:50 -0400 Subject: [PATCH 3/3] Change metadata to 29 --- raisinbread/locale/ExternalLinks.pot | 2 +- raisinbread/locale/fr/LC_MESSAGES/ExternalLinks.po | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/raisinbread/locale/ExternalLinks.pot b/raisinbread/locale/ExternalLinks.pot index 250b4ab24d..8dbbe53adc 100644 --- a/raisinbread/locale/ExternalLinks.pot +++ b/raisinbread/locale/ExternalLinks.pot @@ -1,7 +1,7 @@ msgid "" msgstr "" -"Project-Id-Version: LORIS 28\n" +"Project-Id-Version: LORIS 29\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" diff --git a/raisinbread/locale/fr/LC_MESSAGES/ExternalLinks.po b/raisinbread/locale/fr/LC_MESSAGES/ExternalLinks.po index 932d9eaba3..a4093361ba 100644 --- a/raisinbread/locale/fr/LC_MESSAGES/ExternalLinks.po +++ b/raisinbread/locale/fr/LC_MESSAGES/ExternalLinks.po @@ -1,7 +1,7 @@ msgid "" msgstr "" -"Project-Id-Version: LORIS 28\n" +"Project-Id-Version: LORIS 29\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: 2026-06-11 14:37-0400\n"