summaryrefslogtreecommitdiff
path: root/src/net/ea/gui/partytab.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-05-03 12:33:11 +0300
committerAndrei Karas <akaras@inbox.ru>2013-05-03 12:51:43 +0300
commit04fbf07c41bf78dea11aa9b7098c80f0da3801e3 (patch)
tree05df787f04d3d59a6d3c0711a895d77018d84b6b /src/net/ea/gui/partytab.cpp
parenta3855d22fce6a33ace394f50f33571e489bab299 (diff)
downloadmv-04fbf07c41bf78dea11aa9b7098c80f0da3801e3.tar.gz
mv-04fbf07c41bf78dea11aa9b7098c80f0da3801e3.tar.bz2
mv-04fbf07c41bf78dea11aa9b7098c80f0da3801e3.tar.xz
mv-04fbf07c41bf78dea11aa9b7098c80f0da3801e3.zip
add comments for translators.
Diffstat (limited to 'src/net/ea/gui/partytab.cpp')
-rw-r--r--src/net/ea/gui/partytab.cpp35
1 files changed, 35 insertions, 0 deletions
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: