From 397fb122e7a761794dd37f5bcee34ed942215820 Mon Sep 17 00:00:00 2001 From: caroline Date: Wed, 5 Feb 2025 16:18:14 -0500 Subject: [PATCH] Bug 39045: Add translation context to currency active status This patch adds translation context to the 'Active' status for currencies. To test: 1. Go to Administration > Currencies and exchange rates --> There should be a column with the heading 'Active' 2. Click 'Edit' next to one of the currencies --> There should be a field Active: 3. Apply patch 4. Update translations ktd --shell gulp po:update --lang fr-CA 5. View the fr-CA-messages.po file --> There should be entries with 'Currency status' in msgctxt 6. Optionally, translate the strings (remember to remove the fuzzy flag, if any) 7. Install new translations ktd --root --shell koha-translate --install fr-CA --dev kohadev koha-translate --update fr-CA --dev kohadev 8. Enable the new language in Administration > System preferences > StaffInterfaceLanguages 9. Repeat steps 1 and 2 --> Translations should be whatever you put in the po file --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt index 2c914b902c..4eef461518 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/currency.tt @@ -158,7 +158,7 @@ [% END %]
  • - + [% IF currency.active %] [% ELSE %] @@ -238,7 +238,7 @@ Symbol ISO code Last updated - Active + [% tp('Currency status', 'Active') | html %] Archived Actions -- 2.43.0