[Xfce4-commits] <xfce4-settings:master> Make scale value strings translatable.

Nick Schermer noreply at xfce.org
Wed May 25 19:00:08 CEST 2011


Updating branch refs/heads/master
         to 137bdd61bd1a9627555b5f3419cc103765851db6 (commit)
       from ad3c6becb24551b84c2187f456fa83dd03784b37 (commit)

commit 137bdd61bd1a9627555b5f3419cc103765851db6
Author: Nick Schermer <nick at xfce.org>
Date:   Mon May 23 22:43:40 2011 +0200

    Make scale value strings translatable.

 dialogs/mouse-settings/main.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dialogs/mouse-settings/main.c b/dialogs/mouse-settings/main.c
index 517093d..cb3ca33 100644
--- a/dialogs/mouse-settings/main.c
+++ b/dialogs/mouse-settings/main.c
@@ -142,7 +142,8 @@ static gchar *
 mouse_settings_format_value_px (GtkScale *scale,
                                 gdouble   value)
 {
-   return g_strdup_printf ("%g px", value);
+   /* pixel value for some of the scales in the dialog */
+   return g_strdup_printf (_("%g px"), value);
 }
 
 
@@ -151,7 +152,8 @@ static gchar *
 mouse_settings_format_value_ms (GtkScale *scale,
                                 gdouble   value)
 {
-   return g_strdup_printf ("%g ms", value);
+   /* miliseconds value for some of the scales in the dialog */
+   return g_strdup_printf (_("%g ms"), value);
 }
 
 



More information about the Xfce4-commits mailing list