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)
committerKyle Hall <kyle@bywatersolutions.com>
Fri, 3 Dec 2021 15:15:33 +0000 (10:15 -0500)
commitedf3c3bfa8d366ee7d2c77faf33210d7bdff9088
tree5aa4edba7d539ea74363e44eae2c031b7ea639f3
parentbd351e07b676ee9c734d13a27101d678f2e3d3c5
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>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/koha2marclinks.tt