Bugzilla – Attachment 177562 Details for
Bug 39045
Add translation context for "Active" and "Inactive"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39045: Add translation context to stock rotation active status
Bug-39045-Add-translation-context-to-stock-rotatio.patch (text/plain), 3.52 KB, created by
Caroline Cyr La Rose
on 2025-02-05 22:07:20 UTC
(
hide
)
Description:
Bug 39045: Add translation context to stock rotation active status
Filename:
MIME Type:
Creator:
Caroline Cyr La Rose
Created:
2025-02-05 22:07:20 UTC
Size:
3.52 KB
patch
obsolete
>From 89a372ae32d09bc94e2bc462842d3a3954432acd Mon Sep 17 00:00:00 2001 >From: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> >Date: Wed, 5 Feb 2025 16:57:46 -0500 >Subject: [PATCH] Bug 39045: Add translation context to stock rotation active > status > >This patch adds translation context to the 'Active' status of stock >rotation. > >To test: >1. Enable the StockRotation system preference > 1.1. Go to Administration > System preferences > 1.2. Search for StockRotation > 1.3. Choose 'Enable' > 1.4. Click 'Save all Circulation preferences' >2. Go to Cataloging > Stock rotation >3. Click 'New rota' >4. Enter a name for the rota >5. Click 'Save' > --> There should be a column with the heading 'Active' >6. Click 'Manage' > 'Stages' >7. Click 'Add a stage' >8. Enter a duration >9. Click 'Save' >10. Click 'Return to rotas' >11. Click 'Activate' >12. Click 'Manage' > 'Items' >13. Click 'Add items' >14. Enter a barcode (e.g. 39999000001518) >15. Click 'Save' >16. Click the title of the item >17. Click 'Rota' (left menu) > --> Under 'Rota status' it should say 'Active' >18. Apply patch >19. Update translations > ktd --shell > gulp po:update --lang fr-CA >20. View the fr-CA-messages.po file > --> There should be an entry with 'Rota status' in msgctxt >21. Optionally, translate the strings (remember to remove the fuzzy flag, if any) >22. Install new translations > ktd --root --shell > koha-translate --install fr-CA --dev kohadev > koha-translate --update fr-CA --dev kohadev >23. Enable the new language in Administration > System preferences > StaffInterfaceLanguages >24. Repeat step 1-17 > --> Translations should be whatever you put in the po file >--- > .../intranet-tmpl/prog/en/modules/catalogue/stockrotation.tt | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/stockrotation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/stockrotation.tt >index f8b3fe6818..ad2ae08561 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/stockrotation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/stockrotation.tt >@@ -71,7 +71,7 @@ > <span class="highlighted-row"> > [% END %] > [% IF item.rota.active %] >- <span>Active</span> >+ <span>[% tp('Rota status', 'Active') | html %]</span> > [% ELSE %] > <span>Inactive</span> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt >index 15fa05cbab..7d78c8df58 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/stockrotation.tt >@@ -116,7 +116,7 @@ > <tr> > <th class="anti-the">Name</th> > <th>Cyclical</th> >- <th>Active</th> >+ <th>[% tp('Rota status', 'Active') | html %]</th> > <th>Description</th> > <th>Number of items</th> > <th class="NoSort noExport">Actions</th> >-- >2.43.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39045
:
177559
|
177560
|
177561
|
177562
|
177590
|
177591
|
177593
|
177595
|
177596
|
177601
|
177711
|
178900
|
178901
|
178902
|
178903
|
178904
|
178905
|
178906
|
178907
|
178908
|
178909
|
183708
|
183709
|
183710
|
183711
|
183712
|
183713
|
183714
|
183715
|
183716