From 04fbf07c41bf78dea11aa9b7098c80f0da3801e3 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 3 May 2013 12:33:11 +0300 Subject: add comments for translators. --- src/net/ea/gui/partytab.cpp | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) (limited to 'src/net/ea/gui/partytab.cpp') 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 ")); + // TRANSLATORS: party help message chatLog(_("This command invites to party with you.")); + // TRANSLATORS: party help message chatLog(_("If the 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 ")); + // TRANSLATORS: party help message chatLog( _("This command changes the party's item sharing policy.")); + // TRANSLATORS: party help message chatLog(_(" 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 ")); + // TRANSLATORS: party help message chatLog(_("This command changes the party's " "experience sharing policy.")); + // TRANSLATORS: party help message chatLog(_(" 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: -- cgit v1.2.3-60-g2f50