aboutsummaryrefslogtreecommitdiff
path: root/src/main.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/main.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/main.cc')
-rw-r--r--src/main.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cc b/src/main.cc
index d1b3046..3cc728d 100644
--- a/src/main.cc
+++ b/src/main.cc
@@ -158,7 +158,7 @@ void setupSignalHandling() {
158 158
159int main(int argc, char **argv) { 159int main(int argc, char **argv) {
160 160
161 FbTk::I18n::init("fluxbox.cat"); 161 FbTk::I18n::init(0);
162 162
163 FluxboxCli::Options opts; 163 FluxboxCli::Options opts;
164 int exitcode = opts.parse(argc, argv); 164 int exitcode = opts.parse(argc, argv);