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

--- Comment #7 from David Nind <[email protected]> ---
Created attachment 211670
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211670&action=edit
Bug 44062: Add translation context to notices From/To labels

- The delivery note on the patron notices tab and on Tools > Notices
  management labels sender and recipient with "From:" and "To:",
  which are shared with the date range filters, so the recipient gets
  the date translation (de-DE: "Bis:")
- Use tp('Message sender', 'From:') and tp('Message recipient', 'To:')
  in members/notices.tt and tools/notices.tt, so they get their own
  msgids

Test plan:
1. In a KTD root shell (ktd --root --shell), install a translation:
   koha-translate --install de-DE --dev kohadev
2. Enable it in the language system preferences and switch the staff
   interface to German
3. Go to a patron with an email address > Add message, choose "Email",
   enter a subject and body, save
4. In the KTD root shell, mark the message as sent:
   koha-mysql kohadev -e "UPDATE message_queue SET status='sent',
from_address='[email protected]', to_address='[email protected]' ORDER BY
message_id DESC LIMIT 1"
5. Go to the patron's Notices tab
6. Without this patch, the delivery note shows "Bis:" before the
   recipient address
7. Apply the patch and update the strings:
   gulp po:update --lang de-DE
8. In misc/translator/po/de-DE-messages.po, find
   msgctxt "Message recipient" / msgid "To:", set msgstr "An:", and
   msgctxt "Message sender" / msgid "From:", set msgstr "Von:"; remove
   the fuzzy flags if present
9. In the KTD root shell, install the translation and restart Plack:
   koha-translate --update de-DE --dev kohadev
   koha-plack --restart kohadev
10. Reload the Notices tab: the delivery note shows "Von:" and "An:"
11. Go to Tools > Notices management and find the sent message: the
    delivery note shows "Von:" and "An:"
12. Go to Circulation > Overdues: the date filter label is still "Bis:"

Assisted-by: Opus 5.5 (Anthropic)
Signed-off-by: Paul Derscheid <[email protected]>
Signed-off-by: David Nind <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to