[partition] Factor out manual partitioning translation
- needs to be called when the button is created, too
This commit is contained in:
parent
c5fa6383d7
commit
390acd41b2
@ -140,12 +140,8 @@ ChoicePage::retranslate()
|
||||
m_previewBeforeLabel->setText( tr( "Current:" ) );
|
||||
m_previewAfterLabel->setText( tr( "After:" ) );
|
||||
|
||||
if ( m_somethingElseButton )
|
||||
{
|
||||
m_somethingElseButton->setText( tr( "<strong>Manual partitioning</strong><br/>"
|
||||
"You can create or resize partitions yourself." ) );
|
||||
}
|
||||
updateSwapChoicesTr( m_eraseSwapChoiceComboBox );
|
||||
updateChoiceButtonsTr();
|
||||
}
|
||||
|
||||
|
||||
@ -342,6 +338,8 @@ ChoicePage::setupChoices()
|
||||
this,
|
||||
&ChoicePage::onEraseSwapChoiceChanged );
|
||||
}
|
||||
|
||||
updateChoiceButtonsTr();
|
||||
}
|
||||
|
||||
|
||||
@ -1664,6 +1662,16 @@ ChoicePage::updateSwapChoicesTr( QComboBox* box )
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
ChoicePage::updateChoiceButtonsTr()
|
||||
{
|
||||
if ( m_somethingElseButton )
|
||||
{
|
||||
m_somethingElseButton->setText( tr( "<strong>Manual partitioning</strong><br/>"
|
||||
"You can create or resize partitions yourself." ) );
|
||||
}
|
||||
}
|
||||
|
||||
int
|
||||
ChoicePage::lastSelectedDeviceIndex()
|
||||
{
|
||||
|
@ -125,6 +125,7 @@ private:
|
||||
|
||||
// Translations support
|
||||
void updateSwapChoicesTr( QComboBox* box );
|
||||
void updateChoiceButtonsTr();
|
||||
|
||||
Config* m_config;
|
||||
bool m_nextEnabled;
|
||||
|
Loading…
Reference in New Issue
Block a user