summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-29 20:47:39 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-29 20:49:47 +0300
commit468810655ea2f8a696357fdef6b0b311113f5009 (patch)
tree89b54f0c2a50d4255d441baabffdcba9f46b61ee
parent57a6a4ab0fe9143e1cd3b566e5e9a7da1cee2429 (diff)
downloadmanaplus-468810655ea2f8a696357fdef6b0b311113f5009.tar.gz
manaplus-468810655ea2f8a696357fdef6b0b311113f5009.tar.bz2
manaplus-468810655ea2f8a696357fdef6b0b311113f5009.tar.xz
manaplus-468810655ea2f8a696357fdef6b0b311113f5009.zip
Fix translation for default use/equip buttons.
-rw-r--r--src/resources/db/itemdb.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/resources/db/itemdb.cpp b/src/resources/db/itemdb.cpp
index 9d9550e82..2768a8cab 100644
--- a/src/resources/db/itemdb.cpp
+++ b/src/resources/db/itemdb.cpp
@@ -148,7 +148,7 @@ static std::string useButtonFromItemType(const ItemType::Type &type)
{
const ItemTypeMap &item = itemTypeMap[f];
if (item.type == type)
- return translator->getStr(item.useButton.c_str());
+ return gettext(item.useButton.c_str());
}
logger->log("Unknown item type");
return std::string();
@@ -161,7 +161,7 @@ static std::string useButton2FromItemType(const ItemType::Type &type)
{
const ItemTypeMap &item = itemTypeMap[f];
if (item.type == type)
- return translator->getStr(item.useButton2.c_str());
+ return gettext(item.useButton2.c_str());
}
logger->log("Unknown item type");
return std::string();