[gnome-control-center] Network: Mark speed label as translatable
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] Network: Mark speed label as translatable
- Date: Thu, 17 Mar 2011 02:03:34 +0000 (UTC)
commit 96c7ab6f9a8d92d4b492d491231efb4518609a2c
Author: Matthias Clasen <mclasen redhat com>
Date: Wed Mar 16 22:02:32 2011 -0400
Network: Mark speed label as translatable
Also, use the same units everywhere.
panels/network/cc-network-panel.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/panels/network/cc-network-panel.c b/panels/network/cc-network-panel.c
index 1f84b3d..0035e4e 100644
--- a/panels/network/cc-network-panel.c
+++ b/panels/network/cc-network-panel.c
@@ -1096,7 +1096,8 @@ nm_device_refresh_device_ui (CcNetworkPanel *panel, NetDevice *device)
/* speed */
speed = nm_device_ethernet_get_speed (NM_DEVICE_ETHERNET (nm_device));
if (speed > 0)
- str_tmp = g_strdup_printf ("%d Mb/sec", speed);
+ /* Translators: network device speed */
+ str_tmp = g_strdup_printf (_("%d Mb/s"), speed);
else
str_tmp = NULL;
panel_set_widget_data (panel,
@@ -1117,7 +1118,7 @@ nm_device_refresh_device_ui (CcNetworkPanel *panel, NetDevice *device)
/* speed */
speed = nm_device_wifi_get_bitrate (NM_DEVICE_WIFI (nm_device));
if (speed > 0)
- str_tmp = g_strdup_printf ("%d Mb/s",
+ str_tmp = g_strdup_printf (_("%d Mb/s"),
speed / 1000);
else
str_tmp = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]