From 87539666b11b2e61c4259404bf01ec8a5695052c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 19 Feb 2012 16:58:38 +0300 Subject: Fix display combined xp+job particle if used client data translations. --- src/localplayer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/localplayer.cpp') 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 -- cgit v1.2.3-60-g2f50