From 5d7ba868467acd572bdf248e46056f8759eb95b2 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 3 Jul 2014 18:34:06 +0300 Subject: Fix translation issue in useButton attributes in items.xml. --- src/resources/db/itemdb.cpp | 6 ++++-- 1 file 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(); -- cgit v1.2.3-70-g09d2