aboutsummaryrefslogtreecommitdiff
path: root/util/fluxbox-update_configs.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 /util/fluxbox-update_configs.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 'util/fluxbox-update_configs.cc')
-rw-r--r--util/fluxbox-update_configs.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/fluxbox-update_configs.cc b/util/fluxbox-update_configs.cc
index a7d3d4a..4065f97 100644
--- a/util/fluxbox-update_configs.cc
+++ b/util/fluxbox-update_configs.cc
@@ -565,7 +565,7 @@ int main(int argc, char **argv) {
565 bool check = 0; 565 bool check = 0;
566 pid_t fb_pid = 0; 566 pid_t fb_pid = 0;
567 567
568 FbTk::I18n::init("fluxbox.cat"); 568 FbTk::I18n::init(0);
569 _FB_USES_NLS; 569 _FB_USES_NLS;
570 570
571 for (; i < argc; i++) { 571 for (; i < argc; i++) {