';
- echo lang_admin("Sorry, the follow users are still a member of the group x",$group_name)
- . ' ' . lang_admin("They must be removed before you can continue")
+ echo lang("Sorry, the follow users are still a member of the group x",$group_name)
+ . ' ' . lang("They must be removed before you can continue")
. '';
echo '
diff --git a/admin/editaccount.php b/admin/editaccount.php
index b58c968221..150beafbfc 100755
--- a/admin/editaccount.php
+++ b/admin/editaccount.php
@@ -34,22 +34,22 @@
if ($n_passwd || $n_passwd_2) {
if ($n_passwd != $n_passwd_2){
- $error .= lang_admin("The two passwords are not the same");
+ $error .= lang("The two passwords are not the same");
}
if (! $n_passwd){
- $error .= lang_admin("You must enter a password");
+ $error .= lang("You must enter a password");
}
}
if ($lid != $n_loginid) {
$phpgw->db->query("select loginid from accounts where loginid='$n_loginid'");
if ($phpgw->db->num_rows() != 0) {
- $error .= " " . lang_admin("That loginid has already been taken");
+ $error .= " " . lang("That loginid has already been taken");
}
}
if (count($new_permissions) == 0){
- $error .= " " . lang_admin("You must add at least 1 permission to this account");
+ $error .= " " . lang("You must add at least 1 permission to this account");
}
if (! $error) {
$phpgw->db->lock(array('accounts','preferences','sessions'));
@@ -125,25 +125,25 @@
" . lang_common("Error") . ":$error
";
+ echo "
" . lang("Error") . ":$error
";
}
?>
-
+
">
-
+
">
-
+
">
-
+
diff --git a/admin/editapplication.php b/admin/editapplication.php
index 39f0b4a76a..b2b1df4345 100644
--- a/admin/editapplication.php
+++ b/admin/editapplication.php
@@ -23,7 +23,7 @@
if ($submit) {
if (! $n_app_name || ! $n_app_title) {
- $error = lang_admin("You must enter an application name and title.");
+ $error = lang("You must enter an application name and title.");
} else {
$phpgw->db->query("update applications set app_name='" . addslashes($n_app_name) . "',"
. "app_title='" . addslashes($n_app_title) . "', app_enabled='"
@@ -41,7 +41,7 @@
$phpgw->common->navbar();
}
- $t->set_var("lang_header",lang_admin("Add new application"));
+ $t->set_var("lang_header",lang("Add new application"));
if ($error) {
$t->set_var("error","
$error
");
@@ -51,10 +51,10 @@
$t->set_var("hidden_vars",'');
$t->set_var("form_action",$phpgw->link("editapplication.php"));
- $t->set_var("lang_app_name",lang_admin("application name"));
- $t->set_var("lang_app_title",lang_admin("application title"));
- $t->set_var("lang_enabled",lang_admin("enabled"));
- $t->set_var("lang_submit_button",lang_common("edit"));
+ $t->set_var("lang_app_name",lang("application name"));
+ $t->set_var("lang_app_title",lang("application title"));
+ $t->set_var("lang_enabled",lang("enabled"));
+ $t->set_var("lang_submit_button",lang("edit"));
$t->set_var("app_name_value",$phpgw->db->f("app_name"));
$t->set_var("app_title_value",$phpgw->db->f("app_title"));
diff --git a/admin/editgroup.php b/admin/editgroup.php
index b9c38bd823..3f15721cc2 100755
--- a/admin/editgroup.php
+++ b/admin/editgroup.php
@@ -36,7 +36,7 @@
$phpgw->db->next_record();
if ($phpgw->db->f(0) != 0 && $n_group != $old_group_name) {
- $error = lang_admin("Sorry, that group name has already been taking.");
+ $error = lang("Sorry, that group name has already been taking.");
}
if (! $error) {
@@ -124,7 +124,7 @@
$t->set_var("form_action",$phpgw->link("editgroup.php"));
$t->set_var("hidden_vars","");
- $t->set_var("lang_group_name",lang_admin("group name"));
+ $t->set_var("lang_group_name",lang("group name"));
$t->set_var("group_name_value",$phpgw->db->f("group_name"));
$phpgw->db->query("select count(*) from accounts where status !='L'");
@@ -136,7 +136,7 @@
$t->set_var("select_size","5");
}
- $t->set_var("lang_include_user",lang_admin("Select users for inclusion"));
+ $t->set_var("lang_include_user",lang("Select users for inclusion"));
$phpgw->db->query("SELECT con,firstname,lastname, loginid FROM accounts where "
. "status != 'L' ORDER BY lastname,firstname,loginid asc");
while ($phpgw->db->next_record()) {
@@ -148,7 +148,7 @@
}
$t->set_var("user_list",$user_list);
- $t->set_var("lang_permissions",lang_admin("Permissions this group has"));
+ $t->set_var("lang_permissions",lang("Permissions this group has"));
while ($permission = each($phpgw_info["apps"])) {
if ($permission[1]["enabled"]) {
$permissions_list .= "
diff --git a/admin/newaccount.php b/admin/newaccount.php
index 8cbf9915c5..7845d03449 100755
--- a/admin/newaccount.php
+++ b/admin/newaccount.php
@@ -17,24 +17,24 @@
include("../header.inc.php");
if ($submit) {
if (! $n_loginid)
- $error = " " . lang_admin("You must enter a loginid");
+ $error = " " . lang("You must enter a loginid");
if (! $n_passwd)
- $error .= " " . lang_admin("You must enter a password");
+ $error .= " " . lang("You must enter a password");
if ($n_passwd == $n_loginid)
- $error = " " . lang_admin("The login and password can not be the same");
+ $error = " " . lang("The login and password can not be the same");
if ($n_passwd != $n_passwd_2)
- $error .= " " . lang_admin("The two passwords are not the same");
+ $error .= " " . lang("The two passwords are not the same");
if (count($new_permissions) == 0)
- $error .= " " . lang_admin("You must add at least 1 permission to this account");
+ $error .= " " . lang("You must add at least 1 permission to this account");
$phpgw->db->query("select loginid from accounts where loginid='$n_loginid'");
$phpgw->db->next_record();
if ($phpgw->db->f("loginid"))
- $error .= " " . lang_admin("That loginid has already been taken");
+ $error .= " " . lang("That loginid has already been taken");
if (! $error) {
$phpgw->db->lock(array("accounts","preferences"));
@@ -93,33 +93,33 @@