diff options
Diffstat (limited to 'tools')
-rw-r--r-- | tools/Makefile.am | 6 | ||||
-rw-r--r-- | tools/import.vala | 3 |
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"); |