Bug 23888: (follow-up) Wrap English string in translation function
authorOwen Leonard <oleonard@myacpl.org>
Fri, 14 Feb 2020 15:07:16 +0000 (15:07 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 27 Mar 2020 12:14:21 +0000 (12:14 +0000)
commit97913b8a648b607401a45b15525914f5e1d4d209
tree031cdf4c79f478fccc4d6a5a969cd6338fc89959
parentc52e15689f123faa083626d725420def07dbfdc5
Bug 23888: (follow-up) Wrap English string in translation function

This patch makes alert added in subscription-add.js translatable using
the new __() function.

To test, apply the patch and confirm that the alert still works
correctly when submitting the subscription edit form with an invalid
vendor id.

Test that the string can be translated (using fr-Fr for example):

1. cd misc/translator && ./translate update fr-FR
2. Translate strings in misc/tranlator/po/fr-FR-messages-js.po
3. cd misc/translator && ./translate install fr-FR

Switch to the fr-FR translation and confirm the the alert shows your
translated string.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/js/subscription-add.js