diff options
author | Kess Vargavind <vargavind@gmail.com> | 2009-05-21 09:38:06 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-23 21:44:50 +0200 |
commit | ee6aea38c7d3dba0c4b6dab7f22f303dfbc14019 (patch) | |
tree | de48c84dabb09e8307760f0bf90e6479366a6bfa /src/net/tmwserv/partyhandler.cpp | |
parent | cf9caaefeb69cafcf273028d12f074d5d1737bf9 (diff) | |
download | mana-ee6aea38c7d3dba0c4b6dab7f22f303dfbc14019.tar.gz mana-ee6aea38c7d3dba0c4b6dab7f22f303dfbc14019.tar.bz2 mana-ee6aea38c7d3dba0c4b6dab7f22f303dfbc14019.tar.xz mana-ee6aea38c7d3dba0c4b6dab7f22f303dfbc14019.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
(cherry picked from commit 9712489ef67f95d6a5fa1fc3102bb7c4ee6a1f59)
Diffstat (limited to 'src/net/tmwserv/partyhandler.cpp')
-rw-r--r-- | src/net/tmwserv/partyhandler.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/net/tmwserv/partyhandler.cpp b/src/net/tmwserv/partyhandler.cpp index 47ef791c..557a3a43 100644 --- a/src/net/tmwserv/partyhandler.cpp +++ b/src/net/tmwserv/partyhandler.cpp @@ -35,6 +35,9 @@ #include "log.h" #include "localplayer.h" +#include "utils/gettext.h" +#include "utils/stringutils.h" + #include <iostream> Net::PartyHandler *partyHandler; @@ -80,7 +83,7 @@ void PartyHandler::handleMessage(MessageIn &msg) if (msg.readInt8() == ERRMSG_OK) { player_node->setInParty(true); - localChatTab->chatLog("Joined party"); + localChatTab->chatLog(_("Joined party.")); } } @@ -97,7 +100,8 @@ void PartyHandler::handleMessage(MessageIn &msg) int id = msg.readInt16(); // being id std::string name = msg.readString(); - localChatTab->chatLog(name + " joined the party"); + localChatTab->chatLog(strprintf(_("%s joined the " + "party."), name.c_str())); if (!player_node->isInParty()) player_node->setInParty(true); |