aboutsummaryrefslogtreecommitdiff
path: root/src/cli_options.cc
diff options
context:
space:
mode:
authorMathias Gumz <akira@fluxbox.org>2015-01-31 20:37:44 (GMT)
committerMathias Gumz <akira@fluxbox.org>2015-01-31 20:37:44 (GMT)
commitfff0abad765714d967614cfa871e37efca956194 (patch)
treeb4ee31f5611dcf0ffbef0b1ccc950d9f07e4d83e /src/cli_options.cc
parent57f21b64ca27cf29212cd0d5184823cf2b0d694e (diff)
downloadfluxbox-fff0abad765714d967614cfa871e37efca956194.zip
fluxbox-fff0abad765714d967614cfa871e37efca956194.tar.bz2
Improve I18n support
Among the first steps to produce better i18n support is to test the created translations adhoc without running "make install". To achieve this, fluxbox now honors several environment variables: - NLSPATH: fluxbox won't create the absolute path to the catalog and thus catopen() is free to use NLSPATH as described in the manpage. Example given: "/tmp/%N" will pick "/tmp/fluxbox.cat". %N refers to FLUXBOX_CATFILE. - FLUXBOX_CATFILE: By setting FLUXBOX_CATFILE the users can make fluxbox to use a different name for the catalog file. Default: "fluxbox.cat" - FLUXBOX_CATDIR: Per default fluxbox tries to find FLUXBOX_CATFILE at several places. Setting this environment variable allows to point fluxbox to a different search path for the catalog files. Then, fluxbox tries catopen() first without changing the deduced catalog file name. After that it applies some heuristics to get a good catalog file name.
Diffstat (limited to 'src/cli_options.cc')
-rw-r--r--src/cli_options.cc18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/cli_options.cc b/src/cli_options.cc
index 9e30af7..4440e83 100644
--- a/src/cli_options.cc
+++ b/src/cli_options.cc
@@ -32,22 +32,8 @@
32#include "FbTk/Command.hh" 32#include "FbTk/Command.hh"
33#include "FbTk/CommandParser.hh" 33#include "FbTk/CommandParser.hh"
34 34
35#ifdef HAVE_CONFIG_H 35#include <cstdlib>
36#include "config.h" 36#include <cstring>
37#endif // HAVE_CONFIG_H
38
39#ifdef HAVE_CSTDLIB
40 #include <cstdlib>
41#else
42 #include <stdlib.h>
43#endif
44
45#ifdef HAVE_CSTRING
46 #include <cstring>
47#else
48 #include <string.h>
49#endif
50
51#include <iostream> 37#include <iostream>
52 38
53using std::cerr; 39using std::cerr;