mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Use lang
This commit is contained in:
parent
883845235f
commit
00c86d1ccc
@ -50,7 +50,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($errorcount) { $t->set_var('message',$phpgw->common->error_list($error)); }
|
if ($errorcount) { $t->set_var('message',$phpgw->common->error_list($error)); }
|
||||||
if (($submit) && (! $error) && (! $errorcount)) { $t->set_var('message',lang("Category $cat_name has been updated !")); }
|
if (($submit) && (! $error) && (! $errorcount)) { $t->set_var('message',lang("Category x has been updated !",$catname)); }
|
||||||
if ((! $submit) && (! $error) && (! $errorcount)) { $t->set_var('message',''); }
|
if ((! $submit) && (! $error) && (! $errorcount)) { $t->set_var('message',''); }
|
||||||
|
|
||||||
$cats = $c->return_single($cat_id);
|
$cats = $c->return_single($cat_id);
|
||||||
@ -82,4 +82,4 @@
|
|||||||
$t->pparse('edithandle','edit');
|
$t->pparse('edithandle','edit');
|
||||||
|
|
||||||
$phpgw->common->phpgw_footer();
|
$phpgw->common->phpgw_footer();
|
||||||
?>
|
?>
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
. "$section' and lang='$select_lang'",__LINE__,__FILE__);
|
. "$section' and lang='$select_lang'",__LINE__,__FILE__);
|
||||||
$phpgw->db->query("insert into lang values ('$section" . "_message','$section','$select_lang','"
|
$phpgw->db->query("insert into lang values ('$section" . "_message','$section','$select_lang','"
|
||||||
. addslashes($message) . "')",__LINE__,__FILE__);
|
. addslashes($message) . "')",__LINE__,__FILE__);
|
||||||
$message = "<center>Message has been updated</center>";
|
$message = "<center>".lang("message has been updated")."</center>";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (! isset($select_lang)) {
|
if (! isset($select_lang)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user