Bug 11646: fix untranslatable confirm popup in field 006 and 008 builders

This patch MARC21 modifies value builders 006 and 008 to make
confirm popup translatable

To test:
1) Update po files for your preferred language, xx-YY
cd misc/translator; perl translate update xx-YY
2) Check that confirm string is NOT present
egrep -B3 "Show values for|material type\?" po/xx-YY*po
3) Apply the patch
4) Repeat 1)
5) Repeat 2), now the strings are present

Also check that english or translated popup is right

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

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit a9f794a9c8)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Bernardo Gonzalez Kriegel 2014-03-22 14:50:03 -03:00 committed by Fridolin Somers
parent f0791a89ba
commit 9c3e95f196
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@
function changeTypeofMaterial(form)
{
if (form.material_type.options[form.material_type.selectedIndex].value != "" && confirm('Show values for \'' + form.material_type.options[form.material_type.selectedIndex].text + '\' material type?')) {
if (form.material_type.options[form.material_type.selectedIndex].value != "" && confirm(_("Show values for") +' \'' + form.material_type.options[form.material_type.selectedIndex].text + '\' ' +_("material type?"))) {
objXmlControlField.setIdMaterial(form.material_type.options[form.material_type.selectedIndex].value);
objXmlControlField.renderTemplate();
renderResult(tr_result, form.result.value, true);

View File

@ -24,7 +24,7 @@
function changeTypeofMaterial(form)
{
if (form.material_type.options[form.material_type.selectedIndex].value != "" && confirm('Show values for \'' + form.material_type.options[form.material_type.selectedIndex].text + '\' material type?')) {
if (form.material_type.options[form.material_type.selectedIndex].value != "" && confirm(_("Show values for") + ' \'' + form.material_type.options[form.material_type.selectedIndex].text + '\' ' + _("material type?"))) {
objXmlControlField.setIdMaterial(form.material_type.options[form.material_type.selectedIndex].value);
objXmlControlField.renderTemplate();
renderResult(tr_result, form.result.value, true);