From dbae0cfc86c4dd605fcf8d008f925f2166d10886 Mon Sep 17 00:00:00 2001 From: dotnetjunky Date: Sun, 18 May 2014 13:32:52 -0700 Subject: [PATCH 1/4] Add resource file for Vietnamese language. --- src/Humanizer/Humanizer.csproj | 9 + src/Humanizer/Properties/Resources.vi.resx | 234 +++++++++++++++++++++ 2 files changed, 243 insertions(+) create mode 100644 src/Humanizer/Properties/Resources.vi.resx diff --git a/src/Humanizer/Humanizer.csproj b/src/Humanizer/Humanizer.csproj index bfb39f502..d227cd4c7 100644 --- a/src/Humanizer/Humanizer.csproj +++ b/src/Humanizer/Humanizer.csproj @@ -91,6 +91,11 @@ + + True + True + Resources.vi.resx + True @@ -191,6 +196,10 @@ + + ResXFileCodeGenerator + Resources.vi.Designer.cs + diff --git a/src/Humanizer/Properties/Resources.vi.resx b/src/Humanizer/Properties/Resources.vi.resx new file mode 100644 index 000000000..b0d66dd56 --- /dev/null +++ b/src/Humanizer/Properties/Resources.vi.resx @@ -0,0 +1,234 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + cách đây một giây + + + cách đây {0} giây + + + cách đây một phút + + + cách đây {0} phút + + + cách đây một giờ + + + cách đây {0} giờ + + + hôm qua + + + cách đây {0} ngày + + + cách đây một tháng + + + cách đây {0} tháng + + + cách đây một năm + + + cách đây {0} năm + + + {0} ngày + + + {0} giờ + + + {0} phần ngàn giây + + + {0} phút + + + {0} giây + + + 1 ngày + + + 1 giờ + + + 1 phần ngàn giây + + + 1 phút + + + 1 giây + + + không giờ + + + {0} tuần + + + 1 tuần + + + {0} ngày nữa + + + {0} giờ nữa + + + {0} phút nữa + + + {0} tháng nữa + + + {0} giây nữa + + + {0} năm nữa + + + bây giờ + + + ngày mai + + + một tiếng nữa + + + một phút nữa + + + một tháng nữa + + + một giây nữa + + + một năm nữa + + \ No newline at end of file From f661aecaf3a2a2ff102c6a9dd693a15ea89c8d32 Mon Sep 17 00:00:00 2001 From: dotnetjunky Date: Mon, 19 May 2014 12:55:55 -0700 Subject: [PATCH 2/4] Remove the unneeded Resources.vi.designer.cs file. --- src/Humanizer/Humanizer.csproj | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/Humanizer/Humanizer.csproj b/src/Humanizer/Humanizer.csproj index d227cd4c7..9f07a6c02 100644 --- a/src/Humanizer/Humanizer.csproj +++ b/src/Humanizer/Humanizer.csproj @@ -91,11 +91,6 @@ - - True - True - Resources.vi.resx - True @@ -196,10 +191,7 @@ - - ResXFileCodeGenerator - Resources.vi.Designer.cs - + @@ -213,4 +205,4 @@ --> - \ No newline at end of file + From a8ff024cb3ad6699b48fa7a4136946d935f20113 Mon Sep 17 00:00:00 2001 From: dotnetjunky Date: Mon, 19 May 2014 21:44:56 -0700 Subject: [PATCH 3/4] Add unit tests for VI language --- src/Humanizer.Tests/Humanizer.Tests.csproj | 3 + .../Localisation/vi/DateHumanizeTests.cs | 107 ++++++++++++++++ .../Localisation/vi/TimeSpanHumanizeTests.cs | 114 ++++++++++++++++++ src/Humanizer/Properties/Resources.vi.resx | 6 +- 4 files changed, 227 insertions(+), 3 deletions(-) create mode 100644 src/Humanizer.Tests/Localisation/vi/DateHumanizeTests.cs create mode 100644 src/Humanizer.Tests/Localisation/vi/TimeSpanHumanizeTests.cs diff --git a/src/Humanizer.Tests/Humanizer.Tests.csproj b/src/Humanizer.Tests/Humanizer.Tests.csproj index 1af33bcef..326f9e612 100644 --- a/src/Humanizer.Tests/Humanizer.Tests.csproj +++ b/src/Humanizer.Tests/Humanizer.Tests.csproj @@ -127,6 +127,8 @@ + + @@ -171,6 +173,7 @@ +