Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Changed één to 1 for dutch language #347

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions release_notes.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
12 changes: 6 additions & 6 deletions src/Humanizer.Tests/Localisation/nl/DateHumanizeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,40 +19,40 @@ 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);
}

[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);
}

[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);
}

[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);
}

[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);
Expand Down
12 changes: 6 additions & 6 deletions src/Humanizer.Tests/Localisation/nl/TimeSpanHumanizeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]
Expand All @@ -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]
Expand All @@ -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]
Expand All @@ -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]
Expand All @@ -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]
Expand Down
22 changes: 11 additions & 11 deletions src/Humanizer/Properties/Resources.nl.resx
Original file line number Diff line number Diff line change
Expand Up @@ -118,19 +118,19 @@
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="DateHumanize_SingleSecondAgo" xml:space="preserve">
<value>één seconde geleden</value>
<value>1 seconde geleden</value>
</data>
<data name="DateHumanize_MultipleSecondsAgo" xml:space="preserve">
<value>{0} seconden geleden</value>
</data>
<data name="DateHumanize_SingleMinuteAgo" xml:space="preserve">
<value>één minuut geleden</value>
<value>1 minuut geleden</value>
</data>
<data name="DateHumanize_MultipleMinutesAgo" xml:space="preserve">
<value>{0} minuten geleden</value>
</data>
<data name="DateHumanize_SingleHourAgo" xml:space="preserve">
<value>één uur geleden</value>
<value>1 uur geleden</value>
</data>
<data name="DateHumanize_MultipleHoursAgo" xml:space="preserve">
<value>{0} uur geleden</value>
Expand All @@ -142,13 +142,13 @@
<value>{0} dagen geleden</value>
</data>
<data name="DateHumanize_SingleMonthAgo" xml:space="preserve">
<value>één maand geleden</value>
<value>1 maand geleden</value>
</data>
<data name="DateHumanize_MultipleMonthsAgo" xml:space="preserve">
<value>{0} maanden geleden</value>
</data>
<data name="DateHumanize_SingleYearAgo" xml:space="preserve">
<value>één jaar geleden</value>
<value>1 jaar geleden</value>
</data>
<data name="DateHumanize_MultipleYearsAgo" xml:space="preserve">
<value>{0} jaar geleden</value>
Expand All @@ -172,22 +172,22 @@
<value>{0} weken</value>
</data>
<data name="TimeSpanHumanize_SingleDay" xml:space="preserve">
<value>één dag</value>
<value>1 dag</value>
</data>
<data name="TimeSpanHumanize_SingleHour" xml:space="preserve">
<value>één uur</value>
<value>1 uur</value>
</data>
<data name="TimeSpanHumanize_SingleMillisecond" xml:space="preserve">
<value>één milliseconde</value>
<value>1 milliseconde</value>
</data>
<data name="TimeSpanHumanize_SingleMinute" xml:space="preserve">
<value>één minuut</value>
<value>1 minuut</value>
</data>
<data name="TimeSpanHumanize_SingleSecond" xml:space="preserve">
<value>één seconde</value>
<value>1 seconde</value>
</data>
<data name="TimeSpanHumanize_SingleWeek" xml:space="preserve">
<value>één week</value>
<value>1 week</value>
</data>
<data name="TimeSpanHumanize_Zero" xml:space="preserve">
<value>geen tijd</value>
Expand Down