[Koha-bugs] [Bug 33332] Fix formatting of TT comments to improve translations

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 24 14:07:07 CET 2023


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

--- Comment #1 from Owen Leonard <oleonard at myacpl.org> ---
Created attachment 148662
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=148662&action=edit
Bug 33332: Fix formatting of TT comments to improve translations

This patch reformats some Template::Toolkit multi-line comments in
html_helpers.inc so that each line is commented separately. This seems
to prevent the translation tool from putting the comments into the po
file.

To test, apply the patch and confirm that pages which use the
breadcrumbs and tabs WRAPPER directives still work correctly:

- Breadcrumbs: staff client home page, about page, error page.
- Tabs: Administration -> Library transfer limits or circulation alerts.
- To test translatability, run the translation tool for any language,
  e.g.

  perl misc/translator/translate update fr-FR

Search the regenerated po file (in this example
misc/translator/po/fr-FR-staff-prog.po) to confirm that there is no
instance of something like "[%%# BOOTSTRAP BREADCRUMBS WRAPPER USAGE"

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list