From 2ecc3a0e51fdbc2ead62b636c1c96fec705e152a Mon Sep 17 00:00:00 2001 From: Yustie Date: Wed, 29 Oct 2014 13:53:05 +0100 Subject: [PATCH 1/2] =?UTF-8?q?Changed=20=C3=A9=C3=A9n=20to=201=20for=20du?= =?UTF-8?q?tch=20language?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Localisation/nl/DateHumanizeTests.cs | 12 +++++------ .../Localisation/nl/TimeSpanHumanizeTests.cs | 12 +++++------ src/Humanizer/Properties/Resources.nl.resx | 20 +++++++++---------- 3 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/Humanizer.Tests/Localisation/nl/DateHumanizeTests.cs b/src/Humanizer.Tests/Localisation/nl/DateHumanizeTests.cs index 85e736950..ee33aea1a 100644 --- a/src/Humanizer.Tests/Localisation/nl/DateHumanizeTests.cs +++ b/src/Humanizer.Tests/Localisation/nl/DateHumanizeTests.cs @@ -19,7 +19,7 @@ public void DaysAgo(int days, string expected) [Theory] [InlineData(-2, "2 uur geleden")] - [InlineData(-1, "één uur geleden")] + [InlineData(-1, "1 uur geleden")] public void HoursAgo(int hours, string expected) { DateHumanize.Verify(expected, hours, TimeUnit.Hour, Tense.Past); @@ -27,8 +27,8 @@ public void HoursAgo(int hours, string expected) [Theory] [InlineData(-2, "2 minuten geleden")] - [InlineData(-1, "één minuut geleden")] - [InlineData(60, "één uur geleden")] + [InlineData(-1, "1 minuut geleden")] + [InlineData(60, "1 uur geleden")] public void MinutesAgo(int minutes, string expected) { DateHumanize.Verify(expected, minutes, TimeUnit.Minute, Tense.Past); @@ -36,7 +36,7 @@ public void MinutesAgo(int minutes, string expected) [Theory] [InlineData(-2, "2 maanden geleden")] - [InlineData(-1, "één maand geleden")] + [InlineData(-1, "1 maand geleden")] public void MonthsAgo(int months, string expected) { DateHumanize.Verify(expected, months, TimeUnit.Month, Tense.Past); @@ -44,7 +44,7 @@ public void MonthsAgo(int months, string expected) [Theory] [InlineData(-2, "2 seconden geleden")] - [InlineData(-1, "één seconde geleden")] + [InlineData(-1, "1 seconde geleden")] public void SecondsAgo(int seconds, string expected) { DateHumanize.Verify(expected, seconds, TimeUnit.Second, Tense.Past); @@ -52,7 +52,7 @@ public void SecondsAgo(int seconds, string expected) [Theory] [InlineData(-2, "2 jaar geleden")] - [InlineData(-1, "één jaar geleden")] + [InlineData(-1, "1 jaar geleden")] public void YearsAgo(int years, string expected) { DateHumanize.Verify(expected, years, TimeUnit.Year, Tense.Past); diff --git a/src/Humanizer.Tests/Localisation/nl/TimeSpanHumanizeTests.cs b/src/Humanizer.Tests/Localisation/nl/TimeSpanHumanizeTests.cs index ca2bc2060..e98edd075 100644 --- a/src/Humanizer.Tests/Localisation/nl/TimeSpanHumanizeTests.cs +++ b/src/Humanizer.Tests/Localisation/nl/TimeSpanHumanizeTests.cs @@ -16,7 +16,7 @@ public void TwoWeeks() [Fact] public void OneWeek() { - Assert.Equal("één week", TimeSpan.FromDays(7).Humanize()); + Assert.Equal("1 week", TimeSpan.FromDays(7).Humanize()); } [Fact] @@ -34,7 +34,7 @@ public void TwoDays() [Fact] public void OneDay() { - Assert.Equal("één dag", TimeSpan.FromDays(1).Humanize()); + Assert.Equal("1 dag", TimeSpan.FromDays(1).Humanize()); } [Fact] @@ -46,7 +46,7 @@ public void TwoHours() [Fact] public void OneHour() { - Assert.Equal("één uur", TimeSpan.FromHours(1).Humanize()); + Assert.Equal("1 uur", TimeSpan.FromHours(1).Humanize()); } [Fact] @@ -58,7 +58,7 @@ public void TwoMinutes() [Fact] public void OneMinute() { - Assert.Equal("één minuut", TimeSpan.FromMinutes(1).Humanize()); + Assert.Equal("1 minuut", TimeSpan.FromMinutes(1).Humanize()); } [Fact] @@ -70,7 +70,7 @@ public void TwoSeconds() [Fact] public void OneSecond() { - Assert.Equal("één seconde", TimeSpan.FromSeconds(1).Humanize()); + Assert.Equal("1 seconde", TimeSpan.FromSeconds(1).Humanize()); } [Fact] @@ -82,7 +82,7 @@ public void TwoMilliseconds() [Fact] public void OneMillisecond() { - Assert.Equal("één milliseconde", TimeSpan.FromMilliseconds(1).Humanize()); + Assert.Equal("1 milliseconde", TimeSpan.FromMilliseconds(1).Humanize()); } [Fact] diff --git a/src/Humanizer/Properties/Resources.nl.resx b/src/Humanizer/Properties/Resources.nl.resx index 19701c66a..c4af0e1ba 100644 --- a/src/Humanizer/Properties/Resources.nl.resx +++ b/src/Humanizer/Properties/Resources.nl.resx @@ -118,19 +118,19 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - één seconde geleden + 1 seconde geleden {0} seconden geleden - één minuut geleden + 1 minuut geleden {0} minuten geleden - één uur geleden + 1 uur geleden {0} uur geleden @@ -142,13 +142,13 @@ {0} dagen geleden - één maand geleden + 1 maand geleden {0} maanden geleden - één jaar geleden + 1 jaar geleden {0} jaar geleden @@ -175,19 +175,19 @@ één dag - één uur + 1 uur - één milliseconde + 1 milliseconde - één minuut + 1 minuut - één seconde + 1 seconde - één week + 1 week geen tijd From 4d10ede9abde364255df0fd5af2e657d81b03689 Mon Sep 17 00:00:00 2001 From: Yustie Date: Wed, 5 Nov 2014 15:06:29 +0100 Subject: [PATCH 2/2] =?UTF-8?q?Forgot=20to=20change=20=C3=A9=C3=A9n=20dag?= =?UTF-8?q?=20to=201=20dag?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- release_notes.md | 1 + src/Humanizer/Properties/Resources.nl.resx | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/release_notes.md b/release_notes.md index 37aec2bf1..8d401a33b 100644 --- a/release_notes.md +++ b/release_notes.md @@ -1,4 +1,5 @@ ###In Development + - [#347](https://github.com/MehdiK/Humanizer/pull/347): Changed één to 1 for dutch language. - [#341](https://github.com/MehdiK/Humanizer/pull/341): Added logic to properly treat underscores, dashes and spaces. - [#342](https://github.com/MehdiK/Humanizer/pull/342): Added complete Uzbek localisation diff --git a/src/Humanizer/Properties/Resources.nl.resx b/src/Humanizer/Properties/Resources.nl.resx index c4af0e1ba..04692952e 100644 --- a/src/Humanizer/Properties/Resources.nl.resx +++ b/src/Humanizer/Properties/Resources.nl.resx @@ -172,7 +172,7 @@ {0} weken - één dag + 1 dag 1 uur