From 9800edf94edf73c3d9b493d6563ddd15d753ad79 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 2 Jul 2024 23:35:54 +0200 Subject: [PATCH] [partition] Translate bootloader location combo box If you switch languages, and then go to the partition page, and pick "manual", the combo-box entries would not be translated until **after** you do something (e.g. edit a partition). Now they are re-translated when the language changes. --- src/modules/partition/gui/PartitionPage.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/modules/partition/gui/PartitionPage.cpp b/src/modules/partition/gui/PartitionPage.cpp index ae5a15d9f..15a543f18 100644 --- a/src/modules/partition/gui/PartitionPage.cpp +++ b/src/modules/partition/gui/PartitionPage.cpp @@ -115,7 +115,10 @@ PartitionPage::PartitionPage( PartitionCoreModule* core, QWidget* parent ) m_ui->label_3->hide(); } - CALAMARES_RETRANSLATE( m_ui->retranslateUi( this ); ); + CALAMARES_RETRANSLATE( + m_ui->retranslateUi( this ); + m_core->bootLoaderModel()->update(); // Need to re-translate entries in the combo-box + ); } PartitionPage::~PartitionPage() {}