Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Caroline Cyr La Rose 96d50e45d0
Bug 31807: Context for translation: Filter (verb) vs. Filter (noun)
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>
2022-10-17 08:10:23 -03:00
..
acqui Bug 30952: (follow-up) Undo change to Home breadcrumb 2022-10-12 16:00:45 -03:00
admin Bug 31807: Context for translation: Filter (verb) vs. Filter (noun) 2022-10-17 08:10:23 -03:00
authorities Bug 30952: (follow-up) Undo change to Home breadcrumb 2022-10-12 16:00:45 -03:00
basket Bug 31309: Remove GetItemsInfo from basket/sendbasket 2022-08-16 09:22:14 -03:00
batch
catalogue Bug 31749: Fix detail display when not display cover images 2022-10-13 11:23:08 -03:00
cataloguing Bug 30952: Fix style of some buttons 2022-10-12 16:14:43 -03:00
circ Bug 30487: Convert checkout and patron details page tabs to Bootstrap 2022-10-17 08:06:34 -03:00
clubs Bug 31764: Add 'page-section' to patron clubs page 2022-10-17 08:01:24 -03:00
course_reserves Bug 30952: (follow-up) Undo change to Home breadcrumb 2022-10-12 16:00:45 -03:00
errors Bug 30952: (follow-up) Undo change to Home breadcrumb 2022-10-12 16:00:45 -03:00
ill Bug 30952: (follow-up) Undo change to Home breadcrumb 2022-10-12 16:00:45 -03:00
installer
labels Bug 30952: (follow-up) Undo change to Home breadcrumb 2022-10-12 16:00:45 -03:00
mana
members Bug 30487: Convert checkout and patron details page tabs to Bootstrap 2022-10-17 08:06:34 -03:00
offline_circ Bug 30952: (follow-up) Undo change to Home breadcrumb 2022-10-12 16:00:45 -03:00
onboarding Bug 30718: (QA follow-up) KohaDates filter on inputs 2022-08-19 08:26:40 -03:00
patron_lists Bug 31763: Add 'page-section' to patron lists page 2022-10-14 09:30:06 -03:00
patroncards Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00
plugins Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00
pos Bug 30952: (follow-up) Undo change to Home breadcrumb 2022-10-12 16:00:45 -03:00
recalls Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00
reports Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00
reserve Bug 30952: (follow-up) Undo change to Home breadcrumb 2022-10-12 16:00:45 -03:00
reviews Bug 30952: (follow-up) Undo change to Home breadcrumb 2022-10-12 16:00:45 -03:00
rotating_collections Bug 30952: (follow-up) Undo change to Home breadcrumb 2022-10-12 16:00:45 -03:00
serials Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00
services
suggestion Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00
tags Bug 31767: Add 'page-section' to tags page 2022-10-17 08:00:57 -03:00
test
tools Bug 31773: Add page-section class to Manage staged MARC records page 2022-10-17 08:02:31 -03:00
virtualshelves Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00
about.tt Bug 30952: Undo change to Home breadcrumb for remaining templates 2022-10-12 16:00:50 -03:00
auth.tt Bug 28787: Don't request a token if no email address defined 2022-08-09 13:38:44 -03:00
intranet-main.tt Bug 31747: Use page-section class, reduce CSS 2022-10-17 07:58:25 -03:00