diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-02-06 00:16:58 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-02-06 00:16:58 +0300 |
commit | 0cbb5fdd043733456565f705d1527ec67785a005 (patch) | |
tree | 3bed9953abf5bbbfc3d8e285b924cc309054a463 /src/resources/itemdb.cpp | |
parent | bf435a79408d89072f5872ab98449949a8a077b0 (diff) | |
download | manaplus-0cbb5fdd043733456565f705d1527ec67785a005.tar.gz manaplus-0cbb5fdd043733456565f705d1527ec67785a005.tar.bz2 manaplus-0cbb5fdd043733456565f705d1527ec67785a005.tar.xz manaplus-0cbb5fdd043733456565f705d1527ec67785a005.zip |
Use client data translation. For now language same as gui language.
Fix some untranslated gettext lines.
Diffstat (limited to 'src/resources/itemdb.cpp')
-rw-r--r-- | src/resources/itemdb.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/resources/itemdb.cpp b/src/resources/itemdb.cpp index 5fa68a88f..e81700ecc 100644 --- a/src/resources/itemdb.cpp +++ b/src/resources/itemdb.cpp @@ -202,10 +202,10 @@ void ItemDB::load() int weight = XML::getProperty(node, "weight", 0); int view = XML::getProperty(node, "view", 0); - std::string name = XML::getProperty(node, "name", ""); + std::string name = XML::langProperty(node, "name", ""); std::string image = XML::getProperty(node, "image", ""); std::string floor = XML::getProperty(node, "floor", ""); - std::string description = XML::getProperty(node, "description", ""); + std::string description = XML::langProperty(node, "description", ""); std::string attackAction = XML::getProperty(node, "attack-action", ""); std::string drawBefore = XML::getProperty(node, "drawBefore", ""); std::string drawAfter = XML::getProperty(node, "drawAfter", ""); @@ -316,7 +316,7 @@ void ItemDB::load() effect += " / "; effect += strprintf(it->format.c_str(), value); } - std::string temp = XML::getProperty(node, "effect", ""); + std::string temp = XML::langProperty(node, "effect", ""); if (!effect.empty() && !temp.empty()) effect += " / "; effect += temp; |