summaryrefslogtreecommitdiff
path: root/xfd.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu.herrb@laas.fr>2010-02-14 15:29:04 +0100
committerMatthieu Herrb <matthieu.herrb@laas.fr>2010-02-16 21:26:26 +0100
commitee8deed4006d89231f71e3692d487eeaf1fd312c (patch)
treee6b282e6d6a5510ad44ce53050a3201514dc578a /xfd.c
parentcc62d8127797a769fb83c719a499290b780e0307 (diff)
Let xfd build on systems without gettext.
Signed-off-by: Matthieu Herrb <matthieu.herrb@laas.fr> Reviewed-by: Julien Cristau <jcristau@debian.org> Reviewed-by: Alan Coopersmith <alan.coopersmith@sun.com>
Diffstat (limited to 'xfd.c')
-rw-r--r--xfd.c2
1 files changed, 2 insertions, 0 deletions
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);