Koha/koha-tmpl/intranet-tmpl/prog/en/modules/acqui
Caroline Cyr La Rose 70b4f09701
Bug 34228: Add translation context to "Managed by"
This patch adds context for translators to the Managed by string when it
applies to acquisitions baskets (as opposed to purchase suggestions).

To test:
0. If you don't already have acquisitions set up, create a budget and a vendor

1. Apply patch

2. Create a basket
   2.1. Go to Acquisitions
   2.2. Search for a vendor
   2.3. Click New > Basket
   2.4. Fill out the form
   2.5. Click Save

3. View the basket details page
   --> The page works (no errors)
   --> 'Managed by:' is displayed on the right, no spelling errors

4. Click Add to basket > From a new (empty) record
   --> The page works (no errors)
   --> 'Managed by:' is displayed under Basket details, no spelling errors

5. Click Cancel

6. Update the po files

gulp po:update --lang xx-XX

for example, gulp po:update --lang fr-CA

7. Check the xx-XX-messages.po file (e.g. misc/translator/po/fr-CA-messages.po)
   --> There should be an entry for 'Managed by:' with a line msgctxt that gives the 'Acquisitions basket managed by user' context

8. Update the file with a random phrase for the 'Managed by:' translation

for example, I translated 'Managed by:' by 'AAAAAAA:', just to see the difference

\#: koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basket.tt:308
\#: koha-tmpl/intranet-tmpl/prog/en/modules/acqui/neworderempty.tt:281
msgctxt "Acquisitions basket managed by user"
msgid "Managed by:"
msgstr "AAAAAAA:"

9. Install a new language
   9.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

   9.2. In the Koha staff interface, go to Administration > System preferences
   9.3. Search for language
   9.4. Check the box next to the new language
   9.5. Save

10. Switch the language of the interface

11. Redo steps 3 and 4
   --> The pages still work (no errors)
   --> The 'Managed by:' string should be replaced by whatever you put in step 8

Optional test
12. In the staff interface in English, view one or more of these pages, the 'Managed by' string should be unchanged
- Acquisitions > Suggestions (Managed by column heading)
- Acquisitions > Suggestions (Organize by: Managed by sorting option)
- Acquisitions > Suggestions (Filter by: Suggestion information: Managed by filter option)
- Acquisitions > Suggestions > Click on a suggestion (Managed by table row under Suggestion management)
- Patrons > Patron account > Purchase suggestions (Managed by column heading)

13. View these same pages in the other language, the Managed by string should NOT be changed to whatever you put in step 8

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-09-15 11:57:14 -03:00
..
csv Bug 28327: Unify CSV delimiter special behavior for tabulation 2022-08-19 15:53:12 -03:00
acqui-home.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
addorder.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
addorderiso2709.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
ajax.tt Bug 13618: Add html filters to all the variables 2018-08-17 15:55:05 +00:00
basket.tt Bug 34228: Add translation context to "Managed by" 2023-09-15 11:57:14 -03:00
basketgroup.tt Bug 34085: (follow-up) remove typo in Javascript 2023-09-08 11:54:57 -03:00
basketheader.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
booksellers.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
cancelorder.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
duplicate_orders.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
edi_ean.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
edifactmsgs.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
edimsg.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
histsearch.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
invoice-files.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
invoice.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
invoices.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
lateorders.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
moddeliverydate.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
modordernotes.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
neworderempty.tt Bug 34228: Add translation context to "Managed by" 2023-09-15 11:57:14 -03:00
neworderempty_duplicate.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
newordersubscription.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
newordersuggestion.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
ordered.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
orderreceive.tt Bug 34736: Don't trigger quantity change on loading order 2023-09-15 11:57:09 -03:00
parcel.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
parcels.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
showorder.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
spent.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
supplier.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
transferorder.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
uncertainprice.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00
vendor_issues.tt Bug 33105: Redirect to 404 if no vendor exists 2023-07-20 10:59:30 -03:00
z3950_search.tt Bug 33908: Improve translation of title tags: Acquisitions 2023-09-01 11:07:41 -03:00