Koha/koha-tmpl/opac-tmpl/bootstrap/js
Owen Leonard bd30e81f12
Bug 35081: Make it possible to translate catalog concern status messages
The JavaScript in both OPAC and staff interface for submitting catalog
concerns contains English strings which are not properly wrapped with
the __() function to allow for translation. This patch fixes both
affected files.

The patch also modifies the dialog classes used in the staff interface
so that the messages are styled consistently.

To test, apply the patch and update a translation, e.g. fr-FR:
   - perl misc/translator/translate update fr-FR
- Edit the updated po file for the language you chose, e.g.
  misc/translator/po/fr-FR-messages-js.po, to fill in translated
  strings for the two catalog concern entries. For example:

  koha-tmpl/intranet-tmpl/prog/js/modals/add_catalog_concern.js:38
  koha-tmpl/opac-tmpl/bootstrap/js/modals/catalog_concern.js:55
  msgid "Your concern was sucessfully submitted."
  msgstr ""

- Install the updated po file:
   - perl misc/translator/translate install fr-FR
- Enable the translation if necessary under Administration -> System
  preferences -> language.
- Enable the "opaclanguagesdisplay" preference if necessary.
- Enable the " CatalogConcerns" preference if necessary.
- Locate a bibliographic record in the staff interface and view the
  detail page
  - From the toolbar, choose New -> New catalog concern.
  - Test submitting the form. When the form is submitted a message
    should display on the page: "Your concern was sucessfully submitted"

- Perform the same test in the OPAC, where the "Report a concern" link
  is in the right-hand sidebar menu of the bibliographic detail page.

- Perform the same tests, in both OPAC and staff interface, in your
  translated language to confirm that the translations show up
  correctly.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-10-20 11:02:53 -03:00
..
modals Bug 35081: Make it possible to translate catalog concern status messages 2023-10-20 11:02:53 -03: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
cookieconsent.js Bug 27378: Introduce cookie consent to OPAC and staff client 2023-09-12 09:45:07 -03:00
datatables.js Bug 33983: Move translatable strings out of OPAC's datatables.inc into JavaScript 2023-10-09 11:41:13 -03:00
Gettext.js
global.js Bug 34936: Remove the use of event attributes from OPAC detail page 2023-10-03 08:51:13 -04: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
privacy.js Bug 34031: Move various translatable strings out of opac-bottom.inc 2023-10-09 11:41:15 -03:00
ratings.js
tags.js Bug 34035: Move translatable strings out of opac-bottom.inc: Tags 2023-10-09 11:41:17 -03:00
verovio.js