diff options
author | Dan Winship <danw@src.gnome.org> | 2003-03-21 01:09:47 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2003-03-21 01:09:47 +0800 |
commit | d8dbc151f073eb94e320ca4ba3f19594b3b96e76 (patch) | |
tree | a78c5aa9bd9523c4869f32fa614b0b1e7a32d604 /filter/filter-datespec.c | |
parent | 98063be89799089efa1249f2c1ffc7f85423b28a (diff) | |
download | gsoc2013-evolution-d8dbc151f073eb94e320ca4ba3f19594b3b96e76.tar.gz gsoc2013-evolution-d8dbc151f073eb94e320ca4ba3f19594b3b96e76.tar.zst gsoc2013-evolution-d8dbc151f073eb94e320ca4ba3f19594b3b96e76.zip |
Change the strings in the timespans array from "second" / "seconds" to "1
* filter-datespec.c (timespans, set_button): Change the strings in
the timespans array from "second" / "seconds" to "1 second ago" /
"%d seconds ago", etc, and update the code in set_button that uses
them. Fixes #36245, translation clash between the "second" here
and the one in the calendar (where it's used as "2nd").
svn path=/trunk/; revision=20432
Diffstat (limited to 'filter/filter-datespec.c')
-rw-r--r-- | filter/filter-datespec.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/filter/filter-datespec.c b/filter/filter-datespec.c index 21435c37be..9c17e11774 100644 --- a/filter/filter-datespec.c +++ b/filter/filter-datespec.c @@ -62,13 +62,13 @@ typedef struct _timespan { } timespan; static const timespan timespans[] = { - { 1, N_("second"), N_("seconds"), 59.0 }, - { 60, N_("minute"), N_("minutes"), 59.0 }, - { 3600, N_("hour"), N_("hours"), 23.0 }, - { 86400, N_("day"), N_("days"), 31.0 }, - { 604800, N_("week"), N_("weeks"), 52.0 }, - { 2419200, N_("month"), N_("months"), 12.0 }, - { 31557600, N_("year"), N_("years"), 1000.0 }, + { 1, N_("1 second ago"), N_("%d seconds ago"), 59.0 }, + { 60, N_("1 minute ago"), N_("%d minutes ago"), 59.0 }, + { 3600, N_("1 hour ago"), N_("%d hours ago"), 23.0 }, + { 86400, N_("1 day ago"), N_("%d days ago"), 31.0 }, + { 604800, N_("1 week ago"), N_("%d weeks ago"), 52.0 }, + { 2419200, N_("1 month ago"), N_("%d months ago"), 12.0 }, + { 31557600, N_("1 year ago"), N_("%d years ago"), 1000.0 }, }; #define DAY_INDEX 3 @@ -295,10 +295,10 @@ set_button (FilterDatespec *fds) if (count == 1) /* 1 (minute|day|...) ago (singular time ago) */ - sprintf(buf, _("%d %s ago"), count, timespans[span].singular); + strcpy(buf, _(timespans[span].singular)); else /* N (minutes|days|...) ago (plural time ago) */ - sprintf(buf, _("%d %s ago"), count, timespans[span].plural); + sprintf(buf, _(timespans[span].plural), count); } break; } |