]> git.street.me.uk Git - andy/viking.git/blobdiff - src/datasource_google.c
Marking translatable strings.
[andy/viking.git] / src / datasource_google.c
index e32f74f1db0637f5e7fc5b37b28319c3f0ddd406..04be2307415537e30fc4da1ac804efddb1af7f58 100644 (file)
@@ -19,7 +19,9 @@
  *
  */
 #include <string.h>
+
 #include <glib/gprintf.h>
+#include <glib/gi18n.h>
 
 #include "viking.h"
 #include "babel.h"
@@ -41,8 +43,8 @@ static void datasource_google_get_cmd_string ( datasource_google_widgets_t *widg
 static void datasource_google_cleanup ( gpointer data );
 
 VikDataSourceInterface vik_datasource_google_interface = {
-  "Google Directions",
-  "Google Directions",
+  N_("Google Directions"),
+  N_("Google Directions"),
   VIK_DATASOURCE_SHELL_CMD,
   VIK_DATASOURCE_ADDTOLAYER,
   VIK_DATASOURCE_INPUTTYPE_NONE,
@@ -66,9 +68,9 @@ static void datasource_google_add_setup_widgets ( GtkWidget *dialog, VikViewport
 {
   datasource_google_widgets_t *widgets = (datasource_google_widgets_t *)user_data;
   GtkWidget *from_label, *to_label;
-  from_label = gtk_label_new ("From:");
+  from_label = gtk_label_new (_("From:"));
   widgets->from_entry = gtk_entry_new();
-  to_label = gtk_label_new ("To:");
+  to_label = gtk_label_new (_("To:"));
   widgets->to_entry = gtk_entry_new();
   if (last_from_str)
     gtk_entry_set_text(GTK_ENTRY(widgets->from_entry), last_from_str);