Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Owen Leonard dc393dc6be Bug 25320: Move translatable strings out of merge-record-strings.inc into merge-record.js
This patch eliminates the use of a separate include file containing
translatable strings in favor of embedding translatable strings in the
JavaScript itself.

To test, apply the patch and clear your browser cache if necessary.

 - Perform a catalog search in the staff interface.
 - Select two results to merge. Click Edit -> Merge records.
 - Click "Next" on the "Merging records" page.
 - On the "Source records" page click the second tab where all the
   checkboxes are unchecked.
   - Check the box for a tag which is non-repeatable, e.g. 245.
     - You should see a message, "The field is non-repeatable and
       already exists in the destination record. Therefore, you cannot add it."
   - Check the box for a subfield which is non-repeatable, e.g. 245$a.
     - You should see a message, "The subfield is non-repeatable and
       already exists in the destination record. Therefore, you cannot
       add it."

TESTING TRANSLATABILITY

 - Update a translation, e.g. fr-FR:

   > cd misc/translator
   > perl translate update fr-FR

 - Open the corresponding .po file for JavaScript strings, e.g.
   misc/translator/po/fr-FR-messages-js.po
 - Locate strings pulled from prog/js/merge-record.js for
   translation, e.g.:

   #: koha-tmpl/intranet-tmpl/prog/js/merge-record.js:72
   msgctxt "Bibliographic record"
   msgid ""
   "The field is non-repeatable and already exists in the destination
   record. "
   "Therefore, you cannot add it."
   msgstr ""

 - Edit the "msgstr" string however you want (it's just for testing).
 - Install the updated translation:

   > perl translate install fr-FR

 - Switch to your newly translated language in the staff client and
   repeat the test plan above. The translated string should appear.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-09-29 14:28:19 +02:00
..
acqui Bug 26291: Move translatable strings out of z3950_search.inc into z3950_search.js 2020-09-29 14:28:19 +02:00
admin Bug 26330: Change encoding of text used as tab triggers in MARC subfield constraints 2020-09-29 14:28:19 +02:00
authorities Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
basket Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
batch
catalogue Bug 25321: Move translatable strings out of strings.inc into the corresponding JavaScript 2020-09-29 14:28:18 +02:00
cataloguing Bug 25320: Move translatable strings out of merge-record-strings.inc into merge-record.js 2020-09-29 14:28:19 +02:00
circ Bug 26504: Remove the use of jquery.checkboxes plugin from checkout notes page 2020-09-29 14:28:18 +02:00
clubs Bug 25744: Replace <i> with <em> in staff interface 2020-09-18 11:08:35 +02:00
common
course_reserves Bug 26323: (follow-up) Add new cases introduced 2020-09-28 16:09:10 +02:00
errors
ill Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
installer Bug 24973: Load custom localization file 2020-08-24 12:10:53 +02:00
labels Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
mana
members Bug 26243: (QA follow-up) Switch quotes to avoid translation issues 2020-09-29 14:28:18 +02:00
offline_circ Bug 26212: Remove the use of jquery.checkboxes plugin from pending offline circulations 2020-08-18 15:45:49 +02:00
onboarding Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
patron_lists Bug 26234: Teach our KohaTable constructor the specific th classes 2020-08-19 08:24:04 +02:00
patroncards
plugins Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
pos Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
reports Bug 24958: Remember last selected tab in SQL reports 2020-09-29 14:28:18 +02:00
reserve Bug 26323: Retrieve the correct values for LOST, DAMAGED, LOC and CCODE 2020-09-28 16:09:10 +02:00
reviews Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
rotating_collections Bug 25744: Replace <i> with <em> in staff interface 2020-09-18 11:08:35 +02:00
serials Bug 26256: Move translatable strings out of templates and into serials-toolbar.js 2020-09-29 14:28:18 +02:00
services
suggestion Bug 26151: Remove the use of jquery.checkboxes plugin from suggestions management page 2020-09-29 14:28:18 +02:00
tags Bug 26120: Remove the use of jquery.checkboxes plugin from tags review template 2020-09-29 14:28:18 +02:00
test
tools Bug 26431: Use split button to offer choice of WYSIWYG or code editor for news 2020-09-29 14:28:19 +02:00
virtualshelves Bug 25744: Replace <i> with <em> in staff interface 2020-09-18 11:08:35 +02:00
about.tt Bug 25744: replace <b> with <strong> in the staff interface 2020-09-18 11:08:35 +02:00
auth.tt Bug 24958: Remember last selected tab in SQL reports 2020-09-29 14:28:18 +02:00
intranet-main.tt Bug 26015: Replace 2 missing occurrences 2020-08-31 16:10:25 +02:00