summaryrefslogtreecommitdiff
path: root/src/gui/itempopup.cpp
diff options
context:
space:
mode:
authorKess Vargavind <vargavind@gmail.com>2009-07-17 14:31:36 +0200
committerKess Vargavind <vargavind@gmail.com>2009-07-17 15:21:53 +0200
commit8b0a65f00c0e5afb2c177462acd30013afa99b64 (patch)
treee34427ff57870c0e96065ccdacd296e9dddd445a /src/gui/itempopup.cpp
parent18aaa873abcaa617bbd296f73138d062423662b8 (diff)
downloadMana-8b0a65f00c0e5afb2c177462acd30013afa99b64.tar.gz
Mana-8b0a65f00c0e5afb2c177462acd30013afa99b64.tar.bz2
Mana-8b0a65f00c0e5afb2c177462acd30013afa99b64.tar.xz
Mana-8b0a65f00c0e5afb2c177462acd30013afa99b64.zip
Various gettext fixes
* Merged a few split strings * Fixed some spellings and wordings * Turned a couple of std::cout and std::cerr into logger messages
Diffstat (limited to 'src/gui/itempopup.cpp')
-rw-r--r--src/gui/itempopup.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/itempopup.cpp b/src/gui/itempopup.cpp
index e1822e03..39dc603a 100644
--- a/src/gui/itempopup.cpp
+++ b/src/gui/itempopup.cpp
@@ -88,8 +88,9 @@ void ItemPopup::setItem(const ItemInfo &item)
mItemDesc->setTextWrapped(item.getDescription(), 196);
mItemEffect->setTextWrapped(item.getEffect(), 196);
- mItemWeight->setTextWrapped(_("Weight: ") +
- Units::formatWeight(item.getWeight()), 196);
+ mItemWeight->setTextWrapped(strprintf(_("Weight: %s"),
+ Units::formatWeight(item.getWeight()).c_str()),
+ 196);
int minWidth = mItemName->getWidth();