diff --git a/src/modules/partition/core/DeviceModel.cpp b/src/modules/partition/core/DeviceModel.cpp index 260315729..e1d63f26c 100644 --- a/src/modules/partition/core/DeviceModel.cpp +++ b/src/modules/partition/core/DeviceModel.cpp @@ -80,15 +80,23 @@ DeviceModel::data( const QModelIndex& index, int role ) const else { if ( device->logicalSize() >= 0 && device->totalLogical() >= 0 ) + { + //: device[name] - size[number] (device-node[name]) return tr( "%1 - %2 (%3)" ) .arg( device->name() ) .arg( KFormat().formatByteSize( device->capacity() ) ) .arg( device->deviceNode() ); - // Newly LVM VGs don't have capacity property yet (i.e. always has 1B capacity), so don't show it for a while + } else + { + // Newly LVM VGs don't have capacity property yet (i.e. + // always has 1B capacity), so don't show it for a while. + // + //: device[name] - (device-node[name]) return tr( "%1 - (%2)" ) .arg( device->name() ) .arg( device->deviceNode() ); + } } case Qt::DecorationRole: return CalamaresUtils::defaultPixmap( CalamaresUtils::PartitionDisk, diff --git a/src/modules/partition/gui/PartitionLabelsView.cpp b/src/modules/partition/gui/PartitionLabelsView.cpp index 0a0850844..36774cd20 100644 --- a/src/modules/partition/gui/PartitionLabelsView.cpp +++ b/src/modules/partition/gui/PartitionLabelsView.cpp @@ -230,6 +230,7 @@ PartitionLabelsView::buildTexts( const QModelIndex& index ) const PartitionModel::SizeColumn ) .data().toString(); else + //: size[number] filesystem[name] secondLine = tr( "%1 %2" ) .arg( index.sibling( index.row(), PartitionModel::SizeColumn )