https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31736
--- Comment #2 from Caroline Cyr La Rose <[email protected]> --- Created attachment 153301 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=153301&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'. 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. Check the xx-XX-messages.po file (e.g. misc/translator/po/fr-CA-messages.po) --> There should be an entry for 'All' with a line msgctxt that gives the 'All libraries/branches' context 5. Update the file with a random word or phrase for the 'All' translation For example, I translated 'All' 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 msgctxt "All libraries/branches" msgid "All" msgstr "Toutes les bibliothèques" 6. 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 string should be replaced by whatever you put in step 5 -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
