Go to file
Owen Leonard 5f209c6cb1 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>
(cherry picked from commit 7c8276bf0e)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 46710cfc00)

Signed-off-by: Aleisha Amohia <aleishaamohia@hotmail.com>
2020-08-07 14:06:48 +12:00
C4 Bug 25709: Rename systempreference to NotesToHide 2020-07-31 03:38:54 +12:00
Koha Bug 24379: Fix failing tests 2020-08-05 12:09:11 +12:00
OpenILS
…
acqui Bug 25611: Use selected vendor when creating a basket 2020-07-13 14:22:40 +12:00
admin Bug 25861: Removing non-existent 'important' field from SQL 2020-07-08 15:28:25 +12:00
api/v1 Bug 25944: Schema fix for illrequests route 2020-07-31 01:19:02 +12:00
authorities Bug 25428: Correctly encode link if authority subfield is a URL 2020-06-09 05:06:03 +00:00
basket Bug 17842: Simplify the code 2020-06-18 13:48:02 +12:00
catalogue Bug 5103: Refactor the code to avoid repetition 2020-04-03 17:26:54 +00:00
cataloguing Bug 25553: Make date columns sortable on the edit items table 2020-07-13 10:07:41 +12:00
circ Bug 25868: Fix transfers page to show effective itemtype 2020-07-31 01:48:08 +12:00
clubs
…
course_reserves Revert "Bug 23727: Editing course reserve items is broken" 2020-05-19 23:46:46 +00:00
debian Bug 25920: Add liblocale-codes-perl package to fix ubuntu-stable (focal) 2020-08-07 13:42:10 +12:00
docs Corrections to teams for 20.05 cycle 2019-11-29 12:10:34 +00:00
errors Bug 23329: Move error page to its own subroutine 2019-11-27 11:30:19 +00:00
etc Bug 25277: Don't specify a field in query if none passed 2020-05-19 22:57:25 +00:00
ill Bug 21460: (follow-up) Fix bugs found in QA 2019-04-25 10:46:56 +00:00
installer Bug 24379: DBRev 19.11.08.002 2020-08-05 12:07:40 +12:00
koha-tmpl Bug 25351: Move cart-related strings out of opac-bottom.inc and into basket.js 2020-08-07 14:06:48 +12:00
labels Bug 21206: Replace C4::Items::GetItem 2019-02-26 13:24:07 +00:00
members Bug 25526: Equality matching is case sensative 2020-06-18 13:51:58 +12:00
misc Bug 25922: Fix typo 'arial-label' -> 'aria-label' 2020-07-31 02:38:06 +12:00
offline_circ Bug 22600: Add 'interface' to accountlines 2019-04-10 19:43:11 +00:00
opac Bug 11994: OpenSearch plugins needs to be delivered with Content-Type application/opensearchdescription+xml 2020-07-13 14:19:15 +12:00
patron_lists Bug 19524: Use existing logged_in_user variable 2018-07-18 16:49:30 +00:00
patroncards Bug 21719: Fix typos 2018-11-08 02:18:46 +00:00
plugins Bug 21073: (QA follow-up) Avoid unnecessary unless/else construct 2019-06-18 17:30:44 +01:00
reports Bug 24940: Serials statistics wizard: order vendor list alphabetically 2020-05-01 17:39:21 +00:00
reserve Bug 24802: Updating holds can cause suspensions to apply to wrong hold 2020-04-01 22:42:26 +00:00
reviews Bug 18789: Send Koha::Patron object to the templates 2018-02-16 13:03:58 -03:00
rotating_collections Bug 21500: Remove warnings in rotating collections 2018-10-09 15:02:45 +00:00
serials Bug 25081: Fix wrong comment 2020-05-04 20:44:10 +00:00
services
…
skel
…
suggestion Bug 22868: Move suggestions_manage subperm out of acquisition perm 2020-02-10 23:08:59 +00:00
svc Bug 24964: [19.11.x] Do not filter patrons after they have been fetched 2020-04-29 15:57:56 +00:00
t Bug 24379: Make login_attempts not nullable 2020-08-05 12:04:55 +12:00
tags Bug 11529: Add templates for biblio title display. Unify display. 2019-08-05 15:03:19 +01:00
tmp/modified_authorities
…
tools Bug 4985: Fix Plack scope errors 2020-07-16 15:58:12 +12:00
virtualshelves Bug 11529: Add templates for biblio title display. Unify display. 2019-08-05 15:03:19 +01:00
xt Bug 21576: Keep compatibility with QA script 2018-10-26 17:09:52 +00:00
.editorconfig
…
.eslintrc.json Bug 23834: Add default ESLint configuration 2019-11-03 08:02:39 +00:00
.gitignore Bug 20427: Convert OPAC LESS to SCSS 2018-08-09 15:17:07 +00:00
.htaccess
…
.mailmap
…
.scss-lint.yml Bug 21237: Clean up staff client SCSS 2018-08-24 16:23:25 +00:00
INSTALL
…
Koha.pm Bug 24379: DBRev 19.11.08.002 2020-08-05 12:07:40 +12:00
LICENSE
…
MANIFEST.SKIP
…
Makefile.PL Bug 24445: Add z3950 to makefile (bug 13937 follow-up) 2020-01-18 15:05:48 +00:00
README
…
README.md
…
README.robots
…
about.pl Bug 25506: Fix for "Use of uninitialized value" in about.pl 2020-06-09 03:13:10 +00:00
changelanguage.pl Bug 21299: (QA follow-up) Rename module and subroutine 2018-11-07 21:52:17 +00:00
fix-perl-path.PL
…
gulpfile.js Bug 21751: Replace fixFloat with HC-sticky to fix Chrome display 2019-02-04 14:13:35 +00:00
help.pl Bug 19817: Use the language from the interface if valid 2018-09-06 17:32:28 +00:00
koha_perl_deps.pl
…
kohaversion.pl
…
mainpage.pl Bug 21907: Fix article requests count for non-superlibrarians 2019-02-04 14:50:40 +00:00
package.json Bug 23025: security vulnerability detected in fstream < 1.0.12 defined in yarn.lock 2019-11-27 11:30:17 +00:00
rewrite-config.PL Bug 17851: Add elasticsearch config to koha-conf.xml 2019-10-07 14:09:10 +01:00
yarn.lock Bug 23025: Update yarn.lock 2019-11-27 11:30:17 +00:00

README.md

Koha is a free software integrated library system (ILS).

Koha is distributed under the GNU GPL version 3 or later.

Note: This is a synced mirror of the official Koha repo.

Note: Koha does not accept pull requests from git hosting sites.

Note: This project has its own bug tracker, to report a bug or submit a patch visit http://bugs.koha-community.org.

For guidelines on submitting patches for Koha please visit https://wiki.koha-community.org/wiki/SubmitingAPatch

The developers handbook can be found at https://wiki.koha-community.org/wiki/Developer_handbook

http://koha-community.org/

Koha Logo