[gnome-control-center] network: fix some translator comments



commit 7b5ad4e3894b2525a572741d1aa6b67d9b75f3b7
Author: Dan Winship <danw gnome org>
Date:   Thu Jan 31 12:25:01 2013 -0500

    network: fix some translator comments
    
    They have to appear on the line immediately before the string or
    they won't get picked up.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=646029

 panels/network/panel-common.c |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)
---
diff --git a/panels/network/panel-common.c b/panels/network/panel-common.c
index 584172a..1b53212 100644
--- a/panels/network/panel-common.c
+++ b/panels/network/panel-common.c
@@ -156,14 +156,17 @@ panel_device_state_to_localized_string (NMDevice *device)
                 value = _("Unmanaged");
                 break;
         case NM_DEVICE_STATE_UNAVAILABLE:
-                /* TRANSLATORS: device status */
-                if (nm_device_get_firmware_missing (device))
+                if (nm_device_get_firmware_missing (device)) {
+                        /* TRANSLATORS: device status */
                         value = _("Firmware missing");
-                else if (type == NM_DEVICE_TYPE_ETHERNET &&
-                         !nm_device_ethernet_get_carrier (NM_DEVICE_ETHERNET (device)))
+                } else if (type == NM_DEVICE_TYPE_ETHERNET &&
+                           !nm_device_ethernet_get_carrier (NM_DEVICE_ETHERNET (device))) {
+                        /* TRANSLATORS: device status */
                         value = _("Cable unplugged");
-                else
+                } else {
+                        /* TRANSLATORS: device status */
                         value = _("Unavailable");
+                }
                 break;
         case NM_DEVICE_STATE_DISCONNECTED:
                 /* TRANSLATORS: device status */



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