diff options
author | Kess Vargavind <vargavind@gmail.com> | 2009-05-21 09:38:06 +0200 |
---|---|---|
committer | David Athay <ko2fan@gmail.com> | 2009-05-21 11:03:37 +0100 |
commit | 9712489ef67f95d6a5fa1fc3102bb7c4ee6a1f59 (patch) | |
tree | c6e13d9379916588114d77ab2aae498b76f82078 /src/net/tmwserv/partyhandler.cpp | |
parent | 2dad08e4e8e199c84da6a6f2f5289c8c0e40fc81 (diff) | |
download | mana-9712489ef67f95d6a5fa1fc3102bb7c4ee6a1f59.tar.gz mana-9712489ef67f95d6a5fa1fc3102bb7c4ee6a1f59.tar.bz2 mana-9712489ef67f95d6a5fa1fc3102bb7c4ee6a1f59.tar.xz mana-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/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); |