summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xfd.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/xfd.c b/xfd.c
index 3ffd84a..c339acf 100644
--- a/xfd.c
+++ b/xfd.c
@@ -183,7 +183,6 @@ main(int argc, char *argv[])
XftFont *xft;
#endif
char *fontname;
- const char *domaindir;
long minn, maxn;
XtSetLanguageProc(NULL, NULL, NULL);
@@ -195,13 +194,17 @@ main(int argc, char *argv[])
&argc, argv, NULL, NULL, 0);
#ifdef USE_GETTEXT
- textdomain("xfd");
+ {
+ const char *domaindir;
+
+ textdomain("xfd");
- /* mainly for debugging */
- if ((domaindir = getenv ("TEXTDOMAINDIR")) == NULL) {
- domaindir = LOCALEDIR;
+ /* mainly for debugging */
+ if ((domaindir = getenv ("TEXTDOMAINDIR")) == NULL) {
+ domaindir = LOCALEDIR;
+ }
+ bindtextdomain ("xfd", domaindir);
}
- bindtextdomain ("xfd", domaindir);
#endif
Resources[0].default_addr = gettext(DEF_SELECT_FORMAT);