[gnome-shell] Added contexts to various Unknown strings



commit 022376dd565bd686926697143f160eb9731c98c8
Author: Piotr DrÄg <piotrdrag gmail com>
Date:   Fri Jun 1 14:44:40 2012 +0200

    Added contexts to various Unknown strings
    
    Fixes bug https://bugzilla.gnome.org/show_bug.cgi?id=659968

 js/ui/contactDisplay.js     |    2 +-
 js/ui/notificationDaemon.js |    2 +-
 js/ui/status/power.js       |    2 +-
 src/shell-app.c             |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/js/ui/contactDisplay.js b/js/ui/contactDisplay.js
index 390bd23..6cbc598 100644
--- a/js/ui/contactDisplay.js
+++ b/js/ui/contactDisplay.js
@@ -63,7 +63,7 @@ const Contact = new Lang.Class({
                         this.individual.full_name ||
                         this.individual.nickname  ||
                         email                     ||
-                        _("Unknown");
+                        C_("contact", "Unknown");
         let aliasLabel = new St.Label({ text: aliasText,
                                         style_class: 'contact-details-alias' });
         details.add(aliasLabel, { x_fill: true,
diff --git a/js/ui/notificationDaemon.js b/js/ui/notificationDaemon.js
index cf89733..a02898a 100644
--- a/js/ui/notificationDaemon.js
+++ b/js/ui/notificationDaemon.js
@@ -483,7 +483,7 @@ const NotificationDaemon = new Lang.Class({
     },
 
     _onTrayIconAdded: function(o, icon) {
-        let source = this._getSource(icon.title || icon.wm_class || _("Unknown"), icon.pid, null, null, icon);
+        let source = this._getSource(icon.title || icon.wm_class || C_("program", "Unknown"), icon.pid, null, null, icon);
     },
 
     _onTrayIconRemoved: function(o, icon) {
diff --git a/js/ui/status/power.js b/js/ui/status/power.js
index 84f6b2d..978d009 100644
--- a/js/ui/status/power.js
+++ b/js/ui/status/power.js
@@ -212,7 +212,7 @@ const DeviceItem = new Lang.Class({
         case UPDeviceType.COMPUTER:
             return _("Computer");
         default:
-            return _("Unknown");
+            return C_("device", "Unknown");
         }
     }
 });
diff --git a/src/shell-app.c b/src/shell-app.c
index 31756a3..d452fd3 100644
--- a/src/shell-app.c
+++ b/src/shell-app.c
@@ -371,7 +371,7 @@ shell_app_get_name (ShellApp *app)
 
       name = meta_window_get_wm_class (window);
       if (!name)
-        name = _("Unknown");
+        name = C_("program", "Unknown");
       return name;
     }
 }



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