[totem] Fix localization of the Nautilus file properties windows Audio/video tab



commit 5267fed0bf17534f132061c8d80a455040c0a22d
Author: Gabor Kelemen <kelemeng gnome hu>
Date:   Mon Jun 20 17:40:06 2011 +0100

    Fix localization of the Nautilus file properties windows Audio/video tab
    
    Closes: bgo#652898

 src/backend/bacon-video-widget-gst-0.10.c      |    8 ++++----
 src/backend/video-utils.c                      |    2 +-
 src/properties/bacon-video-widget-properties.c |   10 +++++-----
 3 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/src/backend/bacon-video-widget-gst-0.10.c b/src/backend/bacon-video-widget-gst-0.10.c
index 22fa4db..96bd047 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -77,7 +77,7 @@
 /* gtk+/gnome */
 #include <gdk/gdkx.h>
 #include <gtk/gtk.h>
-#include <glib/gi18n.h>
+#include <glib/gi18n-lib.h>
 #include <gio/gio.h>
 
 #include "totem-gst-helpers.h"
@@ -3305,10 +3305,10 @@ bvw_error_from_gst_error (BaconVideoWidget *bvw, GstMessage * err_msg)
         gchar *desc_list;
 
         desc_list = g_strjoinv ("\n", descs);
-        msg = g_strdup_printf (ngettext (_("The playback of this movie "
-            "requires a %s plugin which is not installed."), _("The playback "
+        msg = g_strdup_printf (g_dngettext (GETTEXT_PACKAGE, "The playback of this movie "
+            "requires a %s plugin which is not installed.", "The playback "
             "of this movie requires the following decoders which are not "
-            "installed:\n\n%s"), num), (num == 1) ? descs[0] : desc_list);
+            "installed:\n\n%s", num), (num == 1) ? descs[0] : desc_list);
         g_free (desc_list);
       }
       ret = g_error_new_literal (BVW_ERROR, BVW_ERROR_CODEC_NOT_HANDLED, msg);
diff --git a/src/backend/video-utils.c b/src/backend/video-utils.c
index e4737d8..893ba9b 100644
--- a/src/backend/video-utils.c
+++ b/src/backend/video-utils.c
@@ -29,7 +29,7 @@
 
 #include "video-utils.h"
 
-#include <glib/gi18n.h>
+#include <glib/gi18n-lib.h>
 #include <libintl.h>
 
 #include <gdk/gdk.h>
diff --git a/src/properties/bacon-video-widget-properties.c b/src/properties/bacon-video-widget-properties.c
index 3fcff00..7c3e4e2 100644
--- a/src/properties/bacon-video-widget-properties.c
+++ b/src/properties/bacon-video-widget-properties.c
@@ -23,7 +23,7 @@
 #include "config.h"
 
 #include <gtk/gtk.h>
-#include <glib/gi18n.h>
+#include <glib/gi18n-lib.h>
 #include <string.h>
 
 #include "backend/video-utils.h"
@@ -153,12 +153,12 @@ totem_time_to_string_text (gint64 msecs)
 	_time = _time - (min * 60);
 	hour = _time / (60*60);
 
-	hours = g_strdup_printf (ngettext ("%d hour", "%d hours", hour), hour);
+	hours = g_strdup_printf (g_dngettext (GETTEXT_PACKAGE, "%d hour", "%d hours", hour), hour);
 
-	mins = g_strdup_printf (ngettext ("%d minute",
+	mins = g_strdup_printf (g_dngettext (GETTEXT_PACKAGE, "%d minute",
 					  "%d minutes", min), min);
 
-	secs = g_strdup_printf (ngettext ("%d second",
+	secs = g_strdup_printf (g_dngettext (GETTEXT_PACKAGE, "%d second",
 					  "%d seconds", sec), sec);
 
 	if (hour > 0)
@@ -234,7 +234,7 @@ bacon_video_widget_properties_set_framerate (BaconVideoWidgetProperties *props,
 
 	/* The FPS has to be done differently because it's a plural string */
 	if (framerate != 0) {
-		temp = g_strdup_printf (ngettext ("%d frame per second", "%d frames per second", framerate),
+		temp = g_strdup_printf (g_dngettext (GETTEXT_PACKAGE, "%d frame per second", "%d frames per second", framerate),
 					framerate);
 	} else {
 		temp = g_strdup (C_("Frame rate", "N/A"));



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