diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-03 12:33:11 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-03 12:51:43 +0300 |
commit | 04fbf07c41bf78dea11aa9b7098c80f0da3801e3 (patch) | |
tree | 05df787f04d3d59a6d3c0711a895d77018d84b6b /src/net/ea/gui | |
parent | a3855d22fce6a33ace394f50f33571e489bab299 (diff) | |
download | manaverse-04fbf07c41bf78dea11aa9b7098c80f0da3801e3.tar.gz manaverse-04fbf07c41bf78dea11aa9b7098c80f0da3801e3.tar.bz2 manaverse-04fbf07c41bf78dea11aa9b7098c80f0da3801e3.tar.xz manaverse-04fbf07c41bf78dea11aa9b7098c80f0da3801e3.zip |
add comments for translators.
Diffstat (limited to 'src/net/ea/gui')
-rw-r--r-- | src/net/ea/gui/guildtab.cpp | 10 | ||||
-rw-r--r-- | src/net/ea/gui/partytab.cpp | 35 |
2 files changed, 45 insertions, 0 deletions
diff --git a/src/net/ea/gui/guildtab.cpp b/src/net/ea/gui/guildtab.cpp index 0a1fb7314..aa89309b1 100644 --- a/src/net/ea/gui/guildtab.cpp +++ b/src/net/ea/gui/guildtab.cpp @@ -44,6 +44,7 @@ namespace Ea extern Guild *taGuild; GuildTab::GuildTab(const Widget2 *const widget) : + // TRANSLATORS: guild chat tab name ChatTab(widget, _("Guild"), "") { setTabColor(&getThemeColor(Theme::GUILD_CHAT_TAB), @@ -67,14 +68,19 @@ bool GuildTab::handleCommand(const std::string &type, const std::string &args) { if (args == "invite") { + // TRANSLATORS: guild chat help chatLog(_("Command: /invite <nick>")); + // TRANSLATORS: guild chat help chatLog(_("This command invites <nick> to the guild you're in.")); + // TRANSLATORS: guild chat help chatLog(_("If the <nick> has spaces in it, enclose it in " "double quotes (\").")); } else if (args == "leave") { + // TRANSLATORS: guild chat help chatLog(_("Command: /leave")); + // TRANSLATORS: guild chat help chatLog(_("This command causes the player to leave the guild.")); } else @@ -135,9 +141,13 @@ void GuildTab::handleInput(const std::string &msg) void GuildTab::showHelp() { + // TRANSLATORS: guild chat help chatLog(_("/help > Display this help.")); + // TRANSLATORS: guild chat help chatLog(_("/invite > Invite a player to your guild")); + // TRANSLATORS: guild chat help chatLog(_("/leave > Leave the guild you are in")); + // TRANSLATORS: guild chat help chatLog(_("/kick > Kick some one from the guild you are in")); } diff --git a/src/net/ea/gui/partytab.cpp b/src/net/ea/gui/partytab.cpp index b8dd6aece..5b3184038 100644 --- a/src/net/ea/gui/partytab.cpp +++ b/src/net/ea/gui/partytab.cpp @@ -44,6 +44,7 @@ namespace Ea { PartyTab::PartyTab(const Widget2 *const widget) : + // TRANSLATORS: party chat tab name ChatTab(widget, _("Party"), "") { setTabColor(&getThemeColor(Theme::PARTY_CHAT_TAB), @@ -68,11 +69,17 @@ void PartyTab::handleInput(const std::string &msg) void PartyTab::showHelp() { + // TRANSLATORS: party help message chatLog(_("/help > Display this help.")); + // TRANSLATORS: party help message chatLog(_("/invite > Invite a player to your party")); + // TRANSLATORS: party help message chatLog(_("/leave > Leave the party you are in")); + // TRANSLATORS: party help message chatLog(_("/kick > Kick some one from the party you are in")); + // TRANSLATORS: party help message chatLog(_("/item > Show/change party item sharing options")); + // TRANSLATORS: party help message chatLog(_("/exp > Show/change party experience sharing options")); } @@ -82,37 +89,52 @@ bool PartyTab::handleCommand(const std::string &type, const std::string &args) { if (args == "invite") { + // TRANSLATORS: party help message chatLog(_("Command: /invite <nick>")); + // TRANSLATORS: party help message chatLog(_("This command invites <nick> to party with you.")); + // TRANSLATORS: party help message chatLog(_("If the <nick> has spaces in it, enclose it in " "double quotes (\").")); } else if (args == "leave") { + // TRANSLATORS: party help message chatLog(_("Command: /leave")); + // TRANSLATORS: party help message chatLog(_("This command causes the player to leave the party.")); } else if (args == "item") { + // TRANSLATORS: party help message chatLog(_("Command: /item <policy>")); + // TRANSLATORS: party help message chatLog( _("This command changes the party's item sharing policy.")); + // TRANSLATORS: party help message chatLog(_("<policy> can be one of \"1\", \"yes\", \"true\" to " "enable item sharing, or \"0\", \"no\", \"false\" to " "disable item sharing.")); + // TRANSLATORS: party help message chatLog(_("Command: /item")); + // TRANSLATORS: party help message chatLog(_("This command displays the party's" " current item sharing policy.")); } else if (args == "exp") { + // TRANSLATORS: party help message chatLog(_("Command: /exp <policy>")); + // TRANSLATORS: party help message chatLog(_("This command changes the party's " "experience sharing policy.")); + // TRANSLATORS: party help message chatLog(_("<policy> can be one of \"1\", \"yes\", \"true\" to " "enable experience sharing, or \"0\"," " \"no\", \"false\" to disable experience sharing.")); + // TRANSLATORS: party help message chatLog(_("Command: /exp")); + // TRANSLATORS: party help message chatLog(_("This command displays the party's current " "experience sharing policy.")); } @@ -124,9 +146,14 @@ bool PartyTab::handleCommand(const std::string &type, const std::string &args) else if (type == "create" || type == "new") { if (args.empty()) + { + // TRANSLATORS: chat error message chatLog(_("Party name is missing."), BY_SERVER); + } else + { Net::getPartyHandler()->create(args); + } } else if (type == "invite") { @@ -147,15 +174,19 @@ bool PartyTab::handleCommand(const std::string &type, const std::string &args) switch (Net::getPartyHandler()->getShareItems()) { case PARTY_SHARE: + // TRANSLATORS: chat message chatLog(_("Item sharing enabled."), BY_SERVER); return true; case PARTY_SHARE_NO: + // TRANSLATORS: chat message chatLog(_("Item sharing disabled."), BY_SERVER); return true; case PARTY_SHARE_NOT_POSSIBLE: + // TRANSLATORS: chat message chatLog(_("Item sharing not possible."), BY_SERVER); return true; case PARTY_SHARE_UNKNOWN: + // TRANSLATORS: chat message chatLog(_("Item sharing unknown."), BY_SERVER); return true; default: @@ -187,15 +218,19 @@ bool PartyTab::handleCommand(const std::string &type, const std::string &args) switch (Net::getPartyHandler()->getShareExperience()) { case PARTY_SHARE: + // TRANSLATORS: chat message chatLog(_("Experience sharing enabled."), BY_SERVER); return true; case PARTY_SHARE_NO: + // TRANSLATORS: chat message chatLog(_("Experience sharing disabled."), BY_SERVER); return true; case PARTY_SHARE_NOT_POSSIBLE: + // TRANSLATORS: chat message chatLog(_("Experience sharing not possible."), BY_SERVER); return true; case PARTY_SHARE_UNKNOWN: + // TRANSLATORS: chat message chatLog(_("Experience sharing unknown."), BY_SERVER); return true; default: |