diff options
author | Pavel Labath <pavelo@centrum.sk> | 2011-08-06 09:39:01 (GMT) |
---|---|---|
committer | Paul Tagliamonte <paultag@fluxbox.org> | 2012-04-07 02:13:12 (GMT) |
commit | 1e35020b456e164868389ae10742bd0685a40f1b (patch) | |
tree | bb563ad27cc165203db6757073ac235778475ef0 /src/Keys.cc | |
parent | 1b03ffa8201f3bc0a048f0e25928015de248a9f5 (diff) | |
download | fluxbox_paul-1e35020b456e164868389ae10742bd0685a40f1b.zip fluxbox_paul-1e35020b456e164868389ae10742bd0685a40f1b.tar.bz2 |
Add new translations to the C locale and fluxbox-nls.hh
Diffstat (limited to 'src/Keys.cc')
-rw-r--r-- | src/Keys.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Keys.cc b/src/Keys.cc index 0a40a87..2fb11f9 100644 --- a/src/Keys.cc +++ b/src/Keys.cc | |||
@@ -223,6 +223,7 @@ int Keys::t_key::newindex(lua::state *l) | |||
223 | } else if(l->isnil(3)) | 223 | } else if(l->isnil(3)) |
224 | k2.reset(); | 224 | k2.reset(); |
225 | else { | 225 | else { |
226 | _FB_USES_NLS; | ||
226 | throw KeyError(_FB_CONSOLETEXT(Keys, Bad3rdArg, "3rd argument is not a command.", | 227 | throw KeyError(_FB_CONSOLETEXT(Keys, Bad3rdArg, "3rd argument is not a command.", |
227 | "3rd argument is not a command.")); | 228 | "3rd argument is not a command.")); |
228 | } | 229 | } |
@@ -578,6 +579,7 @@ void Keys::reload() { | |||
578 | l.call(0, 0); | 579 | l.call(0, 0); |
579 | } | 580 | } |
580 | catch(std::runtime_error &e) { | 581 | catch(std::runtime_error &e) { |
582 | _FB_USES_NLS; | ||
581 | cerr << _FB_CONSOLETEXT(Keys, LoadError, "Error loading keys file: ", | 583 | cerr << _FB_CONSOLETEXT(Keys, LoadError, "Error loading keys file: ", |
582 | "Actual error message follows") << e.what() << endl; | 584 | "Actual error message follows") << e.what() << endl; |
583 | loadDefaults(l); | 585 | loadDefaults(l); |