diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-10 13:38:15 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-10 13:38:15 +0300 |
commit | 3d2779c31490e4ac32bf72380703b9785b4e00be (patch) | |
tree | 5e031ea09c985af905973899fab78049d08475e3 /src/resources/db/petdb.cpp | |
parent | 44f9d02a86b4d2457965774f9dd6be9ce069d6ce (diff) | |
download | manaverse-3d2779c31490e4ac32bf72380703b9785b4e00be.tar.gz manaverse-3d2779c31490e4ac32bf72380703b9785b4e00be.tar.bz2 manaverse-3d2779c31490e4ac32bf72380703b9785b4e00be.tar.xz manaverse-3d2779c31490e4ac32bf72380703b9785b4e00be.zip |
Add support for change text in pet menu item "Return to egg".
Diffstat (limited to 'src/resources/db/petdb.cpp')
-rw-r--r-- | src/resources/db/petdb.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/resources/db/petdb.cpp b/src/resources/db/petdb.cpp index c2f6508c3..6c56f3437 100644 --- a/src/resources/db/petdb.cpp +++ b/src/resources/db/petdb.cpp @@ -150,6 +150,12 @@ void PETDB::loadXmlFile(const std::string &fileName) currentInfo->setAttackDirectionType(XML::getProperty(petNode, "attackDirectionType", 4)); + const std::string returnMessage = XML::langProperty(petNode, + // TRANSLATORS: popup menu item + // TRANSLATORS: pet return to egg + "removeMessage", _("Return to egg")); + currentInfo->setString(0, returnMessage); + SpriteDisplay display; for_each_xml_child_node(spriteNode, petNode) { |