Bug 20140: Allow translating more of OAI sets
authorPasi Kallinen <pasi.kallinen@joensuu.fi>
Tue, 6 Feb 2018 08:11:27 +0000 (10:11 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 26 Feb 2018 16:24:44 +0000 (13:24 -0300)
Allow translating two strings in the OAI set config:
"setDescription" and "Remove"

Test plan:

1) Go to Home -> Administrator -> OAI sets config -> Add a new OAI set
2) Click on "New set"
3) Click on "Add description"
4) Note the "setDescription:" and "Remove" -texts
5) Install patch, update language, translate the new strings
6) Redo 1-4, note how the strings in part 4 are now translated

Signed-off-by: Pasi Kallinen <pasi.kallinen@joensuu.fi>
Signed-off-by: Roch D'Amour <roch.damour@inlibro.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

koha-tmpl/intranet-tmpl/prog/en/modules/admin/oai_sets.tt

index bbc4006..f4d4ba9 100644 (file)
     <script type="text/javascript">
         function newDescField() {
             $("#adddescription").before(
-                '<li><label>setDescription: </label>' +
+                '<li><label>' + _("setDescription: ") + '</label>' +
                 '<textarea style="vertical-align:middle" rows="2" cols="30" name="description"></textarea>' +
-                '<a class="remove_description" href="#"><i class="fa fa-fw fa-trash"></i> Remove</a>' +
+                '<a class="remove_description" href="#"><i class="fa fa-fw fa-trash"></i>' + _(" Remove") + '</a>' +
                 '</li>'
             );
         }