From ef79367d304516dfe9fa2a9e8bafe24a6f7a56e9 Mon Sep 17 00:00:00 2001 From: Evgeniy Zatsepin <7dizzy7@gmail.com> Date: Mon, 29 Feb 2016 16:16:25 +0300 Subject: [PATCH] Fix russian translation --- src/Coduo/PHPHumanizer/Resources/translations/difference.ru.yml | 2 +- tests/Coduo/PHPHumanizer/Tests/DateTimeHumanizerTest.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Coduo/PHPHumanizer/Resources/translations/difference.ru.yml b/src/Coduo/PHPHumanizer/Resources/translations/difference.ru.yml index ca33639..ecbcaec 100644 --- a/src/Coduo/PHPHumanizer/Resources/translations/difference.ru.yml +++ b/src/Coduo/PHPHumanizer/Resources/translations/difference.ru.yml @@ -8,7 +8,7 @@ minute: past: "%count% минуту назад|%count% минуты назад|%count% минут назад" future: "через %count% минуту|через %count% минуты|через %count% минут" hour: - past: "%count% час назад|через %count% часа|%count% часов назад" + past: "%count% час назад|%count% часа назад|%count% часов назад" future: "через %count% час|через %count% часа|через %count% часов" day: past: "%count% день назад|%count% дня назад|%count% дней назад" diff --git a/tests/Coduo/PHPHumanizer/Tests/DateTimeHumanizerTest.php b/tests/Coduo/PHPHumanizer/Tests/DateTimeHumanizerTest.php index b66d834..3c163fd 100644 --- a/tests/Coduo/PHPHumanizer/Tests/DateTimeHumanizerTest.php +++ b/tests/Coduo/PHPHumanizer/Tests/DateTimeHumanizerTest.php @@ -127,6 +127,7 @@ public function humanizeDataProvider() array("2014-04-26 13:00:00", "2014-04-26 14:00:00", 'через 1 час', 'ru'), array("2014-04-26 13:00:00", "2014-04-26 15:00:00", 'через 2 часа', 'ru'), array("2014-04-26 13:00:00", "2014-04-26 12:00:00", '1 час назад', 'ru'), + array("2014-04-26 14:00:00", "2014-04-26 12:00:00", '2 часа назад', 'ru'), array("2014-04-26", "2014-04-25", '1 день назад', 'ru'), array("2014-04-26", "2014-04-24", '2 дня назад', 'ru'), array("2014-04-26", "2014-04-28", 'через 2 дня', 'ru'),