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

Nick Schermer noreply at xfce.org
Mon May 23 22:46:01 CEST 2011


Updating branch refs/heads/nick/pointers
         to c931c7f495cdda2109eb3ea4302b80e79fc722ae (commit)
       from acb801407759c0722b9477c977797d48295df68c (commit)

commit c931c7f495cdda2109eb3ea4302b80e79fc722ae
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