summaryrefslogtreecommitdiff
path: root/src/gui/partywindow.cpp
diff options
context:
space:
mode:
authorKess Vargavind <vargavind@gmail.com>2009-05-21 09:38:06 +0200
committerDavid Athay <ko2fan@gmail.com>2009-05-21 11:03:37 +0100
commit9712489ef67f95d6a5fa1fc3102bb7c4ee6a1f59 (patch)
treec6e13d9379916588114d77ab2aae498b76f82078 /src/gui/partywindow.cpp
parent2dad08e4e8e199c84da6a6f2f5289c8c0e40fc81 (diff)
downloadmana-client-9712489ef67f95d6a5fa1fc3102bb7c4ee6a1f59.tar.gz
mana-client-9712489ef67f95d6a5fa1fc3102bb7c4ee6a1f59.tar.bz2
mana-client-9712489ef67f95d6a5fa1fc3102bb7c4ee6a1f59.tar.xz
mana-client-9712489ef67f95d6a5fa1fc3102bb7c4ee6a1f59.zip
Fixed a few strings for better translation
Just a few notes that would help us translators immensly: * Please do not split one sentence into several strings * Please try to refrain from inserting extra spaces into the strings
Diffstat (limited to 'src/gui/partywindow.cpp')
-rw-r--r--src/gui/partywindow.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/gui/partywindow.cpp b/src/gui/partywindow.cpp
index 5e384413..f66ffaac 100644
--- a/src/gui/partywindow.cpp
+++ b/src/gui/partywindow.cpp
@@ -171,24 +171,24 @@ void PartyWindow::showPartyInvite(const std::string &inviter,
// check there isnt already an invite showing
if (mPartyInviter != "")
{
- localChatTab->chatLog("Received party request, but one already exists",
- BY_SERVER);
+ localChatTab->chatLog(_("Received party request, but one already "
+ "exists."), BY_SERVER);
return;
}
std::string msg;
// log invite
if (partyName.empty())
- msg = strprintf("%s has invited you to join their party",
+ msg = strprintf(N_("%s has invited you to join their party."),
inviter.c_str());
else
- msg = strprintf("%s has invited you to join the %s party",
+ msg = strprintf(N_("%s has invited you to join the %s party."),
inviter.c_str(), partyName.c_str());
localChatTab->chatLog(msg, BY_SERVER);
// show invite
- acceptDialog = new ConfirmDialog("Accept Party Invite", msg, this);
+ acceptDialog = new ConfirmDialog(_("Accept Party Invite"), msg, this);
acceptDialog->addActionListener(this);
mPartyInviter = inviter;
@@ -201,13 +201,15 @@ void PartyWindow::action(const gcn::ActionEvent &event)
// check if they accepted the invite
if (eventId == "yes")
{
- localChatTab->chatLog("Accepted invite from " + mPartyInviter);
+ localChatTab->chatLog(strprintf(_("Accepted invite from %s."),
+ mPartyInviter.c_str()));
Net::getPartyHandler()->inviteResponse(mPartyInviter, true);
mPartyInviter = "";
}
else if (eventId == "no")
{
- localChatTab->chatLog("Rejected invite from " + mPartyInviter);
+ localChatTab->chatLog(strprintf(_("Rejected invite from %s."),
+ mPartyInviter.c_str()));
Net::getPartyHandler()->inviteResponse(mPartyInviter, false);
mPartyInviter = "";
}