aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2014-09-08 18:01:00 +0000
committerCI bot <ps-jenkins@lists.canonical.com>2014-09-08 18:01:00 +0000
commite195b00169794b7f6ee3f81dc800908d05384507 (patch)
tree4e2b050b516c9923f9ff6e344d1d7487fb778a3d /src
parentfcb4b9e764c61c51dfe0970a27eef83189d181c8 (diff)
parent1de66cfc8500fd20b07b2725518131818bafb0c5 (diff)
downloadayatana-indicator-datetime-e195b00169794b7f6ee3f81dc800908d05384507.tar.gz
ayatana-indicator-datetime-e195b00169794b7f6ee3f81dc800908d05384507.tar.bz2
ayatana-indicator-datetime-e195b00169794b7f6ee3f81dc800908d05384507.zip
Use unicode characters directly instead of escaping them. Fixes: 1350544
Approved by: Charles Kerr, Sebastien Bacher, PS Jenkins bot
Diffstat (limited to 'src')
-rw-r--r--src/utils.c46
1 files changed, 26 insertions, 20 deletions
diff --git a/src/utils.c b/src/utils.c
index d1c69a2..23c7f7c 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -307,26 +307,29 @@ char* generate_full_format_string_at_time (GDateTime* now,
case DATE_PROXIMITY_TOMORROW:
/* Translators, please edit/rearrange these strftime(3) tokens to suit your locale!
This format string is used for showing, on a 12-hour clock, events/appointments that happen tomorrow.
- (\u2003 is a unicode em space which is slightly wider than a normal space.)
- en_US example: "Tomorrow\u2003%l:%M %p" --> "Tomorrow 1:00 PM" */
- g_string_assign (ret, T_("Tomorrow\u2003%l:%M %p"));
+ (Note: the space between the day and the time is an em space (unicode character 2003), which is
+ slightly wider than a normal space.)
+ en_US example: "Tomorrow %l:%M %p" --> "Tomorrow 1:00 PM" */
+ g_string_assign (ret, T_("Tomorrow %l:%M %p"));
break;
case DATE_PROXIMITY_WEEK:
/* Translators, please edit/rearrange these strftime(3) tokens to suit your locale!
This format string is used for showing, on a 12-hour clock, events/appointments that happen this week.
- (\u2003 is a unicode em space which is slightly wider than a normal space.)
- en_US example: "Tomorrow\u2003%l:%M %p" --> "Fri 1:00 PM" */
- g_string_assign (ret, T_("%a\u2003%l:%M %p"));
+ (Note: the space between the day and the time is an em space (unicode character 2003), which is
+ slightly wider than a normal space.)
+ en_US example: "Tomorrow %l:%M %p" --> "Fri 1:00 PM" */
+ g_string_assign (ret, T_("%a %l:%M %p"));
break;
case DATE_PROXIMITY_FAR:
/* Translators, please edit/rearrange these strftime(3) tokens to suit your locale!
This format string is used for showing, on a 12-hour clock, events/appointments that happen over a week from now.
- (\u2003 is a unicode em space which is slightly wider than a normal space.)
- en_US example: "%a %d %b\u2003%l:%M %p" --> "Fri Oct 31 1:00 PM"
- en_GB example: "%a %b %d\u2003%l:%M %p" --> "Fri 31 Oct 1:00 PM" */
- g_string_assign (ret, T_("%a %d %b\u2003%l:%M %p"));
+ (Note: the space between the day and the time is an em space (unicode character 2003), which is
+ slightly wider than a normal space.)
+ en_US example: "%a %d %b %l:%M %p" --> "Fri Oct 31 1:00 PM"
+ en_GB example: "%a %b %d %l:%M %p" --> "Fri 31 Oct 1:00 PM" */
+ g_string_assign (ret, T_("%a %d %b %l:%M %p"));
break;
}
}
@@ -344,26 +347,29 @@ char* generate_full_format_string_at_time (GDateTime* now,
case DATE_PROXIMITY_TOMORROW:
/* Translators, please edit/rearrange these strftime(3) tokens to suit your locale!
This format string is used for showing, on a 24-hour clock, events/appointments that happen tomorrow.
- (\u2003 is a unicode em space which is slightly wider than a normal space.)
- en_US example: "Tomorrow\u2003%l:%M %p" --> "Tomorrow 13:00" */
- g_string_assign (ret, T_("Tomorrow\u2003%H:%M"));
+ (Note: the space between the day and the time is an em space (unicode character 2003), which is
+ slightly wider than a normal space.)
+ en_US example: "Tomorrow %l:%M %p" --> "Tomorrow 13:00" */
+ g_string_assign (ret, T_("Tomorrow %H:%M"));
break;
case DATE_PROXIMITY_WEEK:
/* Translators, please edit/rearrange these strftime(3) tokens to suit your locale!
This format string is used for showing, on a 24-hour clock, events/appointments that happen this week.
- (\u2003 is a unicode em space which is slightly wider than a normal space.)
- en_US example: "%a\u2003%H:%M" --> "Fri 13:00" */
- g_string_assign (ret, T_("%a\u2003%H:%M"));
+ (Note: the space between the day and the time is an em space (unicode character 2003), which is
+ slightly wider than a normal space.)
+ en_US example: "%a %H:%M" --> "Fri 13:00" */
+ g_string_assign (ret, T_("%a %H:%M"));
break;
case DATE_PROXIMITY_FAR:
/* Translators, please edit/rearrange these strftime(3) tokens to suit your locale!
This format string is used for showing, on a 24-hour clock, events/appointments that happen over a week from now.
- (\u2003 is a unicode em space which is slightly wider than a normal space.)
- en_US example: "%a %d %b\u2003%H:%M" --> "Fri Oct 31 13:00"
- en_GB example: "%a %b %d\u2003%H:%M" --> "Fri 31 Oct 13:00" */
- g_string_assign (ret, T_("%a %d %b\u2003%H:%M"));
+ (Note: the space between the day and the time is an em space (unicode character 2003), which is
+ slightly wider than a normal space.)
+ en_US example: "%a %d %b %H:%M" --> "Fri Oct 31 13:00"
+ en_GB example: "%a %b %d %H:%M" --> "Fri 31 Oct 13:00" */
+ g_string_assign (ret, T_("%a %d %b %H:%M"));
break;
}
}