Fix missing achievements translation

This commit is contained in:
Benau 2019-06-17 11:01:04 +08:00
parent d44275a1f6
commit 7d1afc99fe
2 changed files with 10 additions and 4 deletions

View File

@ -258,4 +258,10 @@ int AchievementInfo::recursiveProgressCount(goalTree &parent)
irr::core::stringw AchievementInfo::getDescription() const irr::core::stringw AchievementInfo::getDescription() const
{ {
return _(m_description.c_str()); return _(m_description.c_str());
} // recursiveProgressCount } // getDescription
// ----------------------------------------------------------------------------
irr::core::stringw AchievementInfo::getName() const
{
return _(m_name.c_str());
} // getName

View File

@ -62,10 +62,10 @@ private:
uint32_t m_id; uint32_t m_id;
/** The title of this achievement. */ /** The title of this achievement. */
irr::core::stringw m_name; std::string m_name;
/** The description of this achievement. */ /** The description of this achievement. */
irr::core::stringw m_description; std::string m_description;
/** A secret achievement has its progress not shown. */ /** A secret achievement has its progress not shown. */
bool m_is_secret; bool m_is_secret;
@ -92,7 +92,7 @@ public:
int getDepth() { return getRecursiveDepth(m_goal_tree); } int getDepth() { return getRecursiveDepth(m_goal_tree); }
uint32_t getID() const { return m_id; } uint32_t getID() const { return m_id; }
irr::core::stringw getDescription() const; irr::core::stringw getDescription() const;
const irr::core::stringw& getName() const { return m_name; } irr::core::stringw getName() const;
bool isSecret() const { return m_is_secret; } bool isSecret() const { return m_is_secret; }
// This function should not be called if copy already has children // This function should not be called if copy already has children