diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-02-19 16:58:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-02-19 16:58:38 +0300 |
commit | 87539666b11b2e61c4259404bf01ec8a5695052c (patch) | |
tree | 317bae6e141aa73a895864c33c879aca0d2cc17b | |
parent | 164e4ed5a153ce06badb52f3a5a4dff16c58d7e6 (diff) | |
download | mv-87539666b11b2e61c4259404bf01ec8a5695052c.tar.gz mv-87539666b11b2e61c4259404bf01ec8a5695052c.tar.bz2 mv-87539666b11b2e61c4259404bf01ec8a5695052c.tar.xz mv-87539666b11b2e61c4259404bf01ec8a5695052c.zip |
Fix display combined xp+job particle if used client data translations.
-rw-r--r-- | src/localplayer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/localplayer.cpp b/src/localplayer.cpp index 4675f80cf..03199f7be 100644 --- a/src/localplayer.cpp +++ b/src/localplayer.cpp @@ -1677,7 +1677,7 @@ void LocalPlayer::processEvent(Channels channel, - event.getInt("oldValue"); if (change != 0) - addMessageToQueue(toString(change) + " xp"); + addMessageToQueue(strprintf("%d %s", change, _("xp"))); break; } case LEVEL: @@ -1711,7 +1711,8 @@ void LocalPlayer::processEvent(Channels channel, MessagePair pair = mMessages.back(); // TRANSLATORS: this is normal experience if (pair.first.find(strprintf(" %s", - _("xp"))) == pair.first.size() - 3) + _("xp"))) == pair.first.size() + - strlen(_("xp")) - 1) { mMessages.pop_back(); // TRANSLATORS: this is job experience |