[totem] Add translation context to the string “N/A”



commit a61e9db7a8f96d23e886e4bf14b894e5e4add67b
Author: Philip Withnall <philip tecnocode co uk>
Date:   Fri Sep 24 18:02:18 2010 +0100

    Add translation context to the string â??N/Aâ??
    
    Closes: bgo#630515

 data/properties.ui                                 |    4 ++--
 .../properties/bacon-video-widget-properties.c     |   20 ++++++++++----------
 2 files changed, 12 insertions(+), 12 deletions(-)
---
diff --git a/data/properties.ui b/data/properties.ui
index dc58664..203f8c9 100644
--- a/data/properties.ui
+++ b/data/properties.ui
@@ -706,7 +706,7 @@
 		<object class="GtkLabel" id="vcodec">
 		  <property name="visible">True</property>
 		  <property name="can_focus">True</property>
-		  <property name="label" translatable="yes">N/A</property>
+		  <property name="label" translatable="yes" context="Video codec">N/A</property>
 		  <property name="use_underline">False</property>
 		  <property name="use_markup">False</property>
 		  <property name="justify">GTK_JUSTIFY_LEFT</property>
@@ -1040,7 +1040,7 @@
 		<object class="GtkLabel" id="acodec">
 		  <property name="visible">True</property>
 		  <property name="can_focus">True</property>
-		  <property name="label" translatable="yes">N/A</property>
+		  <property name="label" translatable="yes" context="Audio codec">N/A</property>
 		  <property name="use_underline">False</property>
 		  <property name="use_markup">False</property>
 		  <property name="justify">GTK_JUSTIFY_LEFT</property>
diff --git a/src/plugins/properties/bacon-video-widget-properties.c b/src/plugins/properties/bacon-video-widget-properties.c
index dc2d6af..77bec28 100644
--- a/src/plugins/properties/bacon-video-widget-properties.c
+++ b/src/plugins/properties/bacon-video-widget-properties.c
@@ -155,20 +155,20 @@ bacon_video_widget_properties_reset (BaconVideoWidgetProperties *props)
 	bacon_video_widget_properties_set_label (props, "comment", "");
 
 	/* Dimensions */
-	bacon_video_widget_properties_set_label (props, "dimensions", _("N/A"));
+	bacon_video_widget_properties_set_label (props, "dimensions", C_("Dimensions", "N/A"));
 	/* Video Codec */
-	bacon_video_widget_properties_set_label (props, "vcodec", _("N/A"));
+	bacon_video_widget_properties_set_label (props, "vcodec", C_("Video codec", "N/A"));
 	/* Video Bitrate */
 	bacon_video_widget_properties_set_label (props, "video_bitrate",
-			_("N/A"));
+			C_("Video bit rate", "N/A"));
 	/* Framerate */
 	bacon_video_widget_properties_set_label (props, "framerate",
-			_("N/A"));
+			C_("Frame rate", "N/A"));
 	/* Audio Bitrate */
 	bacon_video_widget_properties_set_label (props, "audio_bitrate",
-			_("N/A"));
+			C_("Audio bit rate", "N/A"));
 	/* Audio Codec */
-	bacon_video_widget_properties_set_label (props, "acodec", _("N/A"));
+	bacon_video_widget_properties_set_label (props, "acodec", C_("Audio codec", "N/A"));
 	/* Sample rate */
 	bacon_video_widget_properties_set_label (props, "samplerate", _("0 Hz"));
 	/* Channels */
@@ -237,7 +237,7 @@ bacon_video_widget_properties_update (BaconVideoWidgetProperties *props,
 				  "dimensions", N_("%d x %d"));
 		UPDATE_FROM_STRING (BVW_INFO_VIDEO_CODEC, "vcodec");
 		UPDATE_FROM_INT (BVW_INFO_VIDEO_BITRATE, "video_bitrate",
-				 N_("%d kbps"), _("N/A"));
+				 N_("%d kbps"), C_("Video bit rate", "N/A"));
 
 		/* The FPS has to be done differently because it's a plural string */
 		{
@@ -247,7 +247,7 @@ bacon_video_widget_properties_update (BaconVideoWidgetProperties *props,
 				temp = g_strdup_printf (ngettext ("%d frame per second", "%d frames per second", g_value_get_int (&value)),
 				                        g_value_get_int (&value));
 			} else {
-				temp = g_strdup (_("N/A"));
+				temp = g_strdup (C_("Frame rate", "N/A"));
 			}
 			bacon_video_widget_properties_set_label (props, "framerate", temp);
 			g_free (temp);
@@ -270,10 +270,10 @@ bacon_video_widget_properties_update (BaconVideoWidgetProperties *props,
 	if (has_type != FALSE)
 	{
 		UPDATE_FROM_INT (BVW_INFO_AUDIO_BITRATE, "audio_bitrate",
-				 N_("%d kbps"), _("N/A"));
+				 N_("%d kbps"), C_("Audio bit rate", "N/A"));
 		UPDATE_FROM_STRING (BVW_INFO_AUDIO_CODEC, "acodec");
 		UPDATE_FROM_INT (BVW_INFO_AUDIO_SAMPLE_RATE, "samplerate",
-				N_("%d Hz"), _("N/A"));
+				N_("%d Hz"), C_("Sample rate", "N/A"));
 		UPDATE_FROM_STRING (BVW_INFO_AUDIO_CHANNELS, "channels");
 	}
 



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