Skip to content
Snippets Groups Projects
Commit 945b5974 authored by Teo Mrnjavac's avatar Teo Mrnjavac
Browse files

Add RETRANSLATE macro to CalamaresUtils::Retranslator.

parent 2c8aa950
No related branches found
No related tags found
No related merge requests found
......@@ -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:" ) );
} );
)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment