diff options
author | rathnor <rathnor> | 2004-06-07 11:46:05 (GMT) |
---|---|---|
committer | rathnor <rathnor> | 2004-06-07 11:46:05 (GMT) |
commit | fff4456dee29e675d7f2ed3490db39bcb7e10e53 (patch) | |
tree | 2d2dbf386551773cbdc8231b2a93b493187bd733 /src/Workspace.cc | |
parent | 073065ac56b388db1169108d44f37d32f1d19c67 (diff) | |
download | fluxbox_pavel-fff4456dee29e675d7f2ed3490db39bcb7e10e53.zip fluxbox_pavel-fff4456dee29e675d7f2ed3490db39bcb7e10e53.tar.bz2 |
update NLS string handling...
Diffstat (limited to 'src/Workspace.cc')
-rw-r--r-- | src/Workspace.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/Workspace.cc b/src/Workspace.cc index 87c32c4..b9776d7 100644 --- a/src/Workspace.cc +++ b/src/Workspace.cc | |||
@@ -22,17 +22,17 @@ | |||
22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 22 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
23 | // DEALINGS IN THE SOFTWARE. | 23 | // DEALINGS IN THE SOFTWARE. |
24 | 24 | ||
25 | // $Id: Workspace.cc,v 1.96 2004/05/13 01:48:18 rathnor Exp $ | 25 | // $Id: Workspace.cc,v 1.97 2004/06/07 11:46:04 rathnor Exp $ |
26 | 26 | ||
27 | #include "Workspace.hh" | 27 | #include "Workspace.hh" |
28 | 28 | ||
29 | #include "I18n.hh" | ||
30 | #include "fluxbox.hh" | 29 | #include "fluxbox.hh" |
31 | #include "Screen.hh" | 30 | #include "Screen.hh" |
32 | #include "Window.hh" | 31 | #include "Window.hh" |
33 | #include "WinClient.hh" | 32 | #include "WinClient.hh" |
34 | #include "FbWinFrame.hh" | 33 | #include "FbWinFrame.hh" |
35 | 34 | ||
35 | #include "FbTk/I18n.hh" | ||
36 | #include "FbTk/MenuItem.hh" | 36 | #include "FbTk/MenuItem.hh" |
37 | #include "FbTk/StringUtil.hh" | 37 | #include "FbTk/StringUtil.hh" |
38 | 38 | ||
@@ -352,11 +352,12 @@ void Workspace::setName(const std::string &name) { | |||
352 | if (!name.empty()) { | 352 | if (!name.empty()) { |
353 | m_name = name; | 353 | m_name = name; |
354 | } else { //if name == 0 then set default name from nls | 354 | } else { //if name == 0 then set default name from nls |
355 | _FB_USES_NLS; | ||
355 | char tname[128]; | 356 | char tname[128]; |
356 | sprintf(tname, I18n::instance()-> | 357 | sprintf(tname, |
357 | getMessage(FBNLS::WorkspaceSet, | 358 | _FBTEXT(Workspace, DefaultNameFormat, |
358 | FBNLS::WorkspaceDefaultNameFormat, | 359 | "Workspace %d", "Default workspace names, with a %d for the workspace number"), |
359 | "Workspace %d"), m_id + 1); //m_id starts at 0 | 360 | m_id + 1); //m_id starts at 0 |
360 | m_name = tname; | 361 | m_name = tname; |
361 | } | 362 | } |
362 | 363 | ||