diff --git a/ChangeLog b/ChangeLog index 59145f6840c74c303d62d42be2ed87ef3fb95256..c529b5e653f1e3bf24ad0e132edf461f0f37833e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-09-13 Sven Neumann + + * app/display/gimpdisplayshell-close.c (gimp_time_since): use + ngettext for plural forms. + 2005-09-13 Sven Neumann * modules/colorsel_cmyk.c: added comments for translators. diff --git a/app/display/gimpdisplayshell-close.c b/app/display/gimpdisplayshell-close.c index e5ac22098ae87babf0e5f80d0ad552fcf1576794..cca3c63a2211ebd3a6bb4bf87618c755c6077e56 100644 --- a/app/display/gimpdisplayshell-close.c +++ b/app/display/gimpdisplayshell-close.c @@ -274,18 +274,12 @@ gimp_time_since (guint then) g_return_val_if_fail (now >= then, NULL); - if (diff == 1) - /* one second, the time period */ - return g_strdup (_("second")); - + /* one second, the time period */ 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 */ diff = (diff + 30) / 60; - if (diff == 1) - return g_strdup (_("minute")); - - return g_strdup_printf (_("%d minutes"), diff); + return g_strdup_printf (ngettext ("minute", "%d minutes", diff), diff); }