Bugzilla – Attachment 162545 Details for
Bug 31736
Context for translation: "All"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31736: Context for translation: 'All' (All libraries)
Bug-31736-Context-for-translation-All-All-librarie.patch (text/plain), 10.15 KB, created by
Hammat wele
on 2024-02-28 17:24:54 UTC
(
hide
)
Description:
Bug 31736: Context for translation: 'All' (All libraries)
Filename:
MIME Type:
Creator:
Hammat wele
Created:
2024-02-28 17:24:54 UTC
Size:
10.15 KB
patch
obsolete
>From 092ecc19e8264d8623269c88eb702866f1abe2b7 Mon Sep 17 00:00:00 2001 >From: Hammat Wele <hammat.wele@inlibro.com> >Date: Wed, 28 Feb 2024 17:23:04 +0000 >Subject: [PATCH] Bug 31736: Context for translation: 'All' (All libraries) >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >This patch adds context for translators for the term 'All' when it refers to 'All libraries'. >This patch replace the term 'All' when it refers to 'All libraries' by 'All libraries/branches' to be able to translate by gender > >1. Apply patch > >2. View the following pages > --> The pages work (no errors) > --> No spelling errors in 'All' libraries > > - Acquisitions > Invoices (Library filter on the left) > - Circulation > Holds queue (Library filter) > - Reports > Cash register (Transaction library filter) > - Reports > Items lost (Library filter) > - Serials > Check expiration (Library filter) > - Serials > Search settings icon in the search bar > Advanced search (Library filter) > - Acquisitions > Add to basket > From a subscription (Library filter on the left) > - Installer > Onboarding > New circulation rule (Library) > >3. Update the po files > > gulp po:update --lang xx-XX > > for example, gulp po:update --lang fr-CA > >4. Add tranlation for for 'All libraries/branches' in the file xx-XX-staff-prog.po (need after to be added in koha-l10n) > >For example, I translated 'All libraries/branches' by 'Toutes les bibliothèques' > >#: koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt:383 >#: koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt:254 >#: koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep5.tt:64 >#: koha-tmpl/intranet-tmpl/prog/en/modules/reports/cash_register_stats.tt:115 >#: koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt:146 >#: koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tt:48 >#: koha-tmpl/intranet-tmpl/prog/en/includes/serials-advsearch.inc:41 >#: koha-tmpl/intranet-tmpl/prog/en/includes/subscriptions-search.inc:34 >#, c-format >msgid "All libraries/branches" >msgstr "Toutes les bibliothèques" > >5. Install a new language > 6.1. Run the following commands in the terminal, replacing xx-XX with the language code (e.g. fr-CA) > > ./misc/translator/translate install xx-XX > > 6.2. In the Koha staff interface, go to Administration > System preferences > 6.3. Search for language > 6.4. Check the box next to the new language > 6.5. Save > >7. Switch the language of the interface > >8. Redo step 2 > --> The pages still work (no errors) > --> The 'All libraries/branches' libraries string should be replaced by whatever you put in step 4 >--- > koha-tmpl/intranet-tmpl/prog/en/includes/serials-advsearch.inc | 2 +- > .../intranet-tmpl/prog/en/includes/subscriptions-search.inc | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt | 2 +- > .../intranet-tmpl/prog/en/modules/onboarding/onboardingstep5.tt | 2 +- > .../prog/en/modules/reports/cash_register_stats.tt | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt | 2 +- > .../intranet-tmpl/prog/en/modules/serials/checkexpiration.tt | 2 +- > 8 files changed, 8 insertions(+), 8 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/serials-advsearch.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/serials-advsearch.inc >index ec34b6f073..63f316945a 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/serials-advsearch.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/serials-advsearch.inc >@@ -37,7 +37,7 @@ > <li class="local"> > <label for="branch">Library:</label> > <select id="branch" name="branch_filter"> >- <option value="">All</option> >+ <option value="">All libraries/branches</option> > [%# FIXME Should not we filter the libraries? %] > [% PROCESS options_for_libraries libraries => Branches.all( selected => branch_filter, unfiltered => 1 ) %] > </select> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/subscriptions-search.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/subscriptions-search.inc >index 5e1275d249..fb68cc4456 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/subscriptions-search.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/subscriptions-search.inc >@@ -30,7 +30,7 @@ > <li> > <label for="branch">Library:</label> > <select id="branch" name="branch_filter"> >- <option value="">All</option> >+ <option value="">All libraries/branches</option> > [%# FIXME Should not we filter the libraries? %] > [% PROCESS options_for_libraries libraries => Branches.all( selected => branch_filter, unfiltered => 1 ) %] > </select> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt >index 16108eb8eb..554ccb1df0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/invoices.tt >@@ -384,7 +384,7 @@ > <li> > <label for="branch">Library:</label> > <select id="branch" name="branch"> >- <option value="">All</option> >+ <option value="">All libraries/branches</option> > [%# FIXME Should not we filter the libraries %] > [% PROCESS options_for_libraries libraries => Branches.all( selected => branch, unfiltered => 1 ) %] > </select> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt >index 24978b60d5..6e8c3e7f26 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/view_holdsqueue.tt >@@ -254,7 +254,7 @@ > <label for="branchlimit">Library: </label> > <select name="branchlimit" id="branchlimit"> > [% IF CAN_user_superlibrarian || !Koha.Preference('IndependentBranches') %] >- <option value="">All</option> >+ <option value="">All libraries/branches</option> > [% END %] > [% PROCESS options_for_libraries libraries => Branches.all( selected => branchlimit, only_from_group => 1 ) %] > </select> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep5.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep5.tt >index 4105d079db..3afcbc8f1f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep5.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/onboarding/onboardingstep5.tt >@@ -64,7 +64,7 @@ > <label for="branchname" class="required"> Library branch</label> > <select name="branch" id="branchname" required="required"> > <option value=""> Choose</option> >- <option value="*" selected="selected">All</option> >+ <option value="*" selected="selected">All libraries/branches</option> > [% FOREACH library IN libraries %] > <option value="[% library.branchcode | html %]"> [% library.branchname | html %]</option> > [% END %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cash_register_stats.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cash_register_stats.tt >index 8fffadaa06..87f5404e22 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cash_register_stats.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/cash_register_stats.tt >@@ -120,7 +120,7 @@ > <li> > <label>Transaction library</label> > <select name="branch" id="branch"> >- <option value="ALL">All</option> >+ <option value="ALL">All libraries/branches</option> > [% FOREACH branchloo IN branchloop %] > [% IF ( branchloo.selected ) %] > <option value="[% branchloo.branchcode | html %]" selected="selected">[% branchloo.branchname | html %]</option> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt >index c2b4cf36e6..6f1075d4b5 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/itemslost.tt >@@ -148,7 +148,7 @@ > > <li><label for="barcodefilter">Barcode: </label><input type="text" name="barcodefilter" id="barcodefilter" size="6" /></li> > <li><label for="branchfilter">Library: </label><select name="branchfilter" id="branchfilter"> >- <option value="">All</option> >+ <option value="">All libraries/branches</option> > [% PROCESS options_for_libraries libraries => Branches.all() %] > </select></li> > <li><label for="itemtypesfilter">Item type: </label><select name="itemtypesfilter" id="itemtypesfilter"> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tt >index 2c7bbd1c8e..f09f223ba0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/serials/checkexpiration.tt >@@ -45,7 +45,7 @@ > [% IF can_change_library %] > <li><label for="branch">Library:</label> > <select id="branch" name="branch"> >- <option value="">All</option> >+ <option value="">All libraries/branches</option> > [% PROCESS options_for_libraries libraries => Branches.all( selected => branch ) %] > </select> > </li> >-- >2.34.1
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 31736
:
153301
|
153302
|
162545
|
163817
|
163859
|
163860
|
163861
|
163862
|
163863
|
163864
|
163865
|
163866
|
163867
|
163868
|
163869
|
163870
|
163871
|
169498
|
170072
|
170281
|
170282
|
170283
|
170284
|
170285
|
170286
|
170287
|
170288
|
170289
|
170290
|
170291
|
170292
|
170293