@@ -126,6 +126,12 @@ getDateProximity(GDateTime* now, GDateTime* time)
126 return prox;
126 return prox;
130+dgettext_datetime(const char *text)
132+ return dgettext("indicator-datetime", text);
130 * _ a time yesterday should be shown as (e.g. “Yesterday 3:55 PM”)
136 * _ a time yesterday should be shown as (e.g. “Yesterday 3:55 PM”)
131 * _ a time today should be shown as just the time (e.g. “3:55 PM”)
137 * _ a time today should be shown as just the time (e.g. “3:55 PM”)
@@ -156,14 +162,14 @@ char* generate_full_format_string_at_time (GDateTime* now,
156 This format string is used for showing, on a 12-hour clock, times that happen yesterday.
162 This format string is used for showing, on a 12-hour clock, times that happen yesterday.
157 (\u2003 is a unicode em space which is slightly wider than a normal space.)
163 (\u2003 is a unicode em space which is slightly wider than a normal space.)
158 en_US example: "Yesterday\u2003%l:%M %p" --> "Yesterday 1:00 PM" */
164 en_US example: "Yesterday\u2003%l:%M %p" --> "Yesterday 1:00 PM" */
159− g_string_assign (ret, dgettext("indicator-datetime", "Yesterday\u2003%l:%M %p"));
165+ g_string_assign (ret, dgettext_datetime("Yesterday\u2003%l:%M %p"));
162 case DATE_PROXIMITY_TODAY:
168 case DATE_PROXIMITY_TODAY:
163 /* Translators, please edit/rearrange these strftime(3) tokens to suit your locale!
169 /* Translators, please edit/rearrange these strftime(3) tokens to suit your locale!
164 This format string is used for showing, on a 12-hour clock, times that happened today.
170 This format string is used for showing, on a 12-hour clock, times that happened today.
165 en_US example: "%l:%M %p" --> "1:00 PM" */
171 en_US example: "%l:%M %p" --> "1:00 PM" */
166− g_string_assign (ret, dgettext("indicator-datetime", "%l:%M %p"));
172+ g_string_assign (ret, dgettext_datetime("%l:%M %p"));
169 case DATE_PROXIMITY_TOMORROW:
175 case DATE_PROXIMITY_TOMORROW:
@@ -171,7 +177,7 @@ char* generate_full_format_string_at_time (GDateTime* now,
171 This format string is used for showing, on a 12-hour clock, events/appointments that happen tomorrow.
177 This format string is used for showing, on a 12-hour clock, events/appointments that happen tomorrow.
172 (\u2003 is a unicode em space which is slightly wider than a normal space.)
178 (\u2003 is a unicode em space which is slightly wider than a normal space.)
173 en_US example: "Tomorrow\u2003%l:%M %p" --> "Tomorrow 1:00 PM" */
179 en_US example: "Tomorrow\u2003%l:%M %p" --> "Tomorrow 1:00 PM" */
174− g_string_assign (ret, dgettext("indicator-datetime", "Tomorrow\u2003%l:%M %p"));
180+ g_string_assign (ret, dgettext_datetime("Tomorrow\u2003%l:%M %p"));
177 case DATE_PROXIMITY_LAST_WEEK:
183 case DATE_PROXIMITY_LAST_WEEK:
@@ -180,7 +186,7 @@ char* generate_full_format_string_at_time (GDateTime* now,
180 This format string is used for showing, on a 12-hour clock, times that happened in the last week.
186 This format string is used for showing, on a 12-hour clock, times that happened in the last week.
181 (\u2003 is a unicode em space which is slightly wider than a normal space.)
187 (\u2003 is a unicode em space which is slightly wider than a normal space.)
182 en_US example: "%a\u2003%l:%M %p" --> "Fri 1:00 PM" */
188 en_US example: "%a\u2003%l:%M %p" --> "Fri 1:00 PM" */
183− g_string_assign (ret, dgettext("indicator-datetime", "%a\u2003%l:%M %p"));
189+ g_string_assign (ret, dgettext_datetime("%a\u2003%l:%M %p"));
186 case DATE_PROXIMITY_FAR:
192 case DATE_PROXIMITY_FAR:
@@ -189,7 +195,7 @@ char* generate_full_format_string_at_time (GDateTime* now,
189 (\u2003 is a unicode em space which is slightly wider than a normal space.)
195 (\u2003 is a unicode em space which is slightly wider than a normal space.)
190 en_US example: "%a %d %b\u2003%l:%M %p" --> "Fri Oct 31 1:00 PM"
196 en_US example: "%a %d %b\u2003%l:%M %p" --> "Fri Oct 31 1:00 PM"
191 en_GB example: "%a %b %d\u2003%l:%M %p" --> "Fri 31 Oct 1:00 PM" */
197 en_GB example: "%a %b %d\u2003%l:%M %p" --> "Fri 31 Oct 1:00 PM" */
192− g_string_assign (ret, dgettext("indicator-datetime", "%a %d %b\u2003%l:%M %p"));
198+ g_string_assign (ret, dgettext_datetime("%a %d %b\u2003%l:%M %p"));
@@ -200,14 +206,14 @@ char* generate_full_format_string_at_time (GDateTime* now,
200 This format string is used for showing, on a 24-hour clock, times that happen yesterday.
206 This format string is used for showing, on a 24-hour clock, times that happen yesterday.
201 (\u2003 is a unicode em space which is slightly wider than a normal space.)
207 (\u2003 is a unicode em space which is slightly wider than a normal space.)
202 en_US example: "Yesterday\u2003%l:%M %p" --> "Yesterday 13:00" */
208 en_US example: "Yesterday\u2003%l:%M %p" --> "Yesterday 13:00" */
203− g_string_assign (ret, dgettext("indicator-datetime", "Yesterday\u2003%H:%M"));
209+ g_string_assign (ret, dgettext_datetime("Yesterday\u2003%H:%M"));
206 case DATE_PROXIMITY_TODAY:
212 case DATE_PROXIMITY_TODAY:
207 /* Translators, please edit/rearrange these strftime(3) tokens to suit your locale!
213 /* Translators, please edit/rearrange these strftime(3) tokens to suit your locale!
208 This format string is used for showing, on a 24-hour clock, times that happened today.
214 This format string is used for showing, on a 24-hour clock, times that happened today.
209 en_US example: "%H:%M" --> "13:00" */
215 en_US example: "%H:%M" --> "13:00" */
210− g_string_assign (ret, dgettext("indicator-datetime", "%H:%M"));
216+ g_string_assign (ret, dgettext_datetime("%H:%M"));
213 case DATE_PROXIMITY_TOMORROW:
219 case DATE_PROXIMITY_TOMORROW:
@@ -215,7 +221,7 @@ char* generate_full_format_string_at_time (GDateTime* now,
215 This format string is used for showing, on a 24-hour clock, events/appointments that happen tomorrow.
221 This format string is used for showing, on a 24-hour clock, events/appointments that happen tomorrow.
216 (\u2003 is a unicode em space which is slightly wider than a normal space.)
222 (\u2003 is a unicode em space which is slightly wider than a normal space.)
217 en_US example: "Tomorrow\u2003%l:%M %p" --> "Tomorrow 13:00" */
223 en_US example: "Tomorrow\u2003%l:%M %p" --> "Tomorrow 13:00" */
218− g_string_assign (ret, dgettext("indicator-datetime", "Tomorrow\u2003%H:%M"));
224+ g_string_assign (ret, dgettext_datetime("Tomorrow\u2003%H:%M"));
221 case DATE_PROXIMITY_LAST_WEEK:
227 case DATE_PROXIMITY_LAST_WEEK:
@@ -224,7 +230,7 @@ char* generate_full_format_string_at_time (GDateTime* now,
224 This format string is used for showing, on a 24-hour clock, times that happened in the last week.
230 This format string is used for showing, on a 24-hour clock, times that happened in the last week.
225 (\u2003 is a unicode em space which is slightly wider than a normal space.)
231 (\u2003 is a unicode em space which is slightly wider than a normal space.)
226 en_US example: "%a\u2003%H:%M" --> "Fri 13:00" */
232 en_US example: "%a\u2003%H:%M" --> "Fri 13:00" */
227− g_string_assign (ret, dgettext("indicator-datetime", "%a\u2003%H:%M"));
233+ g_string_assign (ret, dgettext_datetime("%a\u2003%H:%M"));
230 case DATE_PROXIMITY_FAR:
236 case DATE_PROXIMITY_FAR:
@@ -233,7 +239,7 @@ char* generate_full_format_string_at_time (GDateTime* now,
233 (\u2003 is a unicode em space which is slightly wider than a normal space.)
239 (\u2003 is a unicode em space which is slightly wider than a normal space.)
234 en_US example: "%a %d %b\u2003%H:%M" --> "Fri Oct 31 13:00"
240 en_US example: "%a %d %b\u2003%H:%M" --> "Fri Oct 31 13:00"
235 en_GB example: "%a %b %d\u2003%H:%M" --> "Fri 31 Oct 13:00" */
241 en_GB example: "%a %b %d\u2003%H:%M" --> "Fri 31 Oct 13:00" */
236− g_string_assign (ret, dgettext("indicator-datetime", "%a %d %b\u2003%H:%M"));
242+ g_string_assign (ret, dgettext_datetime("%a %d %b\u2003%H:%M"));