Translate user-visible strings!
This commit is contained in:
parent
028f56d94a
commit
e9f113a6a8
@ -263,10 +263,13 @@ CreatePartitionDialog::checkMountPointSelection()
|
|||||||
{
|
{
|
||||||
const QString& selection = m_ui->mountPointComboBox->currentText();
|
const QString& selection = m_ui->mountPointComboBox->currentText();
|
||||||
|
|
||||||
if (m_usedMountPoints.contains(selection)) {
|
if ( m_usedMountPoints.contains( selection ) )
|
||||||
m_ui->labelMountPoint->setText("Mountpoint already in use. Please select another one.");
|
{
|
||||||
|
m_ui->labelMountPoint->setText( tr( "Mountpoint already in use. Please select another one." ) );
|
||||||
m_ui->buttonBox->button( QDialogButtonBox::Ok )->setEnabled( false );
|
m_ui->buttonBox->button( QDialogButtonBox::Ok )->setEnabled( false );
|
||||||
} else {
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
m_ui->labelMountPoint->setText( QString() );
|
m_ui->labelMountPoint->setText( QString() );
|
||||||
m_ui->buttonBox->button( QDialogButtonBox::Ok )->setEnabled( true );
|
m_ui->buttonBox->button( QDialogButtonBox::Ok )->setEnabled( true );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user