From d8b65fadd3e242a7a0409c392609d1764df93b00 Mon Sep 17 00:00:00 2001 From: JeronyMo Date: Mon, 8 Jan 2024 13:20:18 +0100 Subject: [PATCH 1/2] Czech and Slovak added (#133) --- .../Resources/translations/difference.cs.yml | 35 +++++++++++++++++++ .../Resources/translations/difference.sk.yml | 35 +++++++++++++++++++ .../Resources/translations/oxford.cs.yml | 3 ++ .../Resources/translations/oxford.sk.yml | 3 ++ 4 files changed, 76 insertions(+) create mode 100644 src/Coduo/PHPHumanizer/Resources/translations/difference.cs.yml create mode 100644 src/Coduo/PHPHumanizer/Resources/translations/difference.sk.yml create mode 100644 src/Coduo/PHPHumanizer/Resources/translations/oxford.cs.yml create mode 100644 src/Coduo/PHPHumanizer/Resources/translations/oxford.sk.yml diff --git a/src/Coduo/PHPHumanizer/Resources/translations/difference.cs.yml b/src/Coduo/PHPHumanizer/Resources/translations/difference.cs.yml new file mode 100644 index 0000000..8c95565 --- /dev/null +++ b/src/Coduo/PHPHumanizer/Resources/translations/difference.cs.yml @@ -0,0 +1,35 @@ +just_now: + past: "[0,Inf] právě teď" + future: "[0,Inf] právě teď" +second: + past: "{1} před vteřinou|[2, 4] před %count% vteřinami|[5,Inf] před %count% vteřinami" + future: "{1} za vteřinu|[2, 4] za %count% vteřiny|[5,Inf] za %count% vteřin" +minute: + past: "{1} před minutou|[2, Inf] před %count% minutami" + future: "{1} za minutu|[2, 4] za %count% minuty|[5,Inf] za %count% minut" +hour: + past: "{1} před hodinou|[2, Inf] před %count% hodinami" + future: "{1} za hodinu|[2, 4] za %count% hodiny|[5,Inf] za %count% hodin" +day: + past: "{1} včera|[2, Inf] před %count% dny" + future: "{1} zítra|[2, 4] za %count% dny|[5,Inf] za %count% dní" +week: + past: "{1} minulý týden|[2, Inf] před %count% týdny" + future: "{1} za týden|[2, 4] za %count% týdny|[5,Inf] za %count% týdnů" +month: + past: "{1} minulý měsíc|[2, Inf] před %count% měsíci" + future: "{1} za měsíc|[2, 4] za %count% měsíce|[5,Inf] za %count% měsíců" +year: + past: "{1} minulý rok|[2, Inf] před %count% lety" + future: "{1} za rok|[2, 4] za %count% roky|[5,Inf] za %count% let" + +compound: + second: "{1} %count% vteřina |[2,4] %count% vteřiny|[5,Inf] %count% vteřin" + minute: "{1} %count% minuta|[2,4] %count% minuty|[5,Inf] %count% minut" + hour: "{1} %count% hodina|[2,4] %count% hodiny|[5,Inf] %count% hodin" + day: "{1} %count% den |[2,4] %count% dny|[5,Inf] %count% dní" + week: "{1} %count% týden|[2,4] %count% týdny|[5,Inf] %count% týdnů" + month: "{1} %count% měsíc|[2,4] %count% měsíce|[5,Inf] %count% měsíců" + year: "{1} %count% rok|[2,4] %count% roky|[5,Inf] %count% let" + past: "před %value% " + future: "%value% odteď" \ No newline at end of file diff --git a/src/Coduo/PHPHumanizer/Resources/translations/difference.sk.yml b/src/Coduo/PHPHumanizer/Resources/translations/difference.sk.yml new file mode 100644 index 0000000..f9a7591 --- /dev/null +++ b/src/Coduo/PHPHumanizer/Resources/translations/difference.sk.yml @@ -0,0 +1,35 @@ +just_now: + past: "[0,Inf] práve teraz" + future: "[0,Inf] práve teraz" +second: + past: "{1} pred sekundou|[2, 4] pred %count% sekundami|[5,Inf] pred %count% sekundami" + future: "{1} o sekundu|[2, 4] o %count% sekundy|[5,Inf] o %count% sekúnd" +minute: + past: "{1} pred minútou|[2, Inf] pred %count% minútami" + future: "{1} o minútu|[2, 4] o %count% minúty|[5,Inf] o %count% minút" +hour: + past: "{1} pred hodinou|[2, Inf] pred %count% hodinami" + future: "{1} o hodinu|[2, 4] o %count% hodiny|[5,Inf] o %count% hodín" +day: + past: "{1} včera|[2, Inf] pred %count% dňami" + future: "{1} zajtra|[2, 4] o %count% dni|[5,Inf] o %count% dní" +week: + past: "{1} minulý týždeň|[2, Inf] pred %count% týždňami" + future: "{1} o týždeň|[2, 4] o %count% týždne|[5,Inf] o %count% týždňov" +month: + past: "{1} minulý mesiac|[2, Inf] pred %count% mesiacmi" + future: "{1} o mesiac|[2, 4] o %count% mesiace|[5,Inf] o %count% mesiacov" +year: + past: "{1} minulý rok|[2, Inf] pred %count% rokmi" + future: "{1} za rok|[2, 4] o %count% roky|[5,Inf] o %count% rokov" + +compound: + second: "{1} %count% sekunda|[2,4] %count% sekundy|[5,Inf] %count% sekúnd" + minute: "{1} %count% minúta|[2,4] %count% minúty|[5,Inf] %count% minút" + hour: "{1} %count% hodina|[2,4] %count% hodiny|[5,Inf] %count% hodín" + day: "{1} %count% deň|[2,4] %count% dni|[5,Inf] %count% dní" + week: "{1} %count% týždeň|[2,4] %count% týždne|[5,Inf] %count% týždňov" + month: "{1} %count% mesiac|[2,4] %count% mesiace|[5,Inf] %count% mesiacov" + year: "{1} %count% rok|[2,4] %count% roky|[5,Inf] %count% rokov" + past: "%value% dozadu" + future: "%value% od teraz" \ No newline at end of file diff --git a/src/Coduo/PHPHumanizer/Resources/translations/oxford.cs.yml b/src/Coduo/PHPHumanizer/Resources/translations/oxford.cs.yml new file mode 100644 index 0000000..2075228 --- /dev/null +++ b/src/Coduo/PHPHumanizer/Resources/translations/oxford.cs.yml @@ -0,0 +1,3 @@ +only_two: "%first% a %second%" +comma_separated: "%list%, a %last%" +comma_separated_with_limit: "[1,4] %list%, a %count% další|[5,Inf] %list%, a %count% dalších" \ No newline at end of file diff --git a/src/Coduo/PHPHumanizer/Resources/translations/oxford.sk.yml b/src/Coduo/PHPHumanizer/Resources/translations/oxford.sk.yml new file mode 100644 index 0000000..d47f17b --- /dev/null +++ b/src/Coduo/PHPHumanizer/Resources/translations/oxford.sk.yml @@ -0,0 +1,3 @@ +only_two: "%first% a %second%" +comma_separated: "%list%, a %last%" +comma_separated_with_limit: "[1,4] %list%, a %count% ďalší|[5,Inf] %list%, a %count% ďalších" \ No newline at end of file From 3b63d9b290581ffd1d0d73d8b360ed268e1ee11a Mon Sep 17 00:00:00 2001 From: aeon-automation Date: Mon, 8 Jan 2024 12:20:39 +0000 Subject: [PATCH 2/2] Updated CHANGELOG.md --- CHANGELOG.md | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index daa876d..908dddd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,8 @@ -## [Unreleased] - 2022-11-30 +## [Unreleased] - 2024-01-08 + +### Added +- [#133](https://github.com/coduo/php-humanizer/pull/133) - **Slovak translation added for Oxford and Datetime** - [@jerony-mo](https://github.com/jerony-mo) +- [#133](https://github.com/coduo/php-humanizer/pull/133) - **Czech translation added for Oxford and Datetime** - [@jerony-mo](https://github.com/jerony-mo) ### Changed - [#131](https://github.com/coduo/php-humanizer/pull/131) - **Using the assertSame to make assert equals restricted.** - [@peter279k](https://github.com/peter279k) @@ -316,4 +320,54 @@ - [#7](https://github.com/coduo/php-humanizer/pull/7) - **precise date calculations** - [@defrag](https://github.com/defrag) - [#2](https://github.com/coduo/php-humanizer/pull/2) - **typos** - [@pborreli](https://github.com/pborreli) +## Contributors + +- @4t87ux8 +- @a-ungurianu +- @arrowrowe +- @Borales +- @brianwozeniak +- @cnkt +- @dagaa +- @ddmler +- @dedik +- @defrag +- @dizzy7 +- @doenietzomoeilijk +- @drgomesp +- @Forst +- @Gnomino +- @hjason2042@gmail.com +- @hyperpanic +- @IgorDePaula +- @isnani +- @jebog +- @jerony-mo +- @jfcherng +- @lightglitch +- @lpopov +- @martinbutt +- @mattallty +- @mostertb +- @naprirfan +- @norberttech +- @norzechowicz +- @NoUseFreak +- @nwatth +- @omissis +- @orestes +- @Ozmodiar +- @pborreli +- @percymamedy +- @peter279k +- @sam002 +- @sarelvdwalt +- @serima +- @smeeckaert +- @tbreuss +- @Th3Mouk +- @thunderer +- @vinicius73 +- @vinkla + Generated by [Automation](https://github.com/aeon-php/automation) \ No newline at end of file