Bug 11639: fix untranslatable strings in 007 builder
authorBernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Sat, 22 Mar 2014 16:53:44 +0000 (13:53 -0300)
committerGalen Charlton <gmc@esilibrary.com>
Tue, 22 Apr 2014 14:55:37 +0000 (14:55 +0000)
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

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Template change, works as described.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/value_builder/marc21_field_007.tt

index b5d22fa..e79ca0b 100644 (file)
@@ -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>';