Koha/koha-tmpl/intranet-tmpl/prog/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
pages Bug 34369: Require CSRF token for updating system preferences 2023-09-25 18:18:40 -03:00
vue Bug 30708: Fix conflict with 34055 and 34219 2023-10-18 15:42:02 -03:00
acq.js
acquisitions-menu.js
additem.js Bug 34109: Check mandatory item fields when creating during recipt 2023-09-06 09:57:02 -03:00
addorderiso2709.js
admin-menu.js
ajax.js
audio_alerts.js
auth-finder-search.js
authorities-detail-modal.js
authtype.js
automatic_item_modification_by_age.js
basket.js Bug 34553: Update send list and send cart popup footers 2023-09-22 11:35:46 -03:00
biblio_framework.js
browser.js
calendar.js
cart.js
cashup_modal.js
catalog.js Bug 34562: Update more pop-up windows with consistent footer markup 2023-10-09 11:41:25 -03:00
cataloging.js
cataloging_additem.js
categories.js
charts.js
checkout_renewals_modal.js
checkouts.js Bug 27249: Prevent infinite loop when searching for an open day 2023-10-17 14:45:31 -03:00
cookieconsent.js Bug 27378: Introduce cookie consent to OPAC and staff client 2023-09-12 09:45:07 -03:00
datatables.js Bug 34310: Input prompt in datatables column search boxes untranslatable 2023-09-08 11:54:56 -03:00
desk_selection.js
elasticsearch-mappings.js Bug 34625: Fix search engine configuration tables header problem 2023-09-05 11:52:26 -03:00
file-upload.js
funds_sorts.js
holds.js Bug 34901: Display transit status on patron holds tab only if hold found value is "T" 2023-10-18 10:26:00 -03:00
ill-availability-partner.js
ill-availability.js
ill-batch-modal.js Bug 30719: (QA follow-up) Updating remaining naming 2023-10-17 14:45:23 -03:00
ill-batch-table.js Bug 30719: (QA follow-up) Updating remaining naming 2023-10-17 14:45:23 -03:00
ill-batch.js Bug 30719: (QA follow-up) Rename illbatches endpoint to ill/batches 2023-10-17 14:45:20 -03:00
ill-list-table.js Bug 35093: Update batch to ill_batch embed 2023-10-19 16:00:47 -03:00
item_search_fields.js Bug 34401: Fix inconsistencies in Item search fields page titles, breadcrumbs, and headers 2023-10-17 14:45:29 -03:00
job_progress.js
letter.js
localcovers.js
mana.js
marc_modification_templates.js
marc_subfields_structure.js Bug 34114: Replace the use of jQueryUI sortable 2023-09-22 13:00:00 -03:00
members-menu.js
members.js
merge-record.js
messaging-preference-form.js
onboarding.js
patron-webcam.js
recalls.js
register_selection.js
resolve_claim_modal.js
restrictiontypes.js Bug 16223: Add ability to define liftable restrictions 2023-10-11 12:13:06 -03:00
rotating-collections.js
select2.js
serials-toolbar.js
showpredictionpattern.js
sms_providers.js
staff-global.js Bug 21246: (QA follow-up) Add new syspref to control how many previous patrons are displayed 2023-10-11 10:31:40 -03:00
subscription-add.js
table_filters.js
tools-menu.js
upload-images.js
viewlog.js
xmlControlfield.js
z3950_search.js