https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37781

--- Comment #2 from Caroline Cyr La Rose <[email protected]> ---
Created attachment 170881
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=170881&action=edit
Bug 37781: Add translation context for "On" (when used alone)

This patch adds context to the string "On" used alone in the item search
page, to mean "On a specific date".

To test:
1. Update translation files

gulp po:update --lang fr-CA

2. Check the staff-prog.po file and search for "On".

vi misc/translator/po/fr-CA-staff-prog.po

/"On"

--> It should be in three places, two in itemsearch.tt and one in
smtp_servers.tt

38415 #. For the first occurrence,
38416 #. SCRIPT
38417 #: koha-tmpl/intranet-tmpl/prog/en/modules/admin/smtp_servers.tt:327
38418 #: koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt:322
38419 #: koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt:324
38420 #, c-format
38421 msgid "On"
38422 msgstr "Sur "

3. Apply patch
4. Reupdate po files

gulp po:update --lang fr-CA

5. Check the messages.po file and search for "On"

--> There should be a msgctxt line that adds context to the "On" (please ignore
the translated msgstr, I have no idea how it decides what to put in there!)

6266 #: koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt:322
6267 #: koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/itemsearch.tt:324
6268 #, fuzzy
6269 msgctxt "On specific date"
6270 msgid "On"
6271 msgstr "Oman"

6. Also check the item search page
   --> It should still work and the "On" in the last borrowed date drop-down
should still say "On"

7. Optionally, translate the string and remove the "#fuzzy", install the
translation and check the item search page
   --> It should use the string you put in

-- 
You are receiving this mail because:
You are the assignee for the bug.
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/

Reply via email to