2006-02-14  Anilkumar Bacheli <anilkumar.bacheli@wipro.com>

	Fixes #330588

	* gnome-mouse-properties.glade: Modified the Slider value label to
	"milliseconds" instead of "microseconds".

	* gnome-mouse-properties.c: Use ngettext() to get the correct plural
	form of the message. Also changed so that the slider label is in
	"milliseconds"
This commit is contained in:
Anilkumar Bacheli 2006-02-17 11:22:34 +00:00 committed by Rodrigo Moya
parent 4e42ae3292
commit 91bb73fc56
3 changed files with 14 additions and 3 deletions

View file

@ -1,3 +1,14 @@
2006-02-14 Anilkumar Bacheli <anilkumar.bacheli@wipro.com>
Fixes #330588
* gnome-mouse-properties.glade: Modified the Slider value label to
"milliseconds" instead of "microseconds".
* gnome-mouse-properties.c: Use ngettext() to get the correct plural
form of the message. Also changed so that the slider label is in
"milliseconds"
2006-01-28 Anilkumar Bacheli <anilkumar.bacheli@wipro.com>
Fixes #154769

View file

@ -135,7 +135,7 @@ delay_value_changed_cb (GtkWidget *range, GtkScrollType scroll, gdouble value,
else if (value > 1000)
value = 1000;
message = g_strdup_printf ("%d %s", CLAMP ((int) floor ((value+50)/100.0) * 100, 100, 1000), _("microseconds"));
message = g_strdup_printf (ngettext ("%d milliseconds","%d milliseconds", CLAMP ((int) floor ((value+50)/100.0) * 100, 100, 1000)), CLAMP ((int) floor ((value+50)/100.0) * 100, 100, 1000));
gtk_label_set_label ((GtkLabel*) WID ("delay_label"), message);
g_free (message);
@ -877,7 +877,7 @@ setup_dialog (GladeXML *dialog, GConfChangeSet *changeset)
G_CALLBACK (event_box_button_press_event), changeset);
/* set the timeout value label with correct value of timeout */
message = g_strdup_printf ("%d %s", (int) gtk_range_get_value (GTK_RANGE (WID ("delay_scale"))), _("microseconds"));
message = g_strdup_printf (ngettext ("%d milliseconds", "%d milliseconds", (int) gtk_range_get_value (GTK_RANGE (WID ("delay_scale")))), (int) gtk_range_get_value (GTK_RANGE (WID ("delay_scale"))));
gtk_label_set_label ((GtkLabel*) WID ("delay_label"), message);
g_free (message);

View file

@ -365,7 +365,7 @@
<child>
<widget class="GtkLabel" id="delay_label">
<property name="visible">True</property>
<property name="label" translatable="yes">microseconds</property>
<property name="label" translatable="yes">milliseconds</property>
<property name="use_underline">False</property>
<property name="use_markup">False</property>
<property name="justify">GTK_JUSTIFY_LEFT</property>