From 167ad7fa3a339da96798da49d05c3125045a87c2 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 7 Nov 2022 16:03:47 -0800 Subject: Use gettext() to localize messages if available Originally fixed for Solaris in May 2000 by Steve Swales under Sun bug 4256527 "xhost messages not internationalized" Signed-off-by: Alan Coopersmith --- Makefile.am | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Makefile.am') diff --git a/Makefile.am b/Makefile.am index 4c67a4f..07f36b2 100644 --- a/Makefile.am +++ b/Makefile.am @@ -19,3 +19,14 @@ ChangeLog: dist-hook: ChangeLog INSTALL EXTRA_DIST = README.md + +if USE_GETTEXT +AM_CPPFLAGS = -DLOCALEDIR='"$(LOCALEDIR)"' + +noinst_DATA = xhost.po + +xhost.po: $(xhost_SOURCES:%=$(srcdir)/%) + $(AM_V_GEN)xgettext -d xhost -n $(xhost_SOURCES:%=$(srcdir)/%) + +CLEANFILES = xhost.po +endif -- cgit v1.2.3