From 422d552cc82604aea5962e2bf6868db69c812c56 Mon Sep 17 00:00:00 2001 From: ZonD Eighty Date: Wed, 16 Jan 2013 17:03:41 +0400 Subject: [PATCH] Translation fixes 1 --- web/add/db/index.php | 4 +++- web/inc/i18n/en.php | 2 ++ web/inc/i18n/ru.php | 4 +++- web/templates/admin/add_web.html | 4 ++-- web/templates/admin/edit_mail.html | 2 +- web/templates/admin/list_user.html | 2 +- web/templates/user/add_web.html | 4 ++-- 7 files changed, 14 insertions(+), 8 deletions(-) diff --git a/web/add/db/index.php b/web/add/db/index.php index 1438f953..9f14d25f 100644 --- a/web/add/db/index.php +++ b/web/add/db/index.php @@ -66,7 +66,8 @@ if (!empty($_POST['ok'])) { $_SESSION['error_msg'] = $error; unset($v_password); unset($output); - } else { + } + else { if (empty($v_notify)) { list($http_host, $port) = explode(':', $_SERVER["HTTP_HOST"]); if ($_POST['v_type'] == 'mysql') $db_admin_link = "http://".$http_host."/phpMyAdmin/"; @@ -93,6 +94,7 @@ if (!empty($_POST['ok'])) { } } } +} exec (VESTA_CMD."v-list-database-types 'json'", $output, $return_var); $db_types = json_decode(implode('', $output), true); unset($output); diff --git a/web/inc/i18n/en.php b/web/inc/i18n/en.php index 81b754f1..554243f3 100644 --- a/web/inc/i18n/en.php +++ b/web/inc/i18n/en.php @@ -340,6 +340,8 @@ $LANG = array( 'SERVICE_ACTION_FAILED'=>'Error: Oparaion "%s" for service "%s" has been failed', 'Memory Usage'=>'Memory Usage', 'Bandwidth Usage'=>'Bandwidth Usage', + 'IP Address'=>'IP Address', + 'Accounts'=>'Accounts', ); /*error_reporting(E_ALL); diff --git a/web/inc/i18n/ru.php b/web/inc/i18n/ru.php index a8f0dccc..63678cc5 100644 --- a/web/inc/i18n/ru.php +++ b/web/inc/i18n/ru.php @@ -38,6 +38,7 @@ $LANG = array( 'DOMAIN_CREATED_OK'=>'Успех: Домен %s успешно создан.', 'RECORD_CREATED_OK'=>'Успех: Запись %s.%s успешно создана.', 'ip address'=>'IP-адрес', + 'IP Address'=>'IP-адрес', 'netmask'=>'маска подсети', 'Netmask'=>'Маска подсети', 'interface'=>'интерфейс', @@ -63,6 +64,7 @@ $LANG = array( 'dns records'=>'DNS записи', 'mail domains'=>'домены с почтой', 'mail accounts'=>'почтовые аккаунты', + 'Accounts'=>'Аккаунты', 'Mail Domains'=>'Домены с Почтой', 'Mail Accounts'=>'Почтовые Аккаунты', 'accounts'=>'аккаунты', @@ -177,7 +179,7 @@ $LANG = array( 'Packages'=>'Пакеты', 'IP Addresses'=>'IP адреса', 'RRD Graphics'=>'Графики', - 'jobs'=>'Задания', + 'jobs'=>'задания', 'Reset Code'=>'Код сброса', 'disk'=>'место', 'Disk'=>'Место', diff --git a/web/templates/admin/add_web.html b/web/templates/admin/add_web.html index 531dfbe1..37ee76eb 100644 --- a/web/templates/admin/add_web.html +++ b/web/templates/admin/add_web.html @@ -264,7 +264,7 @@ - + @@ -286,7 +286,7 @@ - + diff --git a/web/templates/admin/edit_mail.html b/web/templates/admin/edit_mail.html index 4cc95658..9a1c4048 100644 --- a/web/templates/admin/edit_mail.html +++ b/web/templates/admin/edit_mail.html @@ -33,7 +33,7 @@ - +
diff --git a/web/templates/admin/list_user.html b/web/templates/admin/list_user.html index 9c22513b..df16bf65 100644 --- a/web/templates/admin/list_user.html +++ b/web/templates/admin/list_user.html @@ -71,7 +71,7 @@ "; + echo " ". _('logout').""; if (!empty($_SESSION['look_alert'])) { ?>