-
-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
#region License | ||
|
||
// | ||
// Copyright (c) 2011-2012, João Matos Silva <[email protected]> | ||
// Copyright (c) 2011-2012, Jo�o Matos Silva <[email protected]> | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
|
@@ -60,11 +60,11 @@ protected override string Pluralize(string text, int value) | |
// referring to hours | ||
if (text.EndsWith("a")) | ||
{ | ||
return text + "e"; | ||
return text.Remove(text.Length -1, 1) + "e"; | ||
} | ||
|
||
// referring to years, months, days, minutes and seconds | ||
return text + "i"; | ||
return text.Remove(text.Length -1, 1) + "i"; | ||
} | ||
} | ||
} |