aboutsummaryrefslogtreecommitdiff
path: root/util
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
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')
-rw-r--r--util/fbsetroot.cc2
-rw-r--r--util/fluxbox-update_configs.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/util/fbsetroot.cc b/util/fbsetroot.cc
index 28ad26e..07f6b68 100644
--- a/util/fbsetroot.cc
+++ b/util/fbsetroot.cc
@@ -370,7 +370,7 @@ int main(int argc, char **argv) {
370 char *display_name = (char *) 0; 370 char *display_name = (char *) 0;
371 int i = 1; 371 int i = 1;
372 372
373 FbTk::I18n::init("fluxbox.cat"); 373 FbTk::I18n::init(0);
374 374
375 for (; i < argc; i++) { 375 for (; i < argc; i++) {
376 if (!strcmp(argv[i], "-display") || !strcmp(argv[i], "--display")) { 376 if (!strcmp(argv[i], "-display") || !strcmp(argv[i], "--display")) {
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++) {