Bug 29529: Fix \n in hint on Koha to MARC mappings
authorOwen Leonard <oleonard@myacpl.org>
Fri, 19 Nov 2021 14:48:49 +0000 (14:48 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 2 Dec 2021 07:47:18 +0000 (21:47 -1000)
commit8bd30b03b4ae8533eae9945d587ec1a2b11117ff
treef24c3c55daf2d8dc971185bddd4e405081c7eacc
parentbb97545f0b66051093521654276736a3d5af6c1d
Bug 29529: Fix \n in hint on Koha to MARC mappings

This patch breaks up a translatable string so that "\n" is excluded from
what is translated.

Unrelated: Capitalization is corrected on an instance of the phrase
"Koha to MARC Mappings."

To test, apply the patch and go to Administration -> Koha to MARC
mapping.

- The breadcrumb for the current page should have correct capitalization
  ("mapping" instead of "Mapping").
- Click the "Add" button for any Koha field. The dialog should display
  correctly:

  Adding a mapping for: biblio.abstract.
  Please enter field tag and subfield code, separated by a comma. (For
  control fields: add '@' as subfield code.)
  The change will be applied immediately.

Test the way the po file is updated:

 > cd misc/translator
 > perl translate update en-GB (for example)
 - Open the updated po file, en-GB-staff-prog.po
 - You should find these lines:

 SCRIPT
 koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt:86
 msgid "The change will be applied immediately."
 msgstr ""

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt