From a7c723b681ddefdcaa84cb9b16681c65818d7110 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 3 May 2013 12:35:22 +0300 Subject: add comments for translators --- src/gui/itempopup.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/gui/itempopup.cpp') 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; -- cgit v1.2.3-60-g2f50