summaryrefslogtreecommitdiff
path: root/src/localplayer.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-02-06 00:16:58 +0300
committerAndrei Karas <akaras@inbox.ru>2012-02-06 00:16:58 +0300
commit0cbb5fdd043733456565f705d1527ec67785a005 (patch)
tree3bed9953abf5bbbfc3d8e285b924cc309054a463 /src/localplayer.cpp
parentbf435a79408d89072f5872ab98449949a8a077b0 (diff)
downloadplus-0cbb5fdd043733456565f705d1527ec67785a005.tar.gz
plus-0cbb5fdd043733456565f705d1527ec67785a005.tar.bz2
plus-0cbb5fdd043733456565f705d1527ec67785a005.tar.xz
plus-0cbb5fdd043733456565f705d1527ec67785a005.zip
Use client data translation. For now language same as gui language.
Fix some untranslated gettext lines.
Diffstat (limited to 'src/localplayer.cpp')
-rw-r--r--src/localplayer.cpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp
index 9fa755e54..81c988d53 100644
--- a/src/localplayer.cpp
+++ b/src/localplayer.cpp
@@ -1714,20 +1714,28 @@ void LocalPlayer::processEvent(Mana::Channels channel,
if (!mMessages.empty())
{
MessagePair pair = mMessages.back();
- if (pair.first.find(" xp") == pair.first.size() - 3)
+ // TRANSLATORS: this is normal experience
+ if (pair.first.find(strprintf(" %s",
+ _("xp"))) == pair.first.size() - 3)
{
mMessages.pop_back();
- pair.first += ", " + toString(change) + " job";
+ // TRANSLATORS: this is job experience
+ pair.first += strprintf (", %d %s",
+ change, _("job"));
mMessages.push_back(pair);
}
else
{
- addMessageToQueue(toString(change) + " job");
+ // TRANSLATORS: this is job experience
+ addMessageToQueue(strprintf("%d %s",
+ change, _("job")));
}
}
else
{
- addMessageToQueue(toString(change) + " job");
+ // TRANSLATORS: this is job experience
+ addMessageToQueue(strprintf(
+ "%d %s", change, _("job")));
}
}
}