Fix achievements RTL display

This commit is contained in:
Flakebi 2015-04-25 16:10:54 +02:00
parent 6e0b96c21f
commit 56aecdb692
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ public:
irr::core::stringw getDescription() const { return _(m_description.c_str()); }
// ------------------------------------------------------------------------
/** Returns the name of this achievement. */
irr::core::stringw getName() const { return _(m_name.c_str()); }
irr::core::stringw getName() const { return _LTR(m_name.c_str()); }
// ------------------------------------------------------------------------
bool needsResetAfterRace() const { return m_reset_type == AFTER_RACE; }
// ------------------------------------------------------------------------

View File

@ -107,7 +107,7 @@ void BaseOnlineProfileAchievements::init()
const Achievement *a = it->second;
if(a->getInfo()->isSecret() && !a->isAchieved())
continue;
ListWidget::ListCell title(a->getInfo()->getName(), -1, 2);
ListWidget::ListCell title(translations->fribidize(a->getInfo()->getName()), -1, 2);
ListWidget::ListCell progress(a->getProgressAsString(), -1, 1);
row.push_back(title);
row.push_back(progress);