From f286ef347dc9e87c6d5b5b8bce22afdeb82af4ed Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Wed, 9 Nov 2022 13:19:21 -0800 Subject: Use gettext() to localize messages if available Originally fixed for Solaris in August 2000 by Jay Hobson under Sun bug 4256527 "Internationalize xfontsel" 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 e62fd49..62e51c3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -53,3 +53,14 @@ ChangeLog: dist-hook: ChangeLog INSTALL EXTRA_DIST = README.md + +if USE_GETTEXT +AM_CPPFLAGS = -DLOCALEDIR='"$(LOCALEDIR)"' + +noinst_DATA = xfontsel.po + +xfontsel.po: $(xfontsel_SOURCES:%=$(srcdir)/%) + $(AM_V_GEN)xgettext -d xfontsel -c -n $(xfontsel_SOURCES:%=$(srcdir)/%) + +CLEANFILES = xfontsel.po +endif -- cgit v1.2.3