summaryrefslogtreecommitdiff
path: root/endless/hello.c
diff options
context:
space:
mode:
Diffstat (limited to 'endless/hello.c')
-rw-r--r--endless/hello.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/endless/hello.c b/endless/hello.c
index 1db6f90..83be05a 100644
--- a/endless/hello.c
+++ b/endless/hello.c
@@ -1,7 +1,9 @@
/* Copyright 2013 Endless Mobile, Inc. */
+#include <config.h>
#include <string.h>
#include <glib.h>
+#include <glib/gi18n-lib.h>
#include <gio/gio.h>
#include <endless/endless.h>
@@ -29,7 +31,7 @@ gboolean
eos_hello_sample_function(GFile *file,
GError **error)
{
- char hello_string[] = "Hello, world!\n";
+ char *hello_string = _("Hello, world!\n");
GFileOutputStream *stream;
ssize_t write_count;
gboolean success;
@@ -66,4 +68,3 @@ eos_hello_sample_function(GFile *file,
return TRUE;
}
-