From ce21cfd146ab1f74662686c9cd430999ee8c656c Mon Sep 17 00:00:00 2001 From: bradymiller Date: Sun, 7 Jun 2009 11:12:45 +0000 Subject: [PATCH] Internationalization of validation function --- library/options.inc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/library/options.inc.php b/library/options.inc.php index e2ad37613..ab0b06656 100644 --- a/library/options.inc.php +++ b/library/options.inc.php @@ -814,7 +814,8 @@ function generate_layout_validation($form_id) { case 14: echo " if (f.$fldname.selectedIndex <= 0) {\n" . - " alert('Please choose a value for $fldtitle');\n" . + " alert('" . xl('Please choose a value for','','',' ') . + xl_layout_label($fldtitle) . "');\n" . " if (f.$fldname.focus) f.$fldname.focus();\n" . " return false;\n" . " }\n"; @@ -825,7 +826,8 @@ function generate_layout_validation($form_id) { case 15: echo " if (trimlen(f.$fldname.value) == 0) {\n" . - " alert('Please enter a value for $fldtitle');\n" . + " alert('" . xl('Please choose a value for','','',' ') . + xl_layout_label($fldtitle) . "');\n" . " if (f.$fldname.focus) f.$fldname.focus();\n" . " return false;\n" . " }\n"; -- 2.11.4.GIT