aboutsummaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2003-03-21 01:09:47 +0800
committerDan Winship <danw@src.gnome.org>2003-03-21 01:09:47 +0800
commitd8dbc151f073eb94e320ca4ba3f19594b3b96e76 (patch)
treea78c5aa9bd9523c4869f32fa614b0b1e7a32d604 /filter
parent98063be89799089efa1249f2c1ffc7f85423b28a (diff)
downloadgsoc2013-evolution-d8dbc151f073eb94e320ca4ba3f19594b3b96e76.tar
gsoc2013-evolution-d8dbc151f073eb94e320ca4ba3f19594b3b96e76.tar.gz
gsoc2013-evolution-d8dbc151f073eb94e320ca4ba3f19594b3b96e76.tar.bz2
gsoc2013-evolution-d8dbc151f073eb94e320ca4ba3f19594b3b96e76.tar.lz
gsoc2013-evolution-d8dbc151f073eb94e320ca4ba3f19594b3b96e76.tar.xz
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')
-rw-r--r--filter/ChangeLog8
-rw-r--r--filter/filter-datespec.c18
2 files changed, 17 insertions, 9 deletions
diff --git a/filter/ChangeLog b/filter/ChangeLog
index 331b5cc86a..ce62a5f5cd 100644
--- a/filter/ChangeLog
+++ b/filter/ChangeLog
@@ -1,3 +1,11 @@
+2003-03-20 Dan Winship <danw@ximian.com>
+
+ * 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").
+
2003-03-20 Jeffrey Stedfast <fejj@ximian.com>
* rule-editor.c (rule_editor_set_sensitive): Don't return here -
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;
}