From ee8deed4006d89231f71e3692d487eeaf1fd312c Mon Sep 17 00:00:00 2001 From: Matthieu Herrb Date: Sun, 14 Feb 2010 15:29:04 +0100 Subject: Let xfd build on systems without gettext. Signed-off-by: Matthieu Herrb Reviewed-by: Julien Cristau Reviewed-by: Alan Coopersmith --- xfd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xfd.c b/xfd.c index aa1f4a6..c49ba31 100644 --- a/xfd.c +++ b/xfd.c @@ -196,6 +196,7 @@ main(int argc, char *argv[]) xfd_options, XtNumber(xfd_options), &argc, argv, NULL, NULL, 0); +#ifdef USE_GETTEXT textdomain("xfd"); /* mainly for debugging */ @@ -203,6 +204,7 @@ main(int argc, char *argv[]) domaindir = LOCALEDIR; } bindtextdomain ("xfd", domaindir); +#endif Resources[0].default_addr = gettext(DEF_SELECT_FORMAT); Resources[1].default_addr = gettext(DEF_METRICS_FORMAT); -- cgit v1.2.3