Commit f114cd8b authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

use ngettext for plural forms.

2005-09-13  Sven Neumann  <sven@gimp.org>

	* app/display/gimpdisplayshell-close.c (gimp_time_since): use
	ngettext for plural forms.
parent bfec892e
2005-09-13 Sven Neumann <sven@gimp.org>
* app/display/gimpdisplayshell-close.c (gimp_time_since): use
ngettext for plural forms.
2005-09-13 Sven Neumann <sven@gimp.org> 2005-09-13 Sven Neumann <sven@gimp.org>
* modules/colorsel_cmyk.c: added comments for translators. * modules/colorsel_cmyk.c: added comments for translators.
......
...@@ -274,18 +274,12 @@ gimp_time_since (guint then) ...@@ -274,18 +274,12 @@ gimp_time_since (guint then)
g_return_val_if_fail (now >= then, NULL); g_return_val_if_fail (now >= then, NULL);
if (diff == 1) /* one second, the time period */
/* one second, the time period */
return g_strdup (_("second"));
if (diff < 60) if (diff < 60)
return g_strdup_printf (_("%d seconds"), diff); return g_strdup_printf (ngettext ("second", "%d seconds", diff), diff);
/* round to the nearest minute */ /* round to the nearest minute */
diff = (diff + 30) / 60; diff = (diff + 30) / 60;
if (diff == 1) return g_strdup_printf (ngettext ("minute", "%d minutes", diff), diff);
return g_strdup (_("minute"));
return g_strdup_printf (_("%d minutes"), diff);
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment