aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Keys.cc2
-rw-r--r--src/MenuCreator.cc2
-rw-r--r--src/Screen.cc4
3 files changed, 7 insertions, 1 deletions
diff --git a/src/Keys.cc b/src/Keys.cc
index 5b88434..0a3d856 100644
--- a/src/Keys.cc
+++ b/src/Keys.cc
@@ -221,6 +221,7 @@ int Keys::t_key::newindex(lua::state *l)
221 } else if(l->isnil(3)) 221 } else if(l->isnil(3))
222 k2.reset(); 222 k2.reset();
223 else { 223 else {
224 _FB_USES_NLS;
224 throw KeyError(_FB_CONSOLETEXT(Keys, Bad3rdArg, "3rd argument is not a command.", 225 throw KeyError(_FB_CONSOLETEXT(Keys, Bad3rdArg, "3rd argument is not a command.",
225 "3rd argument is not a command.")); 226 "3rd argument is not a command."));
226 } 227 }
@@ -572,6 +573,7 @@ void Keys::reload() {
572 l.call(0, 0); 573 l.call(0, 0);
573 } 574 }
574 catch(std::runtime_error &e) { 575 catch(std::runtime_error &e) {
576 _FB_USES_NLS;
575 cerr << _FB_CONSOLETEXT(Keys, LoadError, "Error loading keys file: ", 577 cerr << _FB_CONSOLETEXT(Keys, LoadError, "Error loading keys file: ",
576 "Actual error message follows") << e.what() << endl; 578 "Actual error message follows") << e.what() << endl;
577 loadDefaults(l); 579 loadDefaults(l);
diff --git a/src/MenuCreator.cc b/src/MenuCreator.cc
index 9898b61..56b90c0 100644
--- a/src/MenuCreator.cc
+++ b/src/MenuCreator.cc
@@ -194,6 +194,7 @@ createMenu_(FbTk::Menu &inject_into, lua::state &l, FbTk::StringConvertor &conv,
194void 194void
195insertMenuItem(lua::state &l, FbTk::Menu &menu, FbTk::StringConvertor &parent_conv, 195insertMenuItem(lua::state &l, FbTk::Menu &menu, FbTk::StringConvertor &parent_conv,
196 FbTk::AutoReloadHelper *reloader) { 196 FbTk::AutoReloadHelper *reloader) {
197 _FB_USES_NLS;
197 lua::stack_sentry s(l, -1); 198 lua::stack_sentry s(l, -1);
198 l.checkstack(1); 199 l.checkstack(1);
199 200
@@ -318,6 +319,7 @@ MenuCreator::createMenu(FbTk::Menu &inject_into, lua::state &l, FbTk::AutoReload
318 lua::stack_sentry s(l, -1); 319 lua::stack_sentry s(l, -1);
319 320
320 if(l.type(-1) != lua::TTABLE) { 321 if(l.type(-1) != lua::TTABLE) {
322 _FB_USES_NLS;
321 cerr << _FB_CONSOLETEXT(Menu, MenuNotTable, "Warning: Menu is not a lua table", 323 cerr << _FB_CONSOLETEXT(Menu, MenuNotTable, "Warning: Menu is not a lua table",
322 "Menu is not a lua table") << endl; 324 "Menu is not a lua table") << endl;
323 return; 325 return;
diff --git a/src/Screen.cc b/src/Screen.cc
index 1acefc1..a051941 100644
--- a/src/Screen.cc
+++ b/src/Screen.cc
@@ -1370,6 +1370,7 @@ void BScreen::rereadMenu() {
1370 MenuCreator::createMenu(*m_rootmenu, l, m_rootmenu->reloadHelper()); 1370 MenuCreator::createMenu(*m_rootmenu, l, m_rootmenu->reloadHelper());
1371 } 1371 }
1372 catch(std::runtime_error &e) { 1372 catch(std::runtime_error &e) {
1373 _FB_USES_NLS;
1373 cerr << _FB_CONSOLETEXT(Menu, RootLoad, "Loading root menu failed: ", 1374 cerr << _FB_CONSOLETEXT(Menu, RootLoad, "Loading root menu failed: ",
1374 "Actual error message follows this string") << e.what() << endl; 1375 "Actual error message follows this string") << e.what() << endl;
1375 } 1376 }
@@ -1407,7 +1408,8 @@ void BScreen::rereadWindowMenu() {
1407 MenuCreator::createMenu(*m_windowmenu, l, m_windowmenu->reloadHelper()); 1408 MenuCreator::createMenu(*m_windowmenu, l, m_windowmenu->reloadHelper());
1408 } 1409 }
1409 catch(std::runtime_error &e) { 1410 catch(std::runtime_error &e) {
1410 cerr << _FB_CONSOLETEXT(Menu, RootLoad, "Loading window menu failed: ", 1411 _FB_USES_NLS;
1412 cerr << _FB_CONSOLETEXT(Menu, WindowLoad, "Loading window menu failed: ",
1411 "Actual error message follows this string") << e.what() << endl; 1413 "Actual error message follows this string") << e.what() << endl;
1412 } 1414 }
1413} 1415}