gnome-scan r495 - in trunk: . lib
- From: bersace svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-scan r495 - in trunk: . lib
- Date: Thu, 21 Feb 2008 19:43:06 +0000 (GMT)
Author: bersace
Date: Thu Feb 21 19:43:06 2008
New Revision: 495
URL: http://svn.gnome.org/viewvc/gnome-scan?rev=495&view=rev
Log:
Handle i18n.
Modified:
trunk/ChangeLog
trunk/lib/gnome-scan-boolean-widget.c
Modified: trunk/lib/gnome-scan-boolean-widget.c
==============================================================================
--- trunk/lib/gnome-scan-boolean-widget.c (original)
+++ trunk/lib/gnome-scan-boolean-widget.c Thu Feb 21 19:43:06 2008
@@ -20,6 +20,8 @@
* Boston, MA 02110-1301, USA.
*/
+#include <glib/gi18n.h>
+#include "gnome-scan-param-specs.h"
#include "gnome-scan-boolean-widget.h"
#define GET_PRIVATE(o) (G_TYPE_INSTANCE_GET_PRIVATE ((o), GNOME_TYPE_SCAN_BOOLEAN_WIDGET, GnomeScanBooleanWidgetPrivate))
@@ -54,7 +56,8 @@
{
GnomeScanBooleanWidgetPrivate *priv = GET_PRIVATE (gspw);
gspw->shows_label = TRUE;
- priv->check = gtk_check_button_new_with_label (g_param_spec_get_nick (gspw->pspec));
+ priv->check = gtk_check_button_new_with_label (dgettext (gs_param_spec_get_domain (gspw->pspec),
+ g_param_spec_get_nick (gspw->pspec)));
gtk_box_pack_start (GTK_BOX (gspw), priv->check, TRUE, TRUE, FALSE);
g_signal_connect (GET_PRIVATE (gspw)->check, "toggled",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]