Add l10n support.
[tweakr] / modules / tweakr-desktop.c
index 0aa8a6e..173a2a7 100644 (file)
@@ -3,6 +3,7 @@
  */ 
 
 #include <config.h>
+#include <glib/gi18n-lib.h>
 
 #include <gtk/gtk.h>
 #include <hildon/hildon-picker-button.h>
@@ -140,7 +141,14 @@ tweakr_desktop_section_class_init
 
 GtkWidget * _build_snap_to_grid (void)
 {
-    const gchar *options[] = {"No", "Small", "Large", "Huge", NULL};
+    const gchar *options[] =
+    {
+        _("No"),
+        _("Small"),
+        _("Large"),
+        _("Huge"),
+        NULL
+    };
     gint i = 0;
     GtkWidget *button, *selector;
 
@@ -156,7 +164,7 @@ GtkWidget * _build_snap_to_grid (void)
     hildon_gtk_widget_set_theme_size (button, HILDON_SIZE_FINGER_HEIGHT);
 
     hildon_button_set_title (HILDON_BUTTON (button),
-                             "Snap icons to grid");
+                             _("Snap icons to grid"));
     gtk_button_set_alignment (GTK_BUTTON (button), 0.0f, 0.5f);
     hildon_picker_button_set_selector (HILDON_PICKER_BUTTON (button),
                                        HILDON_TOUCH_SELECTOR (selector));
@@ -210,7 +218,7 @@ tweakr_desktop_section_init (TweakrDesktopSection *section)
 
 
     iface = TWEAKR_SECTION (section);
-    iface->name = "Desktop";
+    iface->name = _("Desktop");
     iface->widget = gtk_vbox_new (FALSE, 0);
     gtk_box_pack_start (GTK_BOX (iface->widget), section->snap_button,
                         FALSE, FALSE, 0);