Add RETRANSLATE macro to CalamaresUtils::Retranslator.
This commit is contained in:
parent
2c8aa950a3
commit
945b59748a
@ -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
|
||||
|
@ -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:" ) );
|
||||
} );
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user