[Bug 44059] New: "Subject:" in the patron "Add a new message" modal needs a translation context
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44059 Bug ID: 44059 Summary: "Subject:" in the patron "Add a new message" modal needs a translation context Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: I18N/L10N Assignee: koha-bugs@lists.koha-community.org Reporter: paul.derscheid@lmscloud.de QA Contact: testopia@bugs.koha-community.org CC: caroline.cyr-la-rose@inlibro.com, f.demians@tamil.fr, jonathan.druart@gmail.com, julian.maurice@biblibre.com Target Milestone: --- The email subject field in the patron "Add a new message" modal is labelled "Subject:". Cataloguing uses the same string for subject headings, and translations follow that meaning. In German, the modal shows "Schlagwort:" (subject heading) instead of "Betreff:" (email subject). To reproduce: 1. Install and enable a translation (e.g. de-DE) 2. Switch the staff interface to it 3. Go to a patron > Add message 4. Choose "Patron" as the message type (the subject field is for email messages) 5. The subject field label is "Schlagwort:" instead of "Betreff:" The modal (members-toolbar.inc) and the advanced cataloguing editor (cataloguing/editor.tt, plus admin/sru_modmapping.tt) share the msgid "Subject:", so translators can only give it one meaning. Affects 24.05 and later (since Bug 29393). Main is affected. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44059 Paul Derscheid <paul.derscheid@lmscloud.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|koha-bugs@lists.koha-commun |paul.derscheid@lmscloud.de |ity.org | Status|NEW |Needs Signoff -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44059 --- Comment #1 from Paul Derscheid <paul.derscheid@lmscloud.de> --- 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 <paul.derscheid@lmscloud.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44059 Paul Derscheid <paul.derscheid@lmscloud.de> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=29393 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44059 Paul Derscheid <paul.derscheid@lmscloud.de> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://bugs.koha-community | |.org/bugzilla3/show_bug.cgi | |?id=44062 -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44059 --- Comment #2 from Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com> --- In step 6 of the test plan, the string is in de-DE-messages.po, not de-DE-staff-prog.po In step 7, this command has to be done in the root shell (for those of us who never remember). I don't know what I doing wrong but at step 8, the label is "Subject:" untranslated even if I removed the fuzzy in the de-DE-messages.po file 4849 #: koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc:226 4850 msgctxt "Email message" 4851 msgid "Subject:" 4852 msgstr "Betreff:" -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44059 --- Comment #3 from Paul Derscheid <paul.derscheid@lmscloud.de> --- Thanks Caroline, I will take a look. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44059 Paul Derscheid <paul.derscheid@lmscloud.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #211454|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44059 --- Comment #4 from Paul Derscheid <paul.derscheid@lmscloud.de> --- Created attachment 211592 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211592&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. 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 > 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-messages.po, find msgctxt "Email message" / msgid "Subject:", set msgstr "Betreff:" and remove the fuzzy flag if present 7. In the KTD root shell, install the translation and restart Plack: koha-translate --update de-DE --dev kohadev koha-plack --restart 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 <paul.derscheid@lmscloud.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44059 --- Comment #5 from Paul Derscheid <paul.derscheid@lmscloud.de> --- A comment from Opus 5.5: Thanks, you're right: the string is in de-DE-messages.po, and koha-translate needs the root shell. I've fixed the test plan. tp() strings are translated at runtime from the compiled .mo file, and koha-translate doesn't restart Plack, so the running workers still have the old catalog. After koha-translate --update, run (as root): koha-plack --restart kohadev and reload the page. The label should then be "Betreff:". -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44059 --- Comment #6 from Paul Derscheid <paul.derscheid@lmscloud.de> --- I (Paul) have made the same change on Bug 44062. -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44059 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- QA Contact|testopia@bugs.koha-communit |jonathan.druart@gmail.com |y.org | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44059 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Patch complexity|--- |Trivial patch Status|Needs Signoff |Signed Off -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44059 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #211592|0 |1 is obsolete| | -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44059 --- Comment #7 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- Created attachment 211667 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211667&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. 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 > 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-messages.po, find msgctxt "Email message" / msgid "Subject:", set msgstr "Betreff:" and remove the fuzzy flag if present 7. In the KTD root shell, install the translation and restart Plack: koha-translate --update de-DE --dev kohadev koha-plack --restart 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 <paul.derscheid@lmscloud.de> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> -- You are receiving this mail because: You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44059 Katrin Fischer <katrin.fischer@bsz-bw.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |katrin.fischer@bsz-bw.de --- Comment #8 from Katrin Fischer <katrin.fischer@bsz-bw.de> --- *** Bug 40432 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org