Fix translation issues with grand-prixs

This commit is contained in:
Flakebi 2015-04-26 23:31:57 +02:00
parent 0b9876c53e
commit af88b4a16f
2 changed files with 2 additions and 2 deletions

View File

@ -148,7 +148,7 @@ public:
// ------------------------------------------------------------------------
/** @return the (potentially translated) user-visible name of the Grand
* Prix (apply fribidi as needed) */
irr::core::stringw getName() const { return _LTR(m_name.c_str()); }
irr::core::stringw getName() const { return m_editable ? m_name.c_str() : _LTR(m_name.c_str()); }
// ------------------------------------------------------------------------
/** @return the internal indentifier of the Grand Prix (not translated) */

View File

@ -161,7 +161,7 @@ void GrandPrixEditorScreen::setSelection (const GrandPrixData* gpdata)
if (gpdata == NULL)
{
m_selection = NULL;
gpname_widget->setText (L"Please select a Grand Prix", true);
gpname_widget->setText (_("Please select a Grand Prix"), true);
tracks_widget->clearItems();
tracks_widget->updateItemDisplay();
}