Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools
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
..
access_files.tt
automatic_item_modification_by_age.tt
batch_delete_records.tt Bug 26159: Remove the use of jquery.checkboxes plugin from batch record delete page 2020-08-18 15:45:49 +02:00
batch_extend_due_dates.tt Bug 26201: Remove the use of jquery.checkboxes plugin from batch extend due dates page 2020-08-18 15:45:49 +02:00
batch_record_modification.tt Bug 26202: Remove the use of jquery.checkboxes plugin from batch record modification page 2020-08-18 15:45:49 +02:00
batchMod-del.tt Bug 5428: Add searchid to the "Return to the record" button (batch del) 2020-08-13 07:55:45 +02:00
batchMod-edit.tt Bug 5428: (QA follow-up) Add searchid for deleting items in a batch and editing in batch 2020-08-13 07:55:45 +02:00
batchMod.tt
cleanborrowers.tt Bug 25765: (QA follow-up) Use method directly in cleanborrowers 2020-07-23 11:17:27 +02:00
csv-profiles.tt Bug 5087: (QA follow-up) Rename the attribute to fit later API usage 2020-07-23 10:52:10 +02:00
export.tt Bug 14647: Make spelling in file format pull downs match 2020-02-20 08:59:41 +00:00
holidays.tt Bug 4985: Edit a calendar entry for all branches 2020-06-24 15:27:27 +02:00
import_borrowers.tt Bug 23473: (follow-up) Fix QA complaints (tabs, filters, Dumper) 2020-03-27 12:23:17 +00:00
inventory.tt Bug 24275: Apply anti-the to title column in inventory table 2020-01-15 13:53:51 +00:00
koha-news.tt Bug 26121: Add z-index for CodeMirror 2020-08-06 11:37:06 +02:00
letter.tt Bug 24156: move ColumnsSettings to TablesSettings 2020-06-25 10:51:59 +02:00
manage-marc-import.tt Bug 14369: Only show 'Create labels' link on staged records import when status is imported 2020-04-21 12:28:56 +01:00
marc_modification_templates.tt 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
modborrowers.tt Bug 20443: Move GetBorrowerAttributes to Koha::Patron->extended_attributes 2020-03-23 13:39:25 +00:00
overduerules.tt
picture-upload.tt
preview_letter.tt
problem-reports.tt Bug 26149: Remove jquery.checkboxes plugin from problem reports page 2020-08-18 15:45:49 +02:00
quotes-upload.tt
quotes.tt Bug 16371: Quote of the Day (QOTD) - Display in different interfaces 2020-08-13 10:15:33 +02:00
scheduler.tt
showdiffmarc.tt
stage-marc-import.tt Bug 23753: Add missing humanMsg library to pages using background job JavaScript 2020-03-02 09:49:56 +00:00
stockrotation.tt Bug 24156: move ColumnsSettings to TablesSettings 2020-06-25 10:51:59 +02:00
tools-home.tt Bug 26017: Correct permission check on tools page 2020-08-06 11:37:06 +02:00
upload-images.tt Bug 23753: Add missing humanMsg library to pages using background job JavaScript 2020-03-02 09:49:56 +00:00
upload.tt Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
viewlog.tt Bug 25968: Make logs sort by date descending as a default 2020-07-30 17:44:27 +02:00