gnome-power-manager r3373 - in trunk: . src
- From: rhughes svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-power-manager r3373 - in trunk: . src
- Date: Mon, 23 Mar 2009 14:28:18 +0000 (UTC)
Author: rhughes
Date: Mon Mar 23 14:28:18 2009
New Revision: 3373
URL: http://svn.gnome.org/viewvc/gnome-power-manager?rev=3373&view=rev
Log:
2009-03-23 Richard Hughes <richard hughsie com>
* src/gpm-statistics.c: (gpm_stats_update_info_page_details):
Use ngettext for a 2.26.x era string.
Fixes #576128
Modified:
trunk/ChangeLog
trunk/src/gpm-statistics.c
Modified: trunk/src/gpm-statistics.c
==============================================================================
--- trunk/src/gpm-statistics.c (original)
+++ trunk/src/gpm-statistics.c Mon Mar 23 14:28:18 2009
@@ -320,6 +320,7 @@
time_t t;
gchar time_buf[256];
gchar *text;
+ guint refreshed;
gtk_list_store_clear (list_store_info);
@@ -340,7 +341,8 @@
gpm_stats_add_info_data (_("Serial number"), obj->serial);
gpm_stats_add_info_data (_("Supply"), gpm_stats_bool_to_text (obj->power_supply));
- text = g_strdup_printf (_("%d seconds"), (int) (time (NULL) - obj->update_time));
+ refreshed = (int) (time (NULL) - obj->update_time);
+ text = g_strdup_printf (ngettext ("%d second", "%d seconds", refreshed), refreshed);
gpm_stats_add_info_data (_("Refreshed"), text);
g_free (text);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]