[locale] Move all the translation work to a single slot

main
Adriaan de Groot 5 years ago
parent a57a030ee2
commit 782b469974

@ -215,15 +215,7 @@ LocalePage::LocalePage( QWidget* parent )
} );
CALAMARES_RETRANSLATE(
m_regionLabel->setText( tr( "Region:" ) );
m_zoneLabel->setText( tr( "Zone:" ) );
updateLocaleLabels();
m_localeChangeButton->setText( tr( "&Change..." ) );
m_formatsChangeButton->setText( tr( "&Change..." ) );
)
CALAMARES_RETRANSLATE_SLOT( &LocalePage::updateLocaleLabels )
}
@ -234,6 +226,11 @@ LocalePage::~LocalePage()
void
LocalePage::updateLocaleLabels()
{
m_regionLabel->setText( tr( "Region:" ) );
m_zoneLabel->setText( tr( "Zone:" ) );
m_localeChangeButton->setText( tr( "&Change..." ) );
m_formatsChangeButton->setText( tr( "&Change..." ) );
LocaleConfiguration lc = m_selectedLocaleConfiguration.isEmpty() ?
guessLocaleConfiguration() :
m_selectedLocaleConfiguration;

Loading…
Cancel
Save