From 022376dd565bd686926697143f160eb9731c98c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Dr=C4=85g?= Date: Fri, 1 Jun 2012 14:44:40 +0200 Subject: [PATCH] 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 390bd23ed..6cbc59824 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 cf89733f8..a02898a6f 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 84f6b2da7..978d009b9 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 31756a329..d452fd303 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; } }