[Xfce4-commits] r30241 - xfce4-settings/trunk/dialogs/display-settings

Nick Schermer nick at xfce.org
Fri Jul 10 16:29:23 CEST 2009


Author: nick
Date: 2009-07-10 14:29:23 +0000 (Fri, 10 Jul 2009)
New Revision: 30241

Modified:
   xfce4-settings/trunk/dialogs/display-settings/main.c
Log:
Make 3 string more suitable for translators (bug #5553).


Modified: xfce4-settings/trunk/dialogs/display-settings/main.c
===================================================================
--- xfce4-settings/trunk/dialogs/display-settings/main.c	2009-07-10 12:33:49 UTC (rev 30240)
+++ xfce4-settings/trunk/dialogs/display-settings/main.c	2009-07-10 14:29:23 UTC (rev 30241)
@@ -255,7 +255,7 @@
                     rate = (gfloat) mode_info->dotClock / ((gfloat) mode_info->hTotal * (gfloat) mode_info->vTotal);
 
                     /* insert in the combo box */
-                    name = g_strdup_printf ("%.1f %s", rate, _("Hz"));
+                    name = g_strdup_printf (_("%d Hz"), (gint) rate);
                     gtk_list_store_prepend (GTK_LIST_STORE (model), &iter);
                     gtk_list_store_set (GTK_LIST_STORE (model), &iter,
                                         COLUMN_COMBO_NAME, name,
@@ -286,7 +286,7 @@
         for (n = 0; n < nrates; n++)
         {
             /* insert */
-            name = g_strdup_printf ("%d %s", rates[n], _("Hz"));
+            name = g_strdup_printf (_("%d Hz"), rates[n]);
             gtk_list_store_prepend (GTK_LIST_STORE (model), &iter);
             gtk_list_store_set (GTK_LIST_STORE (model), &iter,
                                 COLUMN_COMBO_NAME, name,
@@ -492,7 +492,7 @@
         for (n = 0; n < xfce_randr_legacy->num_screens; n++)
         {
             /* create name */
-            name = g_strdup_printf ("%s %d", _("Screen"), n + 1);
+            name = g_strdup_printf (_("Screen %d"), n + 1);
 
             /* insert the output in the store */
             gtk_list_store_append (store, &iter);




More information about the Xfce4-commits mailing list