@@ -, +, @@ merge-record-strings.inc into merge-record.js - 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." - 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. --- koha-tmpl/intranet-tmpl/prog/en/includes/merge-record-strings.inc | 7 ------- koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt | 1 - koha-tmpl/intranet-tmpl/prog/js/merge-record.js | 4 ++-- 3 files changed, 2 insertions(+), 10 deletions(-) delete mode 100644 koha-tmpl/intranet-tmpl/prog/en/includes/merge-record-strings.inc --- a/koha-tmpl/intranet-tmpl/prog/en/includes/merge-record-strings.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/merge-record-strings.inc @@ -1,7 +0,0 @@ -[%# transletable strings for merge-record.js %] - - - --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/merge.tt @@ -181,7 +181,6 @@ div#result { margin-top: 1em; } [% MACRO jsinclude BLOCK %] [% Asset.js("js/merge-record.js") | $raw %] - [% INCLUDE 'merge-record-strings.inc' %]