Fix one string and remove a duplicate check

This commit is contained in:
Łukasz Jernaś 2010-06-21 16:42:17 +02:00
parent 17c9ba613b
commit c1c81037d4

View file

@ -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);