Koha-clms/koha-tmpl/opac-tmpl/bootstrap/js
Owen Leonard 7c8276bf0e Bug 25351: Move cart-related strings out of opac-bottom.inc and into basket.js
This patch adds the necessary JavaScript includes to the OPAC to
enable translation of strings in JavaScript. It also updates the
translation of cart-related strings by removing the strings from
opac-bottom.inc and putting them in basket.js where they are used.

To test, apply the patch and test that the correct strings are
translatable. In this example I'm testing fr-FR:

 - Update a translation:

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

 - Open the corresponding .po file for the strings pulled from
   JavaScript  e.g.  misc/translator/po/fr-FR-messages-js.po
 - Locate strings pulled from bootstrap/js/basket.js for
   translation, e.g.:

   #: koha-tmpl/opac-tmpl/bootstrap/js/basket.js:89
   msgid "Your cart is currently empty"
   msgstr ""

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

   > perl translate install fr-FR

In the OPAC, switch to the language you're testing. Confirm that your
translated string appears. In the above example, by clicking the "Cart"
icon in the header when there are no items in the cart.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-07-30 17:44:27 +02:00
..
Gettext.js Bug 21156: Add plural translation capabilities to JS files 2020-02-10 10:14:46 +00:00
amazonimages.js
…
authtoresults.js Bug 17153: Redirect to search when logging in from search 2018-06-29 20:49:51 +00:00
bakertaylorimages.js
…
basket.js Bug 25351: Move cart-related strings out of opac-bottom.inc and into basket.js 2020-07-30 17:44:27 +02:00
browse.js Bug 14567: Add a browse interface to the OPAC 2020-02-20 09:07:16 +00:00
browserid_include.js
…
coce.js Bug 9580 Cover images from Coce, a remote image URL cache 2015-04-01 09:31:42 -03:00
datatables.js Bug 25909: Recent change to datatables JS in the OPAC causes errors 2020-07-16 15:33:29 +01:00
global.js Bug 22807: Add 'Skip to content' option 2020-06-24 15:13:55 +02:00
google-jackets.js Bug 7594: Google Cover Javascript contains hardcoded CSS style 2016-03-23 23:07:36 +00:00
googleindictransliteration.js Bug 13144: Google transliteration does not work on bootstrap 2014-11-06 09:52:22 -03:00
i18n.js Bug 21156: Add plural translation capabilities to JS files 2020-02-10 10:14:46 +00:00
ill-availability.js Bug 23173: Provide core infrastructure 2020-04-06 11:04:19 +01:00
localcovers.js BUG 11602: [ENH] Fix localcover display 2015-12-04 16:12:52 +00:00
openlibrary.js Bug 24957: OpenLibrarySearch shouldnt display if nothing is returned 2020-04-27 11:21:59 +01:00
overdrive.js Bug 22804: OPAC Overdrive JavaScript contains untranslatable strings 2019-10-01 07:35:03 +01:00
ratings.js Bug 25110: Allow patrons to add star ratings to titles on their summary/checkout page 2020-04-29 17:04:32 +01:00
recordedbooks.js Bug 17602: Move spinner location to include file 2018-10-01 13:56:59 +00:00
script.js Bug 25492: Your Account Menu button does nothing on mobile devices 2020-06-12 10:32:35 +02:00
tags.js
…
verovio.js Bug 22581: Show and play musical inscripts 2019-11-03 08:11:38 +00:00