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

--- Comment #1 from Paul Derscheid <[email protected]> ---
Created attachment 211454
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211454&action=edit
Bug 44059: Add translation context to message subject label

- The email subject label in the "Add a new message" modal shares the
  msgid "Subject:" with the subject heading search in cataloguing, so
  it gets the subject heading translation (de-DE: "Schlagwort:")
- Use tp('Email message', 'Subject:') so it gets its own msgid
- PROCESS i18n.inc in members-toolbar.inc for the tp() macro

Test plan:
1. Install a translation in KTD: 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 > Add message, choose "Email" as the message type
4. Without this patch, the subject label is "Schlagwort:"
5. Apply the patch and update the strings:
   gulp po:update --lang de-DE
6. In misc/translator/po/de-DE-staff-prog.po, find
   msgctxt "Email message" / msgid "Subject:", set msgstr "Betreff:"
   and remove the fuzzy flag if present
7. Install the translation: koha-translate --update de-DE --dev kohadev
8. Repeat step 3: the label is now "Betreff:"
9. With EnableAdvancedCatalogingEditor on, go to Cataloguing > Advanced
   editor > Advanced search: the subject label
   is still "Schlagwort:"

Assisted-by: Opus 5.5 (Anthropic)
Signed-off-by: Paul Derscheid <[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