Bugzilla – Attachment 177559 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 vendor status (active/inactive)
Bug-39045-Add-translation-context-to-vendor-status.patch (text/plain), 4.38 KB, created by
Caroline Cyr La Rose
on 2025-02-05 22:07:15 UTC
(
hide
)
Description:
Bug 39045: Add translation context to vendor status (active/inactive)
Filename:
MIME Type:
Creator:
Caroline Cyr La Rose
Created:
2025-02-05 22:07:15 UTC
Size:
4.38 KB
patch
obsolete
>From c9a400ee19f7fad59366e59a0d956e12810cd5f3 Mon Sep 17 00:00:00 2001 >From: caroline <caroline@inlibro.com> >Date: Wed, 5 Feb 2025 14:57:37 -0500 >Subject: [PATCH] Bug 39045: Add translation context to vendor status > (active/inactive) > >This patch adds translation context to 'Active' and 'Inactive' when used >for the vendor status in acquisitions. > >To test: >1. Go to Acquisitions >2. Click 'New vendor' > --> At the bottom of the form, in the 'Ordering information' section, there should be a choice Vendor is: Active Inactive >3. Enter a vendor name >4. Click 'Save' >5. Click the name of the vendor > --> In the 'Ordering information' box (bottom left), there should be a mention Vendor is: Active >6. Click 'Edit vendor' >7. Choose 'Inactive' >8. Click 'Save' > --> Next to the vendor name, it should say '(inactive)' >9. Click the name of the vendor > --> In the 'Ordering information' box (bottom left), there should be a mention Vendor is: Inactive >10. Apply patch >11. Update translations > ktd --shell > gulp po:update --lang fr-CA >12. View the fr-CA-messages.po file > --> There should be entries with 'Vendor status' in msgctxt >13. Optionally, translate the strings (remember to remove the fuzzy > flag, if any) >14. Install new translations > ktd --root --shell > koha-translate --install fr-CA --dev kohadev > koha-translate --update fr-CA --dev kohadev >15. Enable the new language in Administration > System preferences > > StaffInterfaceLanguages >16. Repeat steps 1-9 > --> Translations should be whatever you put in the po file >--- > .../intranet-tmpl/prog/en/modules/acqui/booksellers.tt | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt | 8 ++++---- > 2 files changed, 5 insertions(+), 5 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >index e567b85c1b..d6948deae1 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt >@@ -89,7 +89,7 @@ > [% END %] > </a> > [% IF (supplier.vendor_type) %]([% AuthorisedValues.GetByCode( 'VENDOR_TYPE', supplier.vendor_type ) | html %])[% END %] >- [% IF ( !supplier.active ) %]<span class="vendor_inactive">(inactive)</span>[% END %] >+ [% IF ( !supplier.active ) %]<span class="vendor_inactive">[% tp('Vendor status', '(inactive)') | html %]</span>[% END %] > </h2> > <span class="basketcounts"> > [% IF ( count > 1 ) %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt >index 03b0924148..3687e99248 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt >@@ -274,14 +274,14 @@ > <ol><li><label for="activestatus">Vendor is:</label> > [% IF ( active ) %] > <input type="radio" id="activestatus" name="status" value="1" checked="checked" /> >- <label class="radio" for="activestatus">Active</label> >+ <label class="radio" for="activestatus">[% tp('Vendor status', 'Active') | html %]</label> > <input type="radio" id="inactivestatus" name="status" value="0" /> >- <label class="radio" for="inactivestatus">Inactive</label> >+ <label class="radio" for="inactivestatus">[% tp('Vendor status', 'Inactive') | html %]</label> > [% ELSE %] > <input type="radio" id="activestatus" name="status" value="1" /> >- <label class="radio" for="activestatus">Active</label> >+ <label class="radio" for="activestatus">[% tp('Vendor status', 'Active') | html %]</label> > <input type="radio" id="inactivestatus" name="status" value="0" checked="checked" /> >- <label class="radio" for="inactivestatus">Inactive</label> >+ <label class="radio" for="inactivestatus">[% tp('Vendor status', 'Inactive') | html %]</label> > [% END %]</li> > <li><label for="list_currency">List prices are: </label> > <select name="list_currency" id="list_currency"> >-- >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