diff options
author | Mathias Gumz <akira@fluxbox.org> | 2015-01-31 20:37:44 (GMT) |
---|---|---|
committer | Mathias Gumz <akira@fluxbox.org> | 2015-01-31 20:37:44 (GMT) |
commit | fff0abad765714d967614cfa871e37efca956194 (patch) | |
tree | b4ee31f5611dcf0ffbef0b1ccc950d9f07e4d83e /src/cli_info.cc | |
parent | 57f21b64ca27cf29212cd0d5184823cf2b0d694e (diff) | |
download | fluxbox-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_info.cc')
-rw-r--r-- | src/cli_info.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/cli_info.cc b/src/cli_info.cc index 6156d56..dab6029 100644 --- a/src/cli_info.cc +++ b/src/cli_info.cc | |||
@@ -72,22 +72,25 @@ void FluxboxCli::showInfo(ostream &ostr) { | |||
72 | <<_FB_CONSOLETEXT(Common, Defaults, "Defaults", "Default values compiled in") | 72 | <<_FB_CONSOLETEXT(Common, Defaults, "Defaults", "Default values compiled in") |
73 | << ": " << endl; | 73 | << ": " << endl; |
74 | 74 | ||
75 | ostr <<_FB_CONSOLETEXT(Common, DefaultMenuFile, " menu", "default menu file (right aligned - make sure same width as other default values)") | 75 | ostr <<_FB_CONSOLETEXT(Common, DefaultMenuFile, " menu", "default menu file (right aligned - make sure same width as other default values)") |
76 | << ": " | 76 | << ": " |
77 | << FbTk::StringUtil::expandFilename(DEFAULTMENU) << endl; | 77 | << FbTk::StringUtil::expandFilename(DEFAULTMENU) << endl; |
78 | ostr << _FB_CONSOLETEXT(Common, DefaultStyle, " style", "default style (right aligned - make sure same width as other default values)") | 78 | ostr <<_FB_CONSOLETEXT(Common, DefaultWindowMenuFile, " windowmenu", "default windowmenu file (right aligned - make sure same width as other default values)") |
79 | << ": " | ||
80 | << FbTk::StringUtil::expandFilename(DEFAULT_WINDOWMENU) << endl; | ||
81 | ostr << _FB_CONSOLETEXT(Common, DefaultStyle, " style", "default style (right aligned - make sure same width as other default values)") | ||
79 | << ": " | 82 | << ": " |
80 | << FbTk::StringUtil::expandFilename(DEFAULTSTYLE) << endl; | 83 | << FbTk::StringUtil::expandFilename(DEFAULTSTYLE) << endl; |
81 | 84 | ||
82 | ostr << _FB_CONSOLETEXT(Common, DefaultKeyFile, " keys", "default key file (right aligned - make sure same width as other default values)") | 85 | ostr << _FB_CONSOLETEXT(Common, DefaultKeyFile, " keys", "default key file (right aligned - make sure same width as other default values)") |
83 | << ": " | 86 | << ": " |
84 | << FbTk::StringUtil::expandFilename(DEFAULTKEYSFILE) << endl; | 87 | << FbTk::StringUtil::expandFilename(DEFAULTKEYSFILE) << endl; |
85 | ostr << _FB_CONSOLETEXT(Common, DefaultInitFile, " init", "default init file (right aligned - make sure same width as other default values)") | 88 | ostr << _FB_CONSOLETEXT(Common, DefaultInitFile, " init", "default init file (right aligned - make sure same width as other default values)") |
86 | << ": " | 89 | << ": " |
87 | << FbTk::StringUtil::expandFilename(DEFAULT_INITFILE) << endl; | 90 | << FbTk::StringUtil::expandFilename(DEFAULT_INITFILE) << endl; |
88 | 91 | ||
89 | #ifdef NLS | 92 | #ifdef NLS |
90 | ostr << _FB_CONSOLETEXT(Common, DefaultLocalePath, " nls", "location for localization files (right aligned - make sure same width as other default values)") | 93 | ostr << _FB_CONSOLETEXT(Common, DefaultLocalePath, " nls", "location for localization files (right aligned - make sure same width as other default values)") |
91 | << ": " | 94 | << ": " |
92 | << FbTk::StringUtil::expandFilename(LOCALEPATH) << endl; | 95 | << FbTk::StringUtil::expandFilename(LOCALEPATH) << endl; |
93 | #endif | 96 | #endif |