From 6152c4bb1b8f16173cc76b4c6a2a0a7694d13803 Mon Sep 17 00:00:00 2001 From: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Date: Sat, 22 Mar 2014 13:53:44 -0300 Subject: [PATCH] Bug 11639 - Untranslatable strings in 007 builder This patch modifies marc21_field_007.tt to make some missing strings translatable To test: 1) Using your preferred language, xx-YY, updatepo files cd misc/translator perl translate update xx-YY 2) Check that missing strings are NOT present egrep -i "exact bit depth|pad with zero|use up to 6" po/xx-YY-i-staff-t-prog-v-3006000.po 3) Apply the patch 4) repeat 1) 5) Repeat 2), check that missing strings are present --- .../cataloguing/value_builder/marc21_field_007.tt | 22 ++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_007.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_007.tt index b5d22fa..e79ca0b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_007.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_007.tt @@ -1100,8 +1100,12 @@ function RedrawChoices(typ){ <tr> \ <td><label for="f6">' + _("06-08 Image bit depth") + - '</label> <br /><I>(if exact bit depth known, enter; <br />otherwise use pulldown)</i></td> \ - <td><input type="text" size=3 name="f6" id = "f6" value="[% f6 %][% f7 %][% f8 %]" />- <label for="f6pulldown">Exact bit depth 001-999</label> \ + '</label> <br /><I>' + + _("(if exact bit depth known, enter; <br />otherwise use pulldown)") + + '</i></td> \ + <td><input type="text" size=3 name="f6" id = "f6" value="[% f6 %][% f7 %][% f8 %]" />- <label for="f6pulldown">' + + _("Exact bit depth 001-999") + + '</label> \ <select id="f6pulldown" name="f6pulldown" onchange="editER_fld6(this.options[selectedIndex].value)"> \ <option value="">' + _(" ") + @@ -3894,8 +3898,10 @@ function RedrawChoices(typ){ <tr> \ <td><label for="f6">' + _("06-08 Reduction ratio") + - '</label> <br /><I>(three digits, pad with zero as needed, <br />or ||| for no attempt to code)</i></td> \ - <td><input type="text" size=3 name="f6" id = "f6" value="[% f6 %][% f7 %][% f8 %]"> - 001-999</input> \ + '</label> <br /><I>' + + _("(three digits, pad with zero as needed, <br />or ||| for no attempt to code)") + + '</i></td> \ + <td><input type="text" size=3 name="f6" id = "f6" value="[% f6 %][% f7 %][% f8 %]"> - 001-999</input> \ </td> \ </td> \ <tr> \ @@ -6425,8 +6431,12 @@ function RedrawChoices(typ){ <tr> \ <td><label for="f17">' + _("17-22 Film inspection date") + - '</label><br /><I>(YYYYMM; use up to 6 - for unknown <br />or | for no attempt to code)</i></td> \ - <td><input type="text" size=6 name="f17" id = "f17" value="[% f17 %][% f18 %][% f19 %][% f20 %][% f21 %][% f22 %]">- Date</input> \ + '</label><br /><I>' + + _("(YYYYMM; use up to 6 - for unknown <br />or | for no attempt to code)") + + '</i></td> \ + <td><input type="text" size=6 name="f17" id = "f17" value="[% f17 %][% f18 %][% f19 %][% f20 %][% f21 %][% f22 %]">- ' + + _("Date") + + '</input> \ </td> \ </td> \ </table>'; -- 1.7.9.5