[gnome-power-manager] trivial: give some context in a few translator comments



commit c67a61e187da5d12b4e9578958b3686ac8feb142
Author: Richard Hughes <richard hughsie com>
Date:   Thu Aug 5 12:58:51 2010 +0100

    trivial: give some context in a few translator comments

 src/gpm-statistics.c |   15 ++++++++-------
 src/gpm-upower.c     |   14 ++++++++++----
 2 files changed, 18 insertions(+), 11 deletions(-)
---
diff --git a/src/gpm-statistics.c b/src/gpm-statistics.c
index 1233497..254c99b 100644
--- a/src/gpm-statistics.c
+++ b/src/gpm-statistics.c
@@ -909,7 +909,8 @@ gpm_stats_format_details (UpWakeupItem *item)
 
 	/* try to make the wakeup type nicer */
 	} else if (g_str_has_prefix (data, "__mod_timer")) {
-		/* TRANSLATORS: a timer is something that fires periodically */
+		/* TRANSLATORS: a timer is something that fires periodically.
+		 * The parameter is a process name, e.g. "firefox-bin" */
 		details = g_strdup_printf (_("Timer %s"), data+12);
 	} else if (g_str_has_prefix (data, "mod_timer")) {
 		/* TRANSLATORS: a timer is something that fires periodically */
@@ -927,25 +928,25 @@ gpm_stats_format_details (UpWakeupItem *item)
 		/* TRANSLATORS: this is a task that's woken up from sleeping */
 		details = g_strdup_printf (_("Sleep %s"), data+13);
 	} else if (g_str_has_prefix (data, "enqueue_task_rt")) {
-		/* TRANSLATORS: this is a new realtime task */
+		/* TRANSLATORS: this is the name of a new realtime task */
 		details = g_strdup_printf (_("New task %s"), data+16);
 	} else if (g_str_has_prefix (data, "futex_wait")) {
-		/* TRANSLATORS: this is a task thats woken to check state */
+		/* TRANSLATORS: this is the name of a task thats woken to check state */
 		details = g_strdup_printf (_("Wait %s"), data+11);
 	} else if (g_str_has_prefix (data, "queue_delayed_work_on")) {
-		/* TRANSLATORS: a work queue is a list of work that has to be done */
+		/* TRANSLATORS: this is the name of a work queue is a list of work that has to be done */
 		details = g_strdup_printf (_("Work queue %s"), data+22);
 	} else if (g_str_has_prefix (data, "queue_delayed_work")) {
-		/* TRANSLATORS: a work queue is a list of work that has to be done */
+		/* TRANSLATORS: this is the name of a work queue is a list of work that has to be done */
 		details = g_strdup_printf (_("Work queue %s"), data+19);
 	} else if (g_str_has_prefix (data, "dst_run_gc")) {
 		/* TRANSLATORS: this is when the networking subsystem clears out old entries */
 		details = g_strdup_printf (_("Network route flush %s"), data+11);
 	} else if (g_str_has_prefix (data, "usb_hcd_poll_rh_status")) {
-		/* TRANSLATORS: activity on the USB bus */
+		/* TRANSLATORS: this is the name of activity on the USB bus */
 		details = g_strdup_printf (_("USB activity %s"), data+23);
 	} else if (g_str_has_prefix (data, "schedule_hrtimeout_range")) {
-		/* TRANSLATORS: we've timed out of an aligned timer */
+		/* TRANSLATORS: we've timed out of an aligned timer, with the name */
 		details = g_strdup_printf (_("Wakeup %s"), data+25);
 	} else if (g_str_has_prefix (data, "Local timer interrupts")) {
 		/* TRANSLATORS: interupts on the system required for basic operation */
diff --git a/src/gpm-upower.c b/src/gpm-upower.c
index e31e90d..870cdda 100644
--- a/src/gpm-upower.c
+++ b/src/gpm-upower.c
@@ -276,7 +276,9 @@ gpm_upower_get_device_summary (UpDevice *device)
 
 		if (time_to_empty_round > GPM_UP_TEXT_MIN_TIME) {
 			time_to_empty_str = gpm_get_timestring (time_to_empty_round);
-			/* TRANSLATORS: the device is discharging, and we have a time remaining */
+			/* TRANSLATORS: the device is discharging, and we have a time remaining
+			 * The first parameter is the device type, e.g. "Laptop battery" and
+			 * the second is the time, e.g. 7 hours 6 minutes */
 			g_string_append_printf (description, _("%s %s remaining"),
 						kind_desc, time_to_empty_str);
 			g_string_append_printf (description, " (%.0f%%)", percentage);
@@ -296,13 +298,16 @@ gpm_upower_get_device_summary (UpDevice *device)
 			time_to_full_str = gpm_get_timestring (time_to_full_round);
 			time_to_empty_str = gpm_get_timestring (time_to_empty_round);
 
-			/* TRANSLATORS: device is charging, and we have a time to full and a percentage */
+			/* TRANSLATORS: device is charging, and we have a time to full and a percentage
+			 * The first parameter is the device type, e.g. "Laptop battery" and
+			 * the second is the time, e.g. "7 hours 6 minutes" */
 			g_string_append_printf (description, _("%s %s until charged"),
 						kind_desc, time_to_full_str);
 			g_string_append_printf (description, " (%.0f%%)", percentage);
 
 			g_string_append (description, " - ");
-			/* TRANSLATORS: the device is charging, and we have a time to full and empty */
+			/* TRANSLATORS: the device is charging, and we have a time to full and empty.
+			 * The parameter is a time string, e.g. "7 hours 6 minutes" */
 			g_string_append_printf (description, _("provides %s battery runtime"),
 						time_to_empty_str);
 		} else if (time_to_full_round > GPM_UP_TEXT_MIN_TIME) {
@@ -316,7 +321,8 @@ gpm_upower_get_device_summary (UpDevice *device)
 			g_string_append_printf (description, " (%.0f%%)", percentage);
 		} else {
 
-			/* TRANSLATORS: device is charging, but we only have a percentage */
+			/* TRANSLATORS: device is charging, but we only have a percentage.
+			 * The parameter is a device kind, e.g. "Laptop battery" or "Wireless mouse" */
 			g_string_append_printf (description, _("%s charging"), kind_desc);
 			g_string_append_printf (description, " (%.0f%%)", percentage);
 		}



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]