summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2010-09-06 14:32:16 +0100
committerTravis Reitter <travis.reitter@collabora.co.uk>2010-11-04 09:21:00 -0700
commitaffa69029fe409b60de0fdf1bef7429c51c2907b (patch)
tree5c4c5e39dad57232a12679dc15e5a58c42193723 /tools
parentaaad9438b2d949b3c4ef6fad3d3821b873655089 (diff)
Bug 628883 — Add localisation support
Add gettext/intltool build system support, but don't mark any strings for translation yet. Helps: bgo#628883
Diffstat (limited to 'tools')
-rw-r--r--tools/Makefile.am6
-rw-r--r--tools/import.vala3
2 files changed, 9 insertions, 0 deletions
diff --git a/tools/Makefile.am b/tools/Makefile.am
index a538a99..17ab8e7 100644
--- a/tools/Makefile.am
+++ b/tools/Makefile.am
@@ -2,11 +2,17 @@ if ENABLE_IMPORT_TOOL
bin_PROGRAMS = folks-import
endif
+AM_CPPFLAGS = \
+ -include $(CONFIG_HEADER) \
+ -DLOCALE_DIR=\"$(pkgdatadir)/locale\" \
+ $(NULL)
+
VALAFLAGS = \
--vapidir=$(top_builddir)/folks \
--pkg=gee-1.0 \
--pkg=libxml-2.0 \
--pkg=folks \
+ --pkg=build-conf \
$(NULL)
folks_import_SOURCES = \
diff --git a/tools/import.vala b/tools/import.vala
index 451290f..7e060c3 100644
--- a/tools/import.vala
+++ b/tools/import.vala
@@ -48,6 +48,9 @@ public class Folks.ImportTool : Object
public static int main (string[] args)
{
+ Intl.bindtextdomain (BuildConf.GETTEXT_PACKAGE, BuildConf.LOCALE_DIR);
+ Intl.textdomain (BuildConf.GETTEXT_PACKAGE);
+
OptionContext context = new OptionContext ("— import meta-contact " +
"information to libfolks");
context.add_main_entries (ImportTool.options, "folks");