diff options
author | simonb <simonb> | 2006-06-21 14:41:16 (GMT) |
---|---|---|
committer | simonb <simonb> | 2006-06-21 14:41:16 (GMT) |
commit | 3ada3b1f0d6d2debaaab48eecf828a406e964c8e (patch) | |
tree | 3c2f02462317408ee8604d0c7bb41092ecfd1c3a /src/Remember.cc | |
parent | 62a298b0b30aa5b4990f462aece224e09e4fafe6 (diff) | |
download | fluxbox-3ada3b1f0d6d2debaaab48eecf828a406e964c8e.zip fluxbox-3ada3b1f0d6d2debaaab48eecf828a406e964c8e.tar.bz2 |
fix nls... notably classify text on conversion whether its for X or
console, plus handle catalogs better.
Diffstat (limited to 'src/Remember.cc')
-rw-r--r-- | src/Remember.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/Remember.cc b/src/Remember.cc index 1e70f09..99a0d1d 100644 --- a/src/Remember.cc +++ b/src/Remember.cc | |||
@@ -129,25 +129,25 @@ FbTk::Menu *createRememberMenu(BScreen &screen) { | |||
129 | } | 129 | } |
130 | */ | 130 | */ |
131 | _FB_USES_NLS; | 131 | _FB_USES_NLS; |
132 | menu->insert(new RememberMenuItem(_FBTEXT(Remember, Workspace, "Workspace", "Remember Workspace"), | 132 | menu->insert(new RememberMenuItem(_FB_XTEXT(Remember, Workspace, "Workspace", "Remember Workspace"), |
133 | Remember::REM_WORKSPACE)); | 133 | Remember::REM_WORKSPACE)); |
134 | menu->insert(new RememberMenuItem(_FBTEXT(Remember, JumpToWorkspace, "Jump to workspace", "Change active workspace to remembered one on open"), | 134 | menu->insert(new RememberMenuItem(_FB_XTEXT(Remember, JumpToWorkspace, "Jump to workspace", "Change active workspace to remembered one on open"), |
135 | Remember::REM_JUMPWORKSPACE)); | 135 | Remember::REM_JUMPWORKSPACE)); |
136 | menu->insert(new RememberMenuItem(_FBTEXT(Remember, Head, "Head", "Remember Head"), | 136 | menu->insert(new RememberMenuItem(_FB_XTEXT(Remember, Head, "Head", "Remember Head"), |
137 | Remember::REM_HEAD)); | 137 | Remember::REM_HEAD)); |
138 | menu->insert(new RememberMenuItem(_FBTEXT(Remember, Dimensions, "Dimensions", "Remember Dimensions - with width and height"), | 138 | menu->insert(new RememberMenuItem(_FB_XTEXT(Remember, Dimensions, "Dimensions", "Remember Dimensions - with width and height"), |
139 | Remember::REM_DIMENSIONS)); | 139 | Remember::REM_DIMENSIONS)); |
140 | menu->insert(new RememberMenuItem(_FBTEXT(Remember, Position, "Position", "Remember position - window co-ordinates"), | 140 | menu->insert(new RememberMenuItem(_FB_XTEXT(Remember, Position, "Position", "Remember position - window co-ordinates"), |
141 | Remember::REM_POSITION)); | 141 | Remember::REM_POSITION)); |
142 | menu->insert(new RememberMenuItem(_FBTEXT(Remember, Sticky, "Sticky", "Remember Sticky"), | 142 | menu->insert(new RememberMenuItem(_FB_XTEXT(Remember, Sticky, "Sticky", "Remember Sticky"), |
143 | Remember::REM_STUCKSTATE)); | 143 | Remember::REM_STUCKSTATE)); |
144 | menu->insert(new RememberMenuItem(_FBTEXT(Remember, Decorations, "Decorations", "Remember window decorations"), | 144 | menu->insert(new RememberMenuItem(_FB_XTEXT(Remember, Decorations, "Decorations", "Remember window decorations"), |
145 | Remember::REM_DECOSTATE)); | 145 | Remember::REM_DECOSTATE)); |
146 | menu->insert(new RememberMenuItem(_FBTEXT(Remember, Shaded, "Shaded", "Remember shaded"), | 146 | menu->insert(new RememberMenuItem(_FB_XTEXT(Remember, Shaded, "Shaded", "Remember shaded"), |
147 | Remember::REM_SHADEDSTATE)); | 147 | Remember::REM_SHADEDSTATE)); |
148 | menu->insert(new RememberMenuItem(_FBTEXT(Remember, Layer, "Layer", "Remember Layer"), | 148 | menu->insert(new RememberMenuItem(_FB_XTEXT(Remember, Layer, "Layer", "Remember Layer"), |
149 | Remember::REM_LAYER)); | 149 | Remember::REM_LAYER)); |
150 | menu->insert(new RememberMenuItem(_FBTEXT(Remember, SaveOnClose, "Save on close", "Save remembered attributes on close"), | 150 | menu->insert(new RememberMenuItem(_FB_XTEXT(Remember, SaveOnClose, "Save on close", "Save remembered attributes on close"), |
151 | Remember::REM_SAVEONCLOSE)); | 151 | Remember::REM_SAVEONCLOSE)); |
152 | 152 | ||
153 | menu->updateMenu(); | 153 | menu->updateMenu(); |
@@ -463,7 +463,7 @@ int Remember::parseApp(std::ifstream &file, Application &app, std::string *first | |||
463 | } else if (strcasecmp(str_key.c_str(), "end") == 0) { | 463 | } else if (strcasecmp(str_key.c_str(), "end") == 0) { |
464 | return row; | 464 | return row; |
465 | } else { | 465 | } else { |
466 | cerr << _FBTEXT(Remember, Unknown, "Unknown apps key", "apps entry type not known")<<" = " << str_key << endl; | 466 | cerr << _FB_CONSOLETEXT(Remember, Unknown, "Unknown apps key", "apps entry type not known")<<" = " << str_key << endl; |
467 | } | 467 | } |
468 | if (had_error) { | 468 | if (had_error) { |
469 | cerr<<"Error parsing apps entry: ("<<line<<")"<<endl; | 469 | cerr<<"Error parsing apps entry: ("<<line<<")"<<endl; |
@@ -1083,7 +1083,7 @@ void Remember::updateClientClose(WinClient &winclient) { | |||
1083 | void Remember::initForScreen(BScreen &screen) { | 1083 | void Remember::initForScreen(BScreen &screen) { |
1084 | // All windows get the remember menu. | 1084 | // All windows get the remember menu. |
1085 | _FB_USES_NLS; | 1085 | _FB_USES_NLS; |
1086 | screen.addExtraWindowMenu(_FBTEXT(Remember, MenuItemName, "Remember...", "Remember item in menu"), | 1086 | screen.addExtraWindowMenu(_FB_XTEXT(Remember, MenuItemName, "Remember...", "Remember item in menu"), |
1087 | createRememberMenu(screen)); | 1087 | createRememberMenu(screen)); |
1088 | 1088 | ||
1089 | } | 1089 | } |