[locale] Move all the translation work to a single slot
This commit is contained in:
parent
a57a030ee2
commit
782b469974
@ -215,15 +215,7 @@ LocalePage::LocalePage( QWidget* parent )
|
|||||||
|
|
||||||
} );
|
} );
|
||||||
|
|
||||||
CALAMARES_RETRANSLATE(
|
CALAMARES_RETRANSLATE_SLOT( &LocalePage::updateLocaleLabels )
|
||||||
m_regionLabel->setText( tr( "Region:" ) );
|
|
||||||
m_zoneLabel->setText( tr( "Zone:" ) );
|
|
||||||
|
|
||||||
updateLocaleLabels();
|
|
||||||
|
|
||||||
m_localeChangeButton->setText( tr( "&Change..." ) );
|
|
||||||
m_formatsChangeButton->setText( tr( "&Change..." ) );
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -234,6 +226,11 @@ LocalePage::~LocalePage()
|
|||||||
void
|
void
|
||||||
LocalePage::updateLocaleLabels()
|
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() ?
|
LocaleConfiguration lc = m_selectedLocaleConfiguration.isEmpty() ?
|
||||||
guessLocaleConfiguration() :
|
guessLocaleConfiguration() :
|
||||||
m_selectedLocaleConfiguration;
|
m_selectedLocaleConfiguration;
|
||||||
|
Loading…
Reference in New Issue
Block a user