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/chatwindow.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/chatwindow.cpp')
-rw-r--r-- | src/gui/chatwindow.cpp | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp index cde943c68..1213eb030 100644 --- a/src/gui/chatwindow.cpp +++ b/src/gui/chatwindow.cpp @@ -136,19 +136,33 @@ class ChatInput final : public TextField, public gcn::FocusListener const char *COLOR_NAME[14] = { + // TRANSLATORS: chat color N_("default"), + // TRANSLATORS: chat color N_("black"), + // TRANSLATORS: chat color N_("red"), + // TRANSLATORS: chat color N_("green"), + // TRANSLATORS: chat color N_("blue"), + // TRANSLATORS: chat color N_("gold"), + // TRANSLATORS: chat color N_("yellow"), + // TRANSLATORS: chat color N_("pink"), + // TRANSLATORS: chat color N_("purple"), + // TRANSLATORS: chat color N_("grey"), + // TRANSLATORS: chat color N_("brown"), + // TRANSLATORS: chat color N_("rainbow 1"), + // TRANSLATORS: chat color N_("rainbow 2"), + // TRANSLATORS: chat color N_("rainbow 3"), }; @@ -167,8 +181,7 @@ public: virtual std::string getElementAt(int i) { if (i >= getNumberOfElements() || i < 0) - return _("???"); - + return "???"; return gettext(COLOR_NAME[i]); } }; @@ -176,6 +189,7 @@ public: static const char *const ACTION_COLOR_PICKER = "color picker"; ChatWindow::ChatWindow(): + // TRANSLATORS: chat window name Window(_("Chat"), false, nullptr, "chat.xml"), gcn::ActionListener(), gcn::KeyListener(), @@ -717,6 +731,7 @@ void ChatWindow::doPresent() const } } + // TRANSLATORS: chat message std::string log = strprintf(_("Present: %s; %d players are present."), response.c_str(), playercount); @@ -1146,6 +1161,7 @@ void ChatWindow::addWhisper(const std::string &nick, { Net::getChatHandler()->privateMessage(nick, mes); + // TRANSLATORS: chat message localChatTab->chatLog(strprintf(_("Whispering to %s: %s"), nick.c_str(), mes.c_str()), BY_PLAYER); } |