Bug 26619: Cart - The "Print" button is only translated when you are in "More details...
authorOwen Leonard <oleonard@myacpl.org>
Tue, 20 Oct 2020 11:22:07 +0000 (11:22 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Fri, 13 Nov 2020 21:34:28 +0000 (21:34 +0000)
commite47f2132add2b132806caeeff1631059b0f1cba8
tree68f28299bc025572460b3ec798d6c188b175df27
parent8232e315ad9b08a33e0f7b0a5a5c06a5a00f823d
Bug 26619: Cart - The "Print" button is only translated when you are in "More details" mode

This patch adds the "Print" string to datatables.js so that it can be
picked up for translation.

To test, apply the patch and add some items to the cart in the OPAC.

- Open the cart. You should see a button labeled "Print."
- The print button should work correctly.

TESTING TRANSLATABILITY

- Update a translation, e.g. fr-FR:

  > cd misc/translator
  > perl translate update fr-FR

- Open the corresponding .po file for JavaScript strings,
  misc/translator/po/fr-FR-messages-js.po
- Locate strings pulled from
  koha-tmpl/opac-tmpl/bootstrap/js/datatables.js for translation:

  msgid "Print"
  msgstr ""

- Edit the "msgstr" string however you want (it's just for testing).
- Install the updated translation:

   > perl translate install fr-FR

- Switch to your newly translated language in the OPAC and
  repeat the test plan above. The translated strings should appear.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 599a6cb92e26e37857b344484d6c8b233555f0dc)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/js/datatables.js