summaryrefslogtreecommitdiff
path: root/src/resources/db
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-03 18:34:06 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-03 18:34:06 +0300
commit5d7ba868467acd572bdf248e46056f8759eb95b2 (patch)
tree7df4073c894eefcf96809e60af2ff1aa0efd3408 /src/resources/db
parent7a73a1ce2a20d13fb1e332dc48454d2e5a4a7826 (diff)
downloadmv-5d7ba868467acd572bdf248e46056f8759eb95b2.tar.gz
mv-5d7ba868467acd572bdf248e46056f8759eb95b2.tar.bz2
mv-5d7ba868467acd572bdf248e46056f8759eb95b2.tar.xz
mv-5d7ba868467acd572bdf248e46056f8759eb95b2.zip
Fix translation issue in useButton attributes in items.xml.
Diffstat (limited to 'src/resources/db')
-rw-r--r--src/resources/db/itemdb.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/resources/db/itemdb.cpp b/src/resources/db/itemdb.cpp
index 080254bb0..8eaa0ce9f 100644
--- a/src/resources/db/itemdb.cpp
+++ b/src/resources/db/itemdb.cpp
@@ -39,6 +39,8 @@
#include "utils/dtor.h"
#include "utils/gettext.h"
+#include "utils/translation/podict.h"
+
#include "debug.h"
namespace
@@ -133,7 +135,7 @@ static std::string useButtonFromItemType(const ItemType::Type &type)
{
const ItemTypeMap &item = itemTypeMap[f];
if (item.type == type)
- return gettext(item.useButton.c_str());
+ return translator->getStr(item.useButton.c_str());
}
logger->log("Unknown item type");
return std::string();
@@ -146,7 +148,7 @@ static std::string useButton2FromItemType(const ItemType::Type &type)
{
const ItemTypeMap &item = itemTypeMap[f];
if (item.type == type)
- return gettext(item.useButton2.c_str());
+ return translator->getStr(item.useButton2.c_str());
}
logger->log("Unknown item type");
return std::string();