From e9f113a6a8a2cb4cf5f8f2cee56d87ce1df7eaa7 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Wed, 4 Jan 2017 15:19:49 +0100 Subject: [PATCH] Translate user-visible strings! --- src/modules/partition/gui/CreatePartitionDialog.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/modules/partition/gui/CreatePartitionDialog.cpp b/src/modules/partition/gui/CreatePartitionDialog.cpp index 90545fe80..4cd22bf68 100644 --- a/src/modules/partition/gui/CreatePartitionDialog.cpp +++ b/src/modules/partition/gui/CreatePartitionDialog.cpp @@ -263,12 +263,15 @@ CreatePartitionDialog::checkMountPointSelection() { const QString& selection = m_ui->mountPointComboBox->currentText(); - if (m_usedMountPoints.contains(selection)) { - m_ui->labelMountPoint->setText("Mountpoint already in use. Please select another one."); - m_ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(false); - } else { + if ( m_usedMountPoints.contains( selection ) ) + { + m_ui->labelMountPoint->setText( tr( "Mountpoint already in use. Please select another one." ) ); + m_ui->buttonBox->button( QDialogButtonBox::Ok )->setEnabled( false ); + } + else + { m_ui->labelMountPoint->setText( QString() ); - m_ui->buttonBox->button(QDialogButtonBox::Ok)->setEnabled(true); + m_ui->buttonBox->button( QDialogButtonBox::Ok )->setEnabled( true ); } }