mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +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);
|
||||||
|
@ -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