[empathy] Add translation context on some strings (#646131)



commit 5d64d93d3b713a474b56610f38c4fcbb9612c02e
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Fri Apr 15 11:58:39 2011 +0200

    Add translation context on some strings (#646131)

 libempathy-gtk/empathy-account-widget.c |    2 +-
 libempathy/empathy-utils.c              |    2 +-
 src/empathy-streamed-media-window.c     |   12 ++++++++----
 3 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/libempathy-gtk/empathy-account-widget.c b/libempathy-gtk/empathy-account-widget.c
index b562cf1..f711f20 100644
--- a/libempathy-gtk/empathy-account-widget.c
+++ b/libempathy-gtk/empathy-account-widget.c
@@ -2003,7 +2003,7 @@ add_enable_checkbox (EmpathyAccountWidget *self,
   priv->enabled_checkbox =
       /* translators: this is the label of a checkbox used to enable/disable IM
        * accounts */
-      gtk_check_button_new_with_mnemonic (_("_Enabled"));
+      gtk_check_button_new_with_mnemonic (C_("account", "_Enabled"));
 
   gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->enabled_checkbox),
       is_enabled);
diff --git a/libempathy/empathy-utils.c b/libempathy/empathy-utils.c
index ae4209b..f8220ac 100644
--- a/libempathy/empathy-utils.c
+++ b/libempathy/empathy-utils.c
@@ -313,7 +313,7 @@ empathy_presence_get_default_message (TpConnectionPresenceType presence)
 		return _("Offline");
 	case TP_CONNECTION_PRESENCE_TYPE_UNKNOWN:
 		/* translators: presence type is unknown */
-		return _("Unknown");
+		return C_("presence", "Unknown");
 	case TP_CONNECTION_PRESENCE_TYPE_UNSET:
 	case TP_CONNECTION_PRESENCE_TYPE_ERROR:
 	default:
diff --git a/src/empathy-streamed-media-window.c b/src/empathy-streamed-media-window.c
index bb6df68..50d3f8a 100644
--- a/src/empathy-streamed-media-window.c
+++ b/src/empathy-streamed-media-window.c
@@ -1902,13 +1902,17 @@ reset_details_pane (EmpathyStreamedMediaWindow *self)
   EmpathyStreamedMediaWindowPriv *priv = GET_PRIV (self);
 
   /* translators: encoding video codec is unknown */
-  gtk_label_set_text (GTK_LABEL (priv->vcodec_encoding_label), _("Unknown"));
+  gtk_label_set_text (GTK_LABEL (priv->vcodec_encoding_label),
+      C_("encoding video codec", "Unknown"));
   /* translators: encoding audio codec is unknown */
-  gtk_label_set_text (GTK_LABEL (priv->acodec_encoding_label), _("Unknown"));
+  gtk_label_set_text (GTK_LABEL (priv->acodec_encoding_label),
+      C_("encoding audio codec", "Unknown"));
   /* translators: decoding video codec is unknown */
-  gtk_label_set_text (GTK_LABEL (priv->vcodec_decoding_label), _("Unknown"));
+  gtk_label_set_text (GTK_LABEL (priv->vcodec_decoding_label),
+      C_("decoding video codec", "Unknown"));
   /* translators: decoding audio codec is unknown */
-  gtk_label_set_text (GTK_LABEL (priv->acodec_decoding_label), _("Unknown"));
+  gtk_label_set_text (GTK_LABEL (priv->acodec_decoding_label),
+      C_("decoding audio codec", "Unknown"));
 }
 
 static gboolean



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