Add RETRANSLATE macro to CalamaresUtils::Retranslator.

main
Teo Mrnjavac 10 years ago
parent 2c8aa950a3
commit 945b59748a

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

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

Loading…
Cancel
Save