Bug 33332: Fix formatting of TT comments to improve translations
authorOwen Leonard <oleonard@myacpl.org>
Fri, 24 Mar 2023 12:52:28 +0000 (12:52 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Wed, 12 Apr 2023 14:22:11 +0000 (11:22 -0300)
commit95aaf4269601592baf660ecdd3b90ec12590250c
tree28f14ba8b7f687b062ba24814616d09d907e5ecf
parentad53b3b538d8763f2a22a76b826e13e893fe7b52
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"

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers.inc