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

--- Comment #11 from Caroline Cyr La Rose <[email protected]> ---
Created attachment 211749
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211749&action=edit
Bug 42420: Rename data-placeholder to data-slot in report preview modal

The report preview modal of guided_reports_start.tt uses
data-placeholder attributes as JS hooks to fill a cloned template
(title, code, edit-href, etc.). These are not user-facing strings, but
now that data-placeholder is extracted for translation they end up in
<lang>-staff-prog.po (msgid "title", "code", "edit-href",...) and would
break the modal if translated.

Rename them to data-slot.

Test plan:
1. gulp po:update --lang fr-FR
2. Confirm "edit-href", "duplicate-href", "schedule-href",
   "delete-attrs" are not in misc/translator/po/fr-FR-staff-prog.po
3. Go to Reports > Use saved, click the "Preview SQL" action of a report
4. Confirm the modal shows the title and SQL, and that the Edit,
   Duplicate, Schedule, Delete and Run report buttons work

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Caroline Cyr La Rose <[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