main Koha release repository branch 20.05.x updated. v20.05.02-118-g46710cfc00

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

main Koha release repository branch 20.05.x updated. v20.05.02-118-g46710cfc00

Git repo owner
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, 20.05.x has been updated
       via  46710cfc0018d7107a68a1e6da847262bfb2470c (commit)
      from  fe19488c2299c46fc50608d15bb30017cd720ec5 (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 46710cfc0018d7107a68a1e6da847262bfb2470c
Author: Owen Leonard <[hidden email]>
Date:   Thu Jun 18 13:10:35 2020 +0000

    Bug 25351: Move cart-related strings out of 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 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 <[hidden email]>
    Signed-off-by: Katrin Fischer <[hidden email]>
    Signed-off-by: Jonathan Druart <[hidden email]>
    (cherry picked from commit 7c8276bf0e64a2dc90af4aab0d6e78893edc12b1)
    Signed-off-by: Lucas Gass <[hidden email]>


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

main Koha release repository
koha-commits mailing list
[hidden email]