[gnome-logs] Make comments to be seen by translators
- From: Jonathan Kang <jonathankang src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-logs] Make comments to be seen by translators
- Date: Thu, 24 Mar 2016 12:16:06 +0000 (UTC)
commit 37ac90243b3cadf518805c3c034ced3beaf4ecaf
Author: Ovidiu Dancila <ovidiu dancila gmail com>
Date: Thu Mar 24 20:13:24 2016 +0800
Make comments to be seen by translators
The problem is that there are comments for translators which are two
lines above the gettext call _("...") and these will not be seen by
translators.
To fix this rearrange lines in order to place the commentaries right
after the parameter. Also keep the coding style by indenting the
comments and having no more than 79 characters on a line.
https://bugzilla.gnome.org/show_bug.cgi?id=763572
src/gl-util.c | 32 ++++++++++++++++----------------
1 files changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/src/gl-util.c b/src/gl-util.c
index d21fefc..27eba60 100644
--- a/src/gl-util.c
+++ b/src/gl-util.c
@@ -158,11 +158,11 @@ gl_util_timestamp_to_display (guint64 microsecs,
case GL_UTIL_TIMESTAMPS_SAME_YEAR:
if (show_second)
{
- /* Translators: timestamp format for events in the
- * current year, showing the abbreviated month name,
- * day of the month and the time with seconds in
- * 12-hour format. */
time = g_date_time_format (local,
+ /* Translators: timestamp format for events in
+ * the current year, showing the abbreviated
+ * month name, day of the month and the time
+ * with seconds in 12-hour format. */
_("%b %e %l:%M:%S %p"));
}
else
@@ -177,20 +177,20 @@ gl_util_timestamp_to_display (guint64 microsecs,
case GL_UTIL_TIMESTAMPS_DIFFERENT_YEAR:
if (show_second)
{
- /* Translators: timestamp format for events in a
- * different year, showing the abbreviated month name,
- * day of the month, year and the time with seconds
- * in 12-hour format. */
time = g_date_time_format (local,
+ /* Translators: timestamp format for events in
+ * a different year, showing the abbreviated
+ * month name, day of the month, year and the
+ * time with seconds in 12-hour format. */
_("%b %e %Y %l:%M:%S %p"));
}
else
{
- /* Translators: timestamp format for events in a
- * different year, showing the abbreviated month name,
- * day of the month, year and the time without seconds
- * in 12-hour format. */
time = g_date_time_format (local,
+ /* Translators: timestamp format for events in
+ * a different year, showing the abbreviated
+ * month name day of the month, year and the
+ * time without seconds in 12-hour format. */
_("%b %e %Y %l:%M %p"));
}
break;
@@ -239,11 +239,11 @@ gl_util_timestamp_to_display (guint64 microsecs,
case GL_UTIL_TIMESTAMPS_DIFFERENT_YEAR:
if (show_second)
{
- /* Translators: timestamp format for events in a
- * different year, showing the abbreviated month name,
- * day of the month, year and the time with seconds
- * in 24-hour format. */
time = g_date_time_format (local,
+ /* Translators: timestamp format for events in
+ * a different year, showing the abbreviated
+ * month name, day of the month, year and the
+ * time with seconds in 24-hour format. */
_("%b %e %Y %H:%M:%S"));
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]