diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-05-03 12:35:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-05-03 12:51:43 +0300 |
commit | a7c723b681ddefdcaa84cb9b16681c65818d7110 (patch) | |
tree | 3c7100a90db00c3eacc41977cdb5bbae99e6ca40 /src/gui/itempopup.cpp | |
parent | 04fbf07c41bf78dea11aa9b7098c80f0da3801e3 (diff) | |
download | plus-a7c723b681ddefdcaa84cb9b16681c65818d7110.tar.gz plus-a7c723b681ddefdcaa84cb9b16681c65818d7110.tar.bz2 plus-a7c723b681ddefdcaa84cb9b16681c65818d7110.tar.xz plus-a7c723b681ddefdcaa84cb9b16681c65818d7110.zip |
add comments for translators
Diffstat (limited to 'src/gui/itempopup.cpp')
-rw-r--r-- | src/gui/itempopup.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gui/itempopup.cpp b/src/gui/itempopup.cpp index 8be374bf9..0c88939e3 100644 --- a/src/gui/itempopup.cpp +++ b/src/gui/itempopup.cpp @@ -166,14 +166,14 @@ void ItemPopup::setItem(const ItemInfo &item, const unsigned char color, if (serverVersion > 0) { - mItemName->setCaption(std::string(item.getName(color)).append( - _(", ")).append(toString(id))); + mItemName->setCaption(strprintf("%s, %d", + item.getName(color).c_str(), id)); mItemDesc->setTextWrapped(item.getDescription(color), 196); } else { - mItemName->setCaption(std::string(item.getName()).append( - _(", ")).append(toString(id))); + mItemName->setCaption(strprintf("%s, %d", + item.getName().c_str(), id)); mItemDesc->setTextWrapped(item.getDescription(), 196); } @@ -182,9 +182,9 @@ void ItemPopup::setItem(const ItemInfo &item, const unsigned char color, mItemName->setPosition(space, 0); mItemEffect->setTextWrapped(item.getEffect(), 196); + // TRANSLATORS: popup label mItemWeight->setTextWrapped(strprintf(_("Weight: %s"), - Units::formatWeight(item.getWeight()).c_str()), - 196); + Units::formatWeight(item.getWeight()).c_str()), 196); int minWidth = mItemName->getWidth() + space; |