Update of /cvsroot/phpwebapp/web_app/boxes/menu/edit
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1556/boxes/menu/edit
Modified Files:
edit_menu.php edit_menu.js
Log Message:
i18n and l10n of web_app messages
Index: edit_menu.php
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/boxes/menu/edit/edit_menu.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** edit_menu.php 9 Jun 2005 13:07:34 -0000 1.3
--- edit_menu.php 1 Nov 2005 13:24:25 -0000 1.4
***************
*** 74,78 ****
if ($new_id <> $item_id and $output==$new_id)
{
! WebApp::message("Another menu item with id '$new_id' already exists.");
return;
}
--- 74,80 ----
if ($new_id <> $item_id and $output==$new_id)
{
! $msg = T_("Another menu item with id 'v_new_id' already exists.");
! $msg = str_replace('v_new_id', $new_id, $msg);
! WebApp::message($msg);
return;
}
***************
*** 115,118 ****
--- 117,122 ----
if ($output==$new_id)
{
+ $msg = T_("Another menu item with id 'v_new_id' already exists.");
+ $msg = str_replace('v_new_id', $new_id, $msg);
WebApp::message("Another menu item with id '$new_id' already exists.");
return;
Index: edit_menu.js
===================================================================
RCS file: /cvsroot/phpwebapp/web_app/boxes/menu/edit/edit_menu.js,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** edit_menu.js 16 Jul 2004 07:41:39 -0000 1.1
--- edit_menu.js 1 Nov 2005 13:24:25 -0000 1.2
***************
*** 34,38 ****
if (new_id=='')
{
! alert('ID cannot be empty.');
form.item_id.focus();
return false;
--- 34,38 ----
if (new_id=='')
{
! alert(T_("ID cannot be empty."));
form.item_id.focus();
return false;
***************
*** 40,44 ****
if (new_caption=='')
{
! alert('Caption cannot be empty.');
form.item_caption.focus();
return false;
--- 40,44 ----
if (new_caption=='')
{
! alert(T_("Caption cannot be empty."));
form.item_caption.focus();
return false;
***************
*** 76,80 ****
if (new_id=='')
{
! alert('Please fill the ID field.');
form.new_id.focus();
return false;
--- 76,80 ----
if (new_id=='')
{
! alert(T_("Please fill the ID field."));
form.new_id.focus();
return false;
***************
*** 82,86 ****
if (new_caption=='')
{
! alert('Please fill the Caption field.');
form.new_caption.focus();
return false;
--- 82,86 ----
if (new_caption=='')
{
! alert(T_("Please fill the Caption field."));
form.new_caption.focus();
return false;
|