Koha/koha-tmpl/opac-tmpl/bootstrap/js
Owen Leonard 9c2f4ed6bf Bug 28536: Move translatable strings into overdrive.js
This patch takes strings defined as variables in opac-bottom.inc for use
in overdrive.js and moves them to overdrive.js, wrapped in the
double-underscore translation function.

To test you must have valid credentials entered in system preferences
for the OverDrive API. Ideally you should test using a patron who has
holds and current checkouts in OverDrive.

Apply the patch and log in to the OPAC.

- On the "Your summary" page, open the "OverDrive Account" tab.
  - Log in to your OverDrive account.
  - The contents of the tab should display correctly, with correct
    labels for controls like "Log out of your OverDrive account", "Check
    in", "On hold", etc.
- Perform a catalog search which will return results also found in your
  OverDrive collection.
  - Open the OverDrive results page.
  - The page should display correctly, with correct labels on controls
    like "Check out" and "Place hold."

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

 - Update a translation:

  > gulp po:update
  > 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/overdrive.js for
  translation, e.g.:

  koha-tmpl/opac-tmpl/bootstrap/js/overdrive.js:124
  msgid "OverDrive account page"
  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 strings appear. In the above example, the string should
appear at the top of the "Overdrive Account" tab.

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

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-09-21 20:22:57 +02: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 27200: (follow-up) Browse search interface update 2020-12-26 17:58:43 +01: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 28018: Replace obsolete title-string sorting: OPAC templates 2021-04-06 15:56:31 +02:00
Gettext.js Bug 21156: Add plural translation capabilities to JS files 2020-02-10 10:14:46 +00:00
global.js Bug 26505: Suspend hold modal broken in the OPAC 2020-09-28 11:08:03 +02:00
google-jackets.js Bug 7594: Google Cover Javascript contains hardcoded CSS style 2016-03-23 23:07:36 +00:00
i18n.js Bug 21156: Add plural translation capabilities to JS files 2020-02-10 10:14:46 +00:00
ill-availability.js Bug 27170: Fix bug fix 2021-09-21 20:22:57 +02:00
localcovers.js Bug 26145: Display the cover image at the OPAC 2020-10-12 11:28:41 +02:00
openlibrary.js Bug 26148: OpenLibrary "Preview" link target is unclear to patrons 2020-11-05 15:24:20 +01:00
overdrive.js Bug 28536: Move translatable strings into overdrive.js 2021-09-21 20:22:57 +02: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 26695: Add modal "shown" event to set cursor focus 2020-11-03 10:57:35 +01:00
tags.js
verovio.js Bug 22581: Show and play musical inscripts 2019-11-03 08:11:38 +00:00