[tracker/tracker-0.10] tracker-needle: Fix date strings wrt i18n
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] tracker-needle: Fix date strings wrt i18n
- Date: Thu, 5 May 2011 12:59:26 +0000 (UTC)
commit cf54d7fa3ddaa78746cdc06bdf5f4d6727870ddb
Author: Carlos Garnacho <carlosg gnome org>
Date: Thu Apr 28 16:28:02 2011 +0200
tracker-needle: Fix date strings wrt i18n
Fixes GB#520670 - Timestring not internationalized, reported by
Yang Zhang.
src/tracker-needle/tracker-utils.vala | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/tracker-needle/tracker-utils.vala b/src/tracker-needle/tracker-utils.vala
index 6b8da51..ec7bd94 100644
--- a/src/tracker-needle/tracker-utils.vala
+++ b/src/tracker-needle/tracker-utils.vala
@@ -39,11 +39,12 @@ public string tracker_time_format_from_iso8601 (string s) {
// if it's more than a week, use the default date format
if (diff_days_abs > 7) {
- return t.format ("%x");
+ /* Translators: This is a strftime(3) date format string, read its man page to fit your locale better */
+ return t.format (_("%x"));
}
if (diff_days_abs == 0) {
- return "Today";
+ return _("Today");
} else {
bool future = false;
@@ -52,9 +53,9 @@ public string tracker_time_format_from_iso8601 (string s) {
if (diff_days <= 1) {
if (future)
- return "Tomorrow";
+ return _("Tomorrow");
else
- return "Yesterday";
+ return _("Yesterday");
} else {
if (future) {
/* Translators: %d is replaced with a number of days. It's always greater than 1 */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]