diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index ebff428de..d6a9a5250 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -140,12 +140,8 @@ ChoicePage::retranslate() m_previewBeforeLabel->setText( tr( "Current:" ) ); m_previewAfterLabel->setText( tr( "After:" ) ); - if ( m_somethingElseButton ) - { - m_somethingElseButton->setText( tr( "Manual partitioning
" - "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( "Manual partitioning
" + "You can create or resize partitions yourself." ) ); + } +} + int ChoicePage::lastSelectedDeviceIndex() { diff --git a/src/modules/partition/gui/ChoicePage.h b/src/modules/partition/gui/ChoicePage.h index c340bfe4a..ce1c95326 100644 --- a/src/modules/partition/gui/ChoicePage.h +++ b/src/modules/partition/gui/ChoicePage.h @@ -125,6 +125,7 @@ private: // Translations support void updateSwapChoicesTr( QComboBox* box ); + void updateChoiceButtonsTr(); Config* m_config; bool m_nextEnabled;