Koha/koha-tmpl/intranet-tmpl/prog/en/modules
Owen Leonard 0c67613f7b Bug 26065: Move translatable strings out of marc_modification_templates.tt and into marc_modification_templates.js
This patch removes the <script> block in the MARC modification
templates template in which strings are defined for translation
purposes.

Strings are now in place in the JavaScript file and wrapped in the new
__() function.

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

- Perform some actions which will trigger translated strings, for
  example:
  - Create a new template
  - Add an action to the template and then delete it.
    - The confirmation should appear correctly
  - Add an action. Select "Copy" as the operation and click "Add action"
    without filling in any fields.
    - You should see a message, "Both subfield values should be filled
      or empty"

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
  koha-tmpl/intranet-tmpl/prog/js/marc_modification_templates.js for
  translation, e.g.:

  msgid "Both subfield values should be filled or empty."
  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: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-08-18 15:45:49 +02:00
..
acqui Bug 26214: Remove the use of jquery.checkboxes plugin on late orders page 2020-08-18 15:45:49 +02:00
admin Bug 26194: (follow-up) Default to current branch 2020-08-18 15:45:49 +02:00
authorities Bug 20154: Stay in the open tab when editing authority record 2020-08-13 07:55:45 +02:00
basket Bug 26010: Remove the use of jquery.checkboxes plugin from staff interface cart 2020-08-13 07:55:42 +02:00
batch
catalogue Bug 26216: Remove the use of jquery.checkboxes plugin from catalog search results 2020-08-18 15:45:49 +02:00
cataloguing Bug 26215: Remove the use of jquery.checkboxes plugin from Z39.50 search pages 2020-08-18 15:45:49 +02:00
circ Bug 23695: (QA follow-up) Fix Copy/Paste 2020-08-18 15:45:48 +02:00
clubs
common
course_reserves Bug 25606: (QA follow-up) Don't show remove all button if no reserves 2020-08-07 16:54:40 +02:00
errors
ill
installer
labels Bug 25765: Replace LoginBranchname and LoginBranchcode with use of Branches template plugin 2020-07-23 11:17:27 +02:00
mana
members Bug 26194: Add link to cash register management from message about missing registers 2020-08-18 15:45:49 +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
patron_lists
patroncards Bug 25765: Replace LoginBranchname and LoginBranchcode with use of Branches template plugin 2020-07-23 11:17:27 +02:00
plugins Bug 25953: Add ID to installed plugins table on plugins-home.pl 2020-07-30 17:44:27 +02:00
pos Bug 26194: Add link to cash register management from message about missing registers 2020-08-18 15:45:49 +02:00
reports Bug 26087: Add table configuration and export options to orders by fund report 2020-08-13 07:55:42 +02:00
reserve Bug 25827: Add floating toolbar to the holds summary page in staff interface 2020-07-20 17:45:31 +02:00
reviews
rotating_collections Bug 25762: Typo in linkitem.tt 2020-08-03 11:47:39 +02:00
serials
services
suggestion Bug 25751: Add ORDERED in dropdown list of suggestion's statuses 2020-08-18 15:45:48 +02:00
tags
test
tools Bug 26065: Move translatable strings out of marc_modification_templates.tt and into marc_modification_templates.js 2020-08-18 15:45:49 +02:00
virtualshelves Bug 26204: Remove the use of jquery.checkboxes plugin from staff interface lists 2020-08-18 15:45:49 +02:00
about.tt Bug 25826: (QA follow-up) Add filters 2020-08-07 09:55:50 +02:00
auth.tt Bug 24201: (QA follow-up) Only display desks picker if enabled 2020-08-07 16:54:40 +02:00
intranet-main.tt Bug 16371: Fix QA issues, change terminology 2020-08-13 10:15:33 +02:00