summaryrefslogtreecommitdiff
path: root/src/resources
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-01-06 17:00:25 +0100
committerPhilipp Sehmisch <crush@themanaworld.org>2009-01-06 17:00:25 +0100
commit791ec19aa351df7d5d1ecc3bc6007ba512c05488 (patch)
treeab17df5c3d67389d0dc08733570edeeb7a9c9999 /src/resources
parent6b60673b0805fbab747924d1a0b6d9c66fc96f64 (diff)
parented39006cfe36e01f68d13a59d1109db905997efc (diff)
downloadMana-791ec19aa351df7d5d1ecc3bc6007ba512c05488.tar.gz
Mana-791ec19aa351df7d5d1ecc3bc6007ba512c05488.tar.bz2
Mana-791ec19aa351df7d5d1ecc3bc6007ba512c05488.tar.xz
Mana-791ec19aa351df7d5d1ecc3bc6007ba512c05488.zip
Merge branch 'master' of git@gitorious.org:tmw/eathena
Diffstat (limited to 'src/resources')
-rw-r--r--src/resources/itemdb.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp
index 8fd60110..4b3024a7 100644
--- a/src/resources/itemdb.cpp
+++ b/src/resources/itemdb.cpp
@@ -30,6 +30,7 @@
#include "../log.h"
#include "../utils/dtor.h"
+#include "../utils/gettext.h"
#include "../utils/xml.h"
namespace
@@ -93,9 +94,9 @@ void ItemDB::load()
if (id)
{
- ItemInfo *itemInfo = new ItemInfo();
+ ItemInfo *itemInfo = new ItemInfo;
itemInfo->setImageName(image);
- itemInfo->setName((name == "") ? "Unnamed" : name);
+ itemInfo->setName(name.empty() ? _("Unnamed") : name);
itemInfo->setDescription(description);
itemInfo->setEffect(effect);
itemInfo->setType(type);