https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31736 --- Comment #6 from Hammat wele <hammat.wele@inlibro.com> --- Created attachment 162545 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162545&action=edit Bug 31736: Context for translation: 'All' (All libraries) 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 -- You are receiving this mail because: You are watching all bug changes.