From 4929747f7006d1e6336fef53e8234afab3b20d3d Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Wed, 3 Jun 2015 17:41:43 +0300 Subject: [PATCH] Date translation --- web/inc/i18n/ru.php | 14 ++++++++++++++ web/inc/main.php | 5 +++++ web/templates/admin/edit_cron.html | 4 ++-- web/templates/admin/edit_db.html | 4 ++-- web/templates/admin/edit_dns.html | 4 ++-- web/templates/admin/edit_dns_rec.html | 4 ++-- web/templates/admin/edit_firewall.html | 4 ++-- web/templates/admin/edit_ip.html | 4 ++-- web/templates/admin/edit_mail.html | 4 ++-- web/templates/admin/edit_mail_acc.html | 4 ++-- web/templates/admin/edit_package.html | 4 ++-- web/templates/admin/edit_user.html | 4 ++-- web/templates/admin/edit_web.html | 4 ++-- web/templates/admin/list_backup.html | 2 +- web/templates/admin/list_cron.html | 2 +- web/templates/admin/list_db.html | 2 +- web/templates/admin/list_dns.html | 4 ++-- web/templates/admin/list_ip.html | 2 +- web/templates/admin/list_log.html | 2 +- web/templates/admin/list_mail.html | 2 +- web/templates/admin/list_mail_acc.html | 2 +- web/templates/admin/list_packages.html | 2 +- web/templates/admin/list_rrd.html | 2 +- web/templates/admin/list_search.html | 2 +- web/templates/admin/list_stats.html | 4 ++-- web/templates/admin/list_user.html | 2 +- web/templates/admin/list_web.html | 2 +- web/templates/user/edit_dns.html | 4 ++-- web/templates/user/edit_user.html | 4 ++-- web/templates/user/edit_web.html | 4 ++-- web/templates/user/list_cron.html | 2 +- web/templates/user/list_db.html | 2 +- web/templates/user/list_dns.html | 4 ++-- web/templates/user/list_mail.html | 2 +- web/templates/user/list_mail_acc.html | 2 +- web/templates/user/list_search.html | 2 +- web/templates/user/list_stats.html | 4 ++-- web/templates/user/list_user.html | 2 +- web/templates/user/list_web.html | 2 +- 39 files changed, 74 insertions(+), 55 deletions(-) diff --git a/web/inc/i18n/ru.php b/web/inc/i18n/ru.php index bac42dd8..2cc2f30d 100644 --- a/web/inc/i18n/ru.php +++ b/web/inc/i18n/ru.php @@ -470,4 +470,18 @@ $LANG['ru'] = array( 'RESET_CODE_SENT' => 'Код для восстановления пароля был выслан на ваш электронный адрес.
', 'MAIL_RESET_SUBJECT' => 'Восстановление пароля %s', 'PASSWORD_RESET_REQUEST'=>"Чтобы восстановить пароль, пройдите по ссылке:\nhttps://%s/reset/?action=confirm&user=%s&code=%s\n\nВы также можете октрыть страницу https://%s/reset/?action=code&user=%s и вручную ввести код для восстановления:\n%s\n\nЕсли вы не запрашивали процедуру восстановления пароля, пожалуйста проигнорируйте это письмо и примите наши извинения.\n\n--\nПанель управления Vesta\n", + + 'Jan' => 'Янв', + 'Feb' => 'Фев', + 'Mar' => 'Мар', + 'Apr' => 'Апр', + 'May' => 'Май', + 'Jun' => 'Июн', + 'Jul' => 'Июл', + 'Aug' => 'Авг', + 'Sep' => 'Сен', + 'Oct' => 'Окт', + 'Nov' => 'Ноя', + 'Dec' => 'Дек', + ); diff --git a/web/inc/main.php b/web/inc/main.php index 8df32cd5..c7305a6f 100644 --- a/web/inc/main.php +++ b/web/inc/main.php @@ -134,6 +134,11 @@ function top_panel($user, $TAB) { } } +function translate_date($date){ + $date = strtotime($date); + return strftime("%d  ", $date).__(strftime("%b", $date)).strftime("  %Y", $date); +} + function humanize_time($usage) { if ( $usage > 60 ) { $usage = $usage / 60; diff --git a/web/templates/admin/edit_cron.html b/web/templates/admin/edit_cron.html index ce3b4952..9fa50faf 100644 --- a/web/templates/admin/edit_cron.html +++ b/web/templates/admin/edit_cron.html @@ -37,8 +37,8 @@ diff --git a/web/templates/admin/edit_db.html b/web/templates/admin/edit_db.html index 679f84d1..1fcbe905 100644 --- a/web/templates/admin/edit_db.html +++ b/web/templates/admin/edit_db.html @@ -58,8 +58,8 @@
-
- +
+
diff --git a/web/templates/admin/edit_dns.html b/web/templates/admin/edit_dns.html index 0ed60a2a..0c20cc94 100644 --- a/web/templates/admin/edit_dns.html +++ b/web/templates/admin/edit_dns.html @@ -38,8 +38,8 @@
-
- +
+
diff --git a/web/templates/admin/edit_dns_rec.html b/web/templates/admin/edit_dns_rec.html index 77188f8d..a901c8b7 100644 --- a/web/templates/admin/edit_dns_rec.html +++ b/web/templates/admin/edit_dns_rec.html @@ -37,8 +37,8 @@
-
- +
+
diff --git a/web/templates/admin/edit_firewall.html b/web/templates/admin/edit_firewall.html index c0323987..3d025188 100644 --- a/web/templates/admin/edit_firewall.html +++ b/web/templates/admin/edit_firewall.html @@ -48,8 +48,8 @@
-
- +
+
diff --git a/web/templates/admin/edit_ip.html b/web/templates/admin/edit_ip.html index dcd9d050..26a88a74 100644 --- a/web/templates/admin/edit_ip.html +++ b/web/templates/admin/edit_ip.html @@ -48,8 +48,8 @@
-
- +
+
diff --git a/web/templates/admin/edit_mail.html b/web/templates/admin/edit_mail.html index 8e3b911f..85d51440 100644 --- a/web/templates/admin/edit_mail.html +++ b/web/templates/admin/edit_mail.html @@ -37,8 +37,8 @@
-
- +
+
diff --git a/web/templates/admin/edit_mail_acc.html b/web/templates/admin/edit_mail_acc.html index c2f088c5..7b2507f9 100644 --- a/web/templates/admin/edit_mail_acc.html +++ b/web/templates/admin/edit_mail_acc.html @@ -58,8 +58,8 @@
-
- +
+
diff --git a/web/templates/admin/edit_package.html b/web/templates/admin/edit_package.html index cb35a9ac..6377a0b1 100644 --- a/web/templates/admin/edit_package.html +++ b/web/templates/admin/edit_package.html @@ -37,8 +37,8 @@
-
- +
+
diff --git a/web/templates/admin/edit_user.html b/web/templates/admin/edit_user.html index 27fad589..b382f474 100644 --- a/web/templates/admin/edit_user.html +++ b/web/templates/admin/edit_user.html @@ -49,8 +49,8 @@
-
- +
+
diff --git a/web/templates/admin/edit_web.html b/web/templates/admin/edit_web.html index 7a293393..76655b37 100644 --- a/web/templates/admin/edit_web.html +++ b/web/templates/admin/edit_web.html @@ -71,8 +71,8 @@
-
- +
+
diff --git a/web/templates/admin/list_backup.html b/web/templates/admin/list_backup.html index 50185c99..13a6e9ed 100644 --- a/web/templates/admin/list_backup.html +++ b/web/templates/admin/list_backup.html @@ -97,7 +97,7 @@
- +
diff --git a/web/templates/admin/list_cron.html b/web/templates/admin/list_cron.html index a4ce01b6..5ca43c9c 100644 --- a/web/templates/admin/list_cron.html +++ b/web/templates/admin/list_cron.html @@ -114,7 +114,7 @@
- +
diff --git a/web/templates/admin/list_db.html b/web/templates/admin/list_db.html index c8bb3839..030085be 100644 --- a/web/templates/admin/list_db.html +++ b/web/templates/admin/list_db.html @@ -139,7 +139,7 @@
- +
diff --git a/web/templates/admin/list_dns.html b/web/templates/admin/list_dns.html index 03d0b239..259b14bc 100644 --- a/web/templates/admin/list_dns.html +++ b/web/templates/admin/list_dns.html @@ -100,7 +100,7 @@
- +
@@ -145,7 +145,7 @@
:
- +
diff --git a/web/templates/admin/list_ip.html b/web/templates/admin/list_ip.html index 6f140623..44af79aa 100644 --- a/web/templates/admin/list_ip.html +++ b/web/templates/admin/list_ip.html @@ -83,7 +83,7 @@
- +
diff --git a/web/templates/admin/list_log.html b/web/templates/admin/list_log.html index 38acb059..d0673da3 100644 --- a/web/templates/admin/list_log.html +++ b/web/templates/admin/list_log.html @@ -47,7 +47,7 @@
- +
diff --git a/web/templates/admin/list_mail.html b/web/templates/admin/list_mail.html index 76a2f6e4..94bb2c41 100644 --- a/web/templates/admin/list_mail.html +++ b/web/templates/admin/list_mail.html @@ -121,7 +121,7 @@
- +
diff --git a/web/templates/admin/list_mail_acc.html b/web/templates/admin/list_mail_acc.html index c739c9de..df25e625 100644 --- a/web/templates/admin/list_mail_acc.html +++ b/web/templates/admin/list_mail_acc.html @@ -118,7 +118,7 @@
- +
diff --git a/web/templates/admin/list_packages.html b/web/templates/admin/list_packages.html index a5d800c1..4f6fdf5e 100644 --- a/web/templates/admin/list_packages.html +++ b/web/templates/admin/list_packages.html @@ -81,7 +81,7 @@
- +
diff --git a/web/templates/admin/list_rrd.html b/web/templates/admin/list_rrd.html index a4fd0e53..81cf8637 100644 --- a/web/templates/admin/list_rrd.html +++ b/web/templates/admin/list_rrd.html @@ -82,7 +82,7 @@
- +
diff --git a/web/templates/admin/list_search.html b/web/templates/admin/list_search.html index f9dfb580..08e17044 100644 --- a/web/templates/admin/list_search.html +++ b/web/templates/admin/list_search.html @@ -193,7 +193,7 @@
- +
diff --git a/web/templates/admin/list_stats.html b/web/templates/admin/list_stats.html index 32462c63..f0ee1d23 100644 --- a/web/templates/admin/list_stats.html +++ b/web/templates/admin/list_stats.html @@ -72,13 +72,13 @@
- +
- +
diff --git a/web/templates/admin/list_user.html b/web/templates/admin/list_user.html index 59b8e8ba..3d849a24 100644 --- a/web/templates/admin/list_user.html +++ b/web/templates/admin/list_user.html @@ -140,7 +140,7 @@
- +
diff --git a/web/templates/admin/list_web.html b/web/templates/admin/list_web.html index 5d8befa4..dc8f3764 100644 --- a/web/templates/admin/list_web.html +++ b/web/templates/admin/list_web.html @@ -158,7 +158,7 @@
- +
diff --git a/web/templates/user/edit_dns.html b/web/templates/user/edit_dns.html index 1a547d99..3466228e 100644 --- a/web/templates/user/edit_dns.html +++ b/web/templates/user/edit_dns.html @@ -37,8 +37,8 @@
-
- +
+
diff --git a/web/templates/user/edit_user.html b/web/templates/user/edit_user.html index 9f9038ac..aff17cab 100644 --- a/web/templates/user/edit_user.html +++ b/web/templates/user/edit_user.html @@ -49,8 +49,8 @@
-
- +
+
diff --git a/web/templates/user/edit_web.html b/web/templates/user/edit_web.html index 0fc65baf..484d0c61 100644 --- a/web/templates/user/edit_web.html +++ b/web/templates/user/edit_web.html @@ -71,8 +71,8 @@
-
- +
+
diff --git a/web/templates/user/list_cron.html b/web/templates/user/list_cron.html index 7565d80b..6f7fd9dc 100644 --- a/web/templates/user/list_cron.html +++ b/web/templates/user/list_cron.html @@ -114,7 +114,7 @@
- +
diff --git a/web/templates/user/list_db.html b/web/templates/user/list_db.html index e5ecd333..1901a2d4 100644 --- a/web/templates/user/list_db.html +++ b/web/templates/user/list_db.html @@ -140,7 +140,7 @@
- +
diff --git a/web/templates/user/list_dns.html b/web/templates/user/list_dns.html index 7d7350d4..e759970e 100644 --- a/web/templates/user/list_dns.html +++ b/web/templates/user/list_dns.html @@ -100,7 +100,7 @@
- +
@@ -145,7 +145,7 @@
:
- +
diff --git a/web/templates/user/list_mail.html b/web/templates/user/list_mail.html index 58e48a97..fc5b037b 100644 --- a/web/templates/user/list_mail.html +++ b/web/templates/user/list_mail.html @@ -121,7 +121,7 @@
- +
diff --git a/web/templates/user/list_mail_acc.html b/web/templates/user/list_mail_acc.html index 817b2405..cf1b23c5 100644 --- a/web/templates/user/list_mail_acc.html +++ b/web/templates/user/list_mail_acc.html @@ -117,7 +117,7 @@
- +
diff --git a/web/templates/user/list_search.html b/web/templates/user/list_search.html index b60ea695..59495fd8 100644 --- a/web/templates/user/list_search.html +++ b/web/templates/user/list_search.html @@ -193,7 +193,7 @@
- +
diff --git a/web/templates/user/list_stats.html b/web/templates/user/list_stats.html index eb99dcb0..fe5b92a2 100644 --- a/web/templates/user/list_stats.html +++ b/web/templates/user/list_stats.html @@ -72,13 +72,13 @@
- +
- +
diff --git a/web/templates/user/list_user.html b/web/templates/user/list_user.html index e12c3f0a..5dd9887f 100644 --- a/web/templates/user/list_user.html +++ b/web/templates/user/list_user.html @@ -140,7 +140,7 @@
- +
diff --git a/web/templates/user/list_web.html b/web/templates/user/list_web.html index c200f7da..e0fcd246 100644 --- a/web/templates/user/list_web.html +++ b/web/templates/user/list_web.html @@ -159,7 +159,7 @@
- +
-
- +
+