96d50e45d0
This patch add the context 'noun' to the 'Filter' string in marc-overlay-rules.tt. This will separate that instance of 'Filter' from the other ones, where it is meant as a verb. To test: 1. Apply patch 2. Visit Administration > MARC overlay rules, make sure the page works (no errors) and that there is a column called 'Filter' 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 'Filter', with a line msgctxt that gives the 'noun' context 5. Update the file with a random word for the 'Filter' translation for example, I translated 'Filter' by 'Filter as a noun', just to see the difference \#: koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc-overlay-rules.tt:83 msgctxt "noun" msgid "Filter" msgstr "Filter as a noun" 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) cd misc/translator ./translate install xx-XX 6.2. In the Koha staff interface, go to Administration > Global system preferences 6.3. Search for language 6.4. Check the box next to the new language 6.5. Save 7. View the MARC overlay rules page in the new language, the 'Filter' column heading should be whatever you put in step 5 Optional test 8. In the staff interface in English, view one or more of these pages, the 'Filter' should be unchanged - Acquisitions > Late orders (Filter button) - Aquisitions > Search for vendor > Receive shipments (Filter heading on the left and Filter button) - Acquisitions > Search for vendor > Click vendor's name > Uncertain prices (Filter button) - Administration > Budgets > Click budget's name > Planning > Plan by ... (any option) (Filter heading on the left) - Reports > Use saved (Filter heading on the left) - Reports > Acquisitions statistics wizard (Filter column heading) - Reports > Patrons statistics wizard (Filter column heading) - Reports > Catalog statistics wizard (Filter column heading) - Reports > Circulation statistics wizard (Filter column heading) - Reports > Holds statistics wizard (Filter column heading) - Reports > Average loan time (Filter column heading) - Tools > News (Filter heading on the left) 9. View these same pages in the other language, the Filter should NOT be changed to whatever you put in step 5 Signed-off-by: David Nind <david@davidnind.com> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> |
||
---|---|---|
.. | ||
css | ||
en | ||
img | ||
js | ||
sound |