[koha-commits] main Koha release repository branch 19.11.x updated. v19.11.08-47-g5f209c6cb1

Git repo owner gitmaster at git.koha-community.org
Fri Aug 7 04:37:00 CEST 2020


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "main Koha release repository".

The branch, 19.11.x has been updated
       via  5f209c6cb1ea4a35f7febb037c1a35f944484fc4 (commit)
      from  5dc432394112da175ed10e0454e75fd4d5ee1341 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 5f209c6cb1ea4a35f7febb037c1a35f944484fc4
Author: Owen Leonard <oleonard at myacpl.org>
Date:   Thu Jun 18 13:10:35 2020 +0000

    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 at theke.io>
    
    Signed-off-by: Katrin Fischer <katrin.fischer.83 at web.de>
    
    Signed-off-by: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
    (cherry picked from commit 7c8276bf0e64a2dc90af4aab0d6e78893edc12b1)
    
    Signed-off-by: Lucas Gass <lucas at bywatersolutions.com>
    (cherry picked from commit 46710cfc0018d7107a68a1e6da847262bfb2470c)
    
    Signed-off-by: Aleisha Amohia <aleishaamohia at hotmail.com>

-----------------------------------------------------------------------

Summary of changes:
 .../bootstrap/en/includes/doc-head-close.inc       |  8 ++++
 .../bootstrap/en/includes/opac-bottom.inc          | 15 +-------
 koha-tmpl/opac-tmpl/bootstrap/js/basket.js         | 44 +++++++++++-----------
 3 files changed, 31 insertions(+), 36 deletions(-)


hooks/post-receive
-- 
main Koha release repository


More information about the koha-commits mailing list