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

--- Comment #13 from Caroline Cyr La Rose <[email protected]> ---
Created attachment 211881
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211881&action=edit
Bug 42420: Use single quotes for t() inside data-placeholder attributes

Now that data-placeholder attributes are extracted for translation, the
template tokenizer chokes on the double quotes used inside the
double-quoted attribute values of the OPAC masthead search options:

  data-placeholder="[% t("Search the catalog by title") | html %]"

and generates a bogus msgid "[% t(" in <lang>-opac-bootstrap.po.

Use single quotes for the t() calls, like we do elsewhere in attributes.

Test plan:
1. gulp po:update --lang fr-FR
2. Confirm there is no msgid "[% t(" in
   misc/translator/po/fr-FR-opac-bootstrap.po
3. Confirm the masthead search placeholders are still translatable
   (in fr-FR-opac-bootstrap.po, coming from t())

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