Koha/koha-tmpl/opac-tmpl/bootstrap/js
Owen Leonard cc5fead3be
Bug 37257: Enable translation of Copy control in OPAC user summary
Currently we define translatable labels for DataTables "export" options
(Copy, CSV, Excel, and Print) in the section of datatables.js for adding
our own configuration to these buttons. This works fine until we
redefine a button without redefining the translatable label as we do in
opac-user.pl.

The correct solution is to define these strings in the default set of
language strings we use for all other DataTable strings. This patch
makes that change in both the staff interface and the OPAC (although the
problem only currently manifests in the OPAC).

To test, apply the patch and start the translation process:

- Install fr-CA or another language in the OPAC
    1. Run the following commands:
        - gulp po:update
        - ./misc/translator/translate update fr-CA
        - ./misc/translator/translate install fr-CA
    2. Go to Administration > System preferences
    3. Search for OPACLanguages and check fr-CA
    4. Set opaclanguagesdisplay to Allow
    5. Click "Save all I18N/L10N preferences"

- Check that "Copy" is translated in the .po files
   1. Open misc/translator/po/fr-CA-messages-js.po
   2. Search for "Copy"
        --> It should be translated as "Copier"

- Log in to the OPAC as a user with checkouts.
- Switch to the language you translated.
- View the user summary page.
  - The controls at the top of the table of checkouts should be
    correctly translated.

- In the staff interface, switch to the language you translated.
- Test any DataTable with export controls, e.g. Administration ->
  Libraries, to confirm that the "Export" menu items are still
  translated correctly.

Sponsored-by: Athens County Public Libraries
Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-07-09 14:56:04 +02:00
..
modals Bug 36950: Improve placement of catalog concern banner in the OPAC 2024-07-01 18:55:55 +02:00
amazonimages.js Bug 34026: Move translatable cover-handling strings out of opac-bottom.inc 2023-10-09 11:41:14 -03:00
authtoresults.js
autofill.js
bakertaylorimages.js Bug 34026: Move translatable cover-handling strings out of opac-bottom.inc 2023-10-09 11:41:14 -03:00
basket.js
browse.js
browserid_include.js
coce.js Bug 32412: Do not reload COCE image for biblio 2023-05-05 10:18:42 -03:00
cookieconsent.js Bug 34792: Improve flexibility of CookieConsentBar layout 2024-04-29 09:35:50 +02:00
datatables.js Bug 37257: Enable translation of Copy control in OPAC user summary 2024-07-09 14:56:04 +02:00
Gettext.js
global.js Bug 36651: Add placeholder text to the search bar in the OPAC 2024-06-21 15:02:58 +02:00
google-jackets.js Bug 34026: Move translatable cover-handling strings out of opac-bottom.inc 2023-10-09 11:41:14 -03:00
i18n.js
ill-availability.js
localcovers.js
openlibrary.js Bug 34026: Move translatable cover-handling strings out of opac-bottom.inc 2023-10-09 11:41:14 -03:00
overdrive.js Bug 36084: svc - overdrive 2024-03-01 11:01:02 +01:00
privacy.js Bug 34031: Move various translatable strings out of opac-bottom.inc 2023-10-09 11:41:15 -03:00
ratings.js
results-list.js Bug 36557: Convert Cart and Lists controls to buttons and rework logic 2024-07-01 18:55:43 +02:00
tags.js Bug 34478: Fix opac-tags and tags/lists 2024-03-01 10:58:10 +01:00
verovio.js