Add RETRANSLATE macro to CalamaresUtils::Retranslator.

This commit is contained in:
Teo Mrnjavac 2014-11-11 15:11:06 +01:00
parent 2c8aa950a3
commit 945b59748a
2 changed files with 6 additions and 3 deletions

View File

@ -42,6 +42,10 @@ private:
std::function< void( void ) > m_retranslateFunc;
};
} // namespace CalamaresUtils
#define RETRANSLATE(a) \
new CalamaresUtils::Retranslator( this, [this] { a } );
#endif // CALAMARESUTILS_RETRANSLATOR_H

View File

@ -121,11 +121,10 @@ LocalePage::LocalePage( QWidget* parent )
m_blockTzWidgetSet = false;
});
new CalamaresUtils::Retranslator( this, [this]
{
RETRANSLATE(
m_cityLabel->setText( tr( "Region:" ) );
m_timezoneLabel->setText( tr( "Zone:" ) );
} );
)
}