Skip to content

Commit 4f83a62

Browse files
dizzy7norberttech
authored andcommitted
Fix russian translation (#80)
1 parent e85d690 commit 4f83a62

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/Coduo/PHPHumanizer/Resources/translations/difference.ru.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ minute:
88
past: "%count% минуту назад|%count% минуты назад|%count% минут назад"
99
future: "через %count% минуту|через %count% минуты|через %count% минут"
1010
hour:
11-
past: "%count% час назад|через %count% часа|%count% часов назад"
11+
past: "%count% час назад|%count% часа назад|%count% часов назад"
1212
future: "через %count% час|через %count% часа|через %count% часов"
1313
day:
1414
past: "%count% день назад|%count% дня назад|%count% дней назад"

tests/Coduo/PHPHumanizer/Tests/DateTimeHumanizerTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ public function humanizeDataProvider()
127127
array("2014-04-26 13:00:00", "2014-04-26 14:00:00", 'через 1 час', 'ru'),
128128
array("2014-04-26 13:00:00", "2014-04-26 15:00:00", 'через 2 часа', 'ru'),
129129
array("2014-04-26 13:00:00", "2014-04-26 12:00:00", '1 час назад', 'ru'),
130+
array("2014-04-26 14:00:00", "2014-04-26 12:00:00", '2 часа назад', 'ru'),
130131
array("2014-04-26", "2014-04-25", '1 день назад', 'ru'),
131132
array("2014-04-26", "2014-04-24", '2 дня назад', 'ru'),
132133
array("2014-04-26", "2014-04-28", 'через 2 дня', 'ru'),

0 commit comments

Comments
 (0)