diff options
author | Philipp Sehmisch <crush@themanaworld.org> | 2009-01-06 17:00:25 +0100 |
---|---|---|
committer | Philipp Sehmisch <crush@themanaworld.org> | 2009-01-06 17:00:25 +0100 |
commit | 791ec19aa351df7d5d1ecc3bc6007ba512c05488 (patch) | |
tree | ab17df5c3d67389d0dc08733570edeeb7a9c9999 /src/resources | |
parent | 6b60673b0805fbab747924d1a0b6d9c66fc96f64 (diff) | |
parent | ed39006cfe36e01f68d13a59d1109db905997efc (diff) | |
download | mana-client-791ec19aa351df7d5d1ecc3bc6007ba512c05488.tar.gz mana-client-791ec19aa351df7d5d1ecc3bc6007ba512c05488.tar.bz2 mana-client-791ec19aa351df7d5d1ecc3bc6007ba512c05488.tar.xz mana-client-791ec19aa351df7d5d1ecc3bc6007ba512c05488.zip |
Merge branch 'master' of git@gitorious.org:tmw/eathena
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/itemdb.cpp | 5 |
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); |