diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-03 12:35:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-03 12:51:43 +0300 |
commit | a7c723b681ddefdcaa84cb9b16681c65818d7110 (patch) | |
tree | 3c7100a90db00c3eacc41977cdb5bbae99e6ca40 /src/gui/widgets/chattab.cpp | |
parent | 04fbf07c41bf78dea11aa9b7098c80f0da3801e3 (diff) | |
download | manaverse-a7c723b681ddefdcaa84cb9b16681c65818d7110.tar.gz manaverse-a7c723b681ddefdcaa84cb9b16681c65818d7110.tar.bz2 manaverse-a7c723b681ddefdcaa84cb9b16681c65818d7110.tar.xz manaverse-a7c723b681ddefdcaa84cb9b16681c65818d7110.zip |
add comments for translators
Diffstat (limited to 'src/gui/widgets/chattab.cpp')
-rw-r--r-- | src/gui/widgets/chattab.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/widgets/chattab.cpp b/src/gui/widgets/chattab.cpp index 95f46385b..09b3bea6b 100644 --- a/src/gui/widgets/chattab.cpp +++ b/src/gui/widgets/chattab.cpp @@ -148,11 +148,13 @@ void ChatTab::chatLog(std::string line, Own own, case BY_GM: if (tmp.nick.empty()) { + // TRANSLATORS: chat message tmp.nick = std::string(_("Global announcement:")).append(" "); lineColor = "##G"; } else { + // TRANSLATORS: chat message tmp.nick = strprintf(_("Global announcement from %s:"), tmp.nick.c_str()).append(" "); lineColor = "##1"; // Equiv. to BrowserBox::RED @@ -168,6 +170,7 @@ void ChatTab::chatLog(std::string line, Own own, lineColor = "##C"; break; case BY_SERVER: + // TRANSLATORS: chat message tmp.nick = std::string(_("Server:")).append(" "); tmp.text = line; lineColor = "##S"; @@ -177,6 +180,7 @@ void ChatTab::chatLog(std::string line, Own own, lineColor = "##2"; // Equiv. to BrowserBox::GREEN break; case ACT_WHISPER: + // TRANSLATORS: chat message tmp.nick = strprintf(_("%s whispers: %s"), tmp.nick.c_str(), ""); lineColor = "##W"; break; @@ -520,7 +524,13 @@ void ChatTab::showOnline(const std::string &nick, return; if (isOnline) + { + // TRANSLATORS: chat message chatLog(strprintf(_("%s is now Online."), nick.c_str())); + } else + { + // TRANSLATORS: chat message chatLog(strprintf(_("%s is now Offline."), nick.c_str())); + } } |