diff options
author | Kess Vargavind <vargavind@gmail.com> | 2009-07-17 14:31:36 +0200 |
---|---|---|
committer | Kess Vargavind <vargavind@gmail.com> | 2009-07-17 15:21:53 +0200 |
commit | 8b0a65f00c0e5afb2c177462acd30013afa99b64 (patch) | |
tree | e34427ff57870c0e96065ccdacd296e9dddd445a /src/gui/setup_video.cpp | |
parent | 18aaa873abcaa617bbd296f73138d062423662b8 (diff) | |
download | mana-8b0a65f00c0e5afb2c177462acd30013afa99b64.tar.gz mana-8b0a65f00c0e5afb2c177462acd30013afa99b64.tar.bz2 mana-8b0a65f00c0e5afb2c177462acd30013afa99b64.tar.xz mana-8b0a65f00c0e5afb2c177462acd30013afa99b64.zip |
Various gettext fixes
* Merged a few split strings
* Fixed some spellings and wordings
* Turned a couple of std::cout and std::cerr into logger messages
Diffstat (limited to 'src/gui/setup_video.cpp')
-rw-r--r-- | src/gui/setup_video.cpp | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/src/gui/setup_video.cpp b/src/gui/setup_video.cpp index a9c892b2..ce815001 100644 --- a/src/gui/setup_video.cpp +++ b/src/gui/setup_video.cpp @@ -192,7 +192,7 @@ Setup_Video::Setup_Video(): mVisibleNamesEnabled)), mParticleEffectsCheckBox(new CheckBox(_("Particle effects"), mParticleEffectsEnabled)), - mNameCheckBox(new CheckBox(_("Show name"), mNameEnabled)), + mNameCheckBox(new CheckBox(_("Show own name"), mNameEnabled)), mPickupNotifyLabel(new Label(_("Show pickup notification"))), mPickupChatCheckBox(new CheckBox(_("in chat"), mPickupChatEnabled)), mPickupParticleCheckBox(new CheckBox(_("as particle"), @@ -352,12 +352,20 @@ void Setup_Video::apply() fullscreen = !fullscreen; if (!graphics->setFullscreen(fullscreen)) { - std::stringstream error; - error << _("Failed to switch to ") << - (fullscreen ? _("windowed") : _("fullscreen")) << - _("mode and restoration of old mode also failed!") << - std::endl; - logger->error(error.str()); + std::stringstream errorMessage; + if (fullscreen) + { + errorMessage << _("Failed to switch to windowed mode " + "and restoration of old mode also " + "failed!") << std::endl; + } + else + { + errorMessage << _("Failed to switch to fullscreen mode " + "and restoration of old mode also " + "failed!") << std::endl; + } + logger->error(errorMessage.str()); } } #if defined(WIN32) || defined(__APPLE__) |