Fix one string and remove a duplicate check
This commit is contained in:
parent
17c9ba613b
commit
c1c81037d4
|
@ -168,7 +168,7 @@ namespace SparkleShare {
|
|||
}
|
||||
|
||||
if (time_span <= TimeSpan.FromHours(24)) {
|
||||
return string.Format (Catalog.GetPluralString ("about an hour ago", "about {0} minutes ago",
|
||||
return string.Format (Catalog.GetPluralString ("about an hour ago", "about {0} hours ago",
|
||||
time_span.Hours),
|
||||
time_span.Hours);
|
||||
}
|
||||
|
@ -181,16 +181,10 @@ namespace SparkleShare {
|
|||
|
||||
if (time_span <= TimeSpan.FromDays(365)) {
|
||||
return string.Format (Catalog.GetPluralString ("a month ago", "{0} months ago",
|
||||
time_span.Days),
|
||||
(int) time_span.Days / 30),
|
||||
(int) time_span.Days / 30);
|
||||
}
|
||||
|
||||
if (time_span <= TimeSpan.FromDays(365)) {
|
||||
return string.Format (Catalog.GetPluralString ("a month ago", "{0} months ago",
|
||||
time_span.Days),
|
||||
(int) time_span.Days / 365);
|
||||
}
|
||||
|
||||
return string.Format (Catalog.GetPluralString ("a year ago", "{0} years ago",
|
||||
(int) time_span.Days / 365),
|
||||
(int) time_span.Days / 365);
|
||||
|
|
Loading…
Reference in a new issue