[totem/wip/hadess/framerate-translation] properties: Fix "frames per second" not being translated



commit 2cc80fbb50d4c6164f3aa1b341ecb83551161da6
Author: Bastien Nocera <hadess hadess net>
Date:   Mon May 6 11:46:39 2019 +0200

    properties: Fix "frames per second" not being translated
    
    Closes: #324
    
    Fixes: 39a5ada3

 src/plugins/properties/bacon-video-widget-properties.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/properties/bacon-video-widget-properties.c 
b/src/plugins/properties/bacon-video-widget-properties.c
index 6c5e10292..4343b2238 100644
--- a/src/plugins/properties/bacon-video-widget-properties.c
+++ b/src/plugins/properties/bacon-video-widget-properties.c
@@ -24,6 +24,7 @@
 
 #include <gtk/gtk.h>
 #include <glib/gi18n-lib.h>
+#include <math.h>
 #include <string.h>
 
 #include "totem-interface.h"
@@ -232,7 +233,8 @@ bacon_video_widget_properties_set_framerate (BaconVideoWidgetProperties *props,
        g_return_if_fail (BACON_IS_VIDEO_WIDGET_PROPERTIES (props));
 
        if (framerate > 1.0) {
-               temp = g_strdup_printf ("%0.2f frames per second", framerate);
+               temp = g_strdup_printf (g_dngettext (GETTEXT_PACKAGE, "Do not translate", "%0.2f frames per 
second", (int) (ceilf (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]