From a2bfeb72a77a4501bf8040bf164f97fe0a0d4f22 Mon Sep 17 00:00:00 2001 From: "Fedor A. Fetisov" Date: Mon, 28 Oct 2013 17:23:04 +0400 Subject: [PATCH] Add new localization constant --- src/mibew/locales/en/properties | 1 + src/mibew/operator/avatar.php | 2 +- src/mibew/operator/opgroups.php | 2 +- src/mibew/operator/permissions.php | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mibew/locales/en/properties b/src/mibew/locales/en/properties index 56ef0adf..70f09717 100644 --- a/src/mibew/locales/en/properties +++ b/src/mibew/locales/en/properties @@ -265,6 +265,7 @@ menu.updates=Updates my_settings.error.no_password=No Password set for the Administrator my_settings.error.password_match=Entered passwords do not match no_such_operator=No such Operator +not_found=-not found- operator.group.no_description=<no description> operator.groups.intro=Choose groups according to operator skills. operator.groups.title=Operator groups diff --git a/src/mibew/operator/avatar.php b/src/mibew/operator/avatar.php index e2928174..0ef8249a 100644 --- a/src/mibew/operator/avatar.php +++ b/src/mibew/operator/avatar.php @@ -91,7 +91,7 @@ if (!$op) { $page['avatar'] = topage($op['vcavatar']); } -$page['currentop'] = $op ? topage(get_operator_name($op)) . " (" . $op['vclogin'] . ")" : "-not found-"; +$page['currentop'] = $op ? topage(get_operator_name($op)) . " (" . $op['vclogin'] . ")" : getlocal("not_found"); $page['canmodify'] = $canmodify ? "1" : ""; prepare_menu($operator); diff --git a/src/mibew/operator/opgroups.php b/src/mibew/operator/opgroups.php index bee8088a..9098ba91 100644 --- a/src/mibew/operator/opgroups.php +++ b/src/mibew/operator/opgroups.php @@ -72,7 +72,7 @@ if (!$op) { } $page['formgroup'] = array(); -$page['currentop'] = $op ? topage(get_operator_name($op)) . " (" . $op['vclogin'] . ")" : "-not found-"; +$page['currentop'] = $op ? topage(get_operator_name($op)) . " (" . $op['vclogin'] . ")" : getlocal("not_found"); $page['canmodify'] = $canmodify ? "1" : ""; if ($op) { diff --git a/src/mibew/operator/permissions.php b/src/mibew/operator/permissions.php index 81960f8c..1959ee2c 100644 --- a/src/mibew/operator/permissions.php +++ b/src/mibew/operator/permissions.php @@ -61,7 +61,7 @@ if (!$op) { $page['permissionsList'] = get_permission_list(); $page['formpermissions'] = array(""); -$page['currentop'] = $op ? topage(get_operator_name($op)) . " (" . $op['vclogin'] . ")" : "-not found-"; +$page['currentop'] = $op ? topage(get_operator_name($op)) . " (" . $op['vclogin'] . ")" : getlocal("not_found"); if ($op) { foreach (permission_ids() as $perm => $id) {