[partition] Replace user-visible MB with MiB
This commit is contained in:
parent
b08de96315
commit
53230d73e2
@ -41,7 +41,7 @@ CreatePartitionJob::CreatePartitionJob( Device* device, Partition* partition )
|
|||||||
QString
|
QString
|
||||||
CreatePartitionJob::prettyName() const
|
CreatePartitionJob::prettyName() const
|
||||||
{
|
{
|
||||||
return tr( "Create new %2MB partition on %4 (%3) with file system %1." )
|
return tr( "Create new %2MiB partition on %4 (%3) with file system %1." )
|
||||||
.arg( m_partition->fileSystem().name() )
|
.arg( m_partition->fileSystem().name() )
|
||||||
.arg( CalamaresUtils::BytesToMiB( m_partition->capacity() ) )
|
.arg( CalamaresUtils::BytesToMiB( m_partition->capacity() ) )
|
||||||
.arg( m_device->name() )
|
.arg( m_device->name() )
|
||||||
@ -52,7 +52,7 @@ CreatePartitionJob::prettyName() const
|
|||||||
QString
|
QString
|
||||||
CreatePartitionJob::prettyDescription() const
|
CreatePartitionJob::prettyDescription() const
|
||||||
{
|
{
|
||||||
return tr( "Create new <strong>%2MB</strong> partition on <strong>%4</strong> "
|
return tr( "Create new <strong>%2MiB</strong> partition on <strong>%4</strong> "
|
||||||
"(%3) with file system <strong>%1</strong>." )
|
"(%3) with file system <strong>%1</strong>." )
|
||||||
.arg( m_partition->fileSystem().name() )
|
.arg( m_partition->fileSystem().name() )
|
||||||
.arg( CalamaresUtils::BytesToMiB( m_partition->capacity() ) )
|
.arg( CalamaresUtils::BytesToMiB( m_partition->capacity() ) )
|
||||||
|
@ -38,7 +38,7 @@ FormatPartitionJob::FormatPartitionJob( Device* device, Partition* partition )
|
|||||||
QString
|
QString
|
||||||
FormatPartitionJob::prettyName() const
|
FormatPartitionJob::prettyName() const
|
||||||
{
|
{
|
||||||
return tr( "Format partition %1 (file system: %2, size: %3 MB) on %4." )
|
return tr( "Format partition %1 (file system: %2, size: %3 MiB) on %4." )
|
||||||
.arg( m_partition->partitionPath() )
|
.arg( m_partition->partitionPath() )
|
||||||
.arg( m_partition->fileSystem().name() )
|
.arg( m_partition->fileSystem().name() )
|
||||||
.arg( m_partition->capacity() / 1024 / 1024 )
|
.arg( m_partition->capacity() / 1024 / 1024 )
|
||||||
@ -49,7 +49,7 @@ FormatPartitionJob::prettyName() const
|
|||||||
QString
|
QString
|
||||||
FormatPartitionJob::prettyDescription() const
|
FormatPartitionJob::prettyDescription() const
|
||||||
{
|
{
|
||||||
return tr( "Format <strong>%3MB</strong> partition <strong>%1</strong> with "
|
return tr( "Format <strong>%3MiB</strong> partition <strong>%1</strong> with "
|
||||||
"file system <strong>%2</strong>." )
|
"file system <strong>%2</strong>." )
|
||||||
.arg( m_partition->partitionPath() )
|
.arg( m_partition->partitionPath() )
|
||||||
.arg( m_partition->fileSystem().name() )
|
.arg( m_partition->fileSystem().name() )
|
||||||
|
@ -52,8 +52,8 @@ ResizePartitionJob::prettyName() const
|
|||||||
QString
|
QString
|
||||||
ResizePartitionJob::prettyDescription() const
|
ResizePartitionJob::prettyDescription() const
|
||||||
{
|
{
|
||||||
return tr( "Resize <strong>%2MB</strong> partition <strong>%1</strong> to "
|
return tr( "Resize <strong>%2MiB</strong> partition <strong>%1</strong> to "
|
||||||
"<strong>%3MB</strong>." )
|
"<strong>%3MiB</strong>." )
|
||||||
.arg( partition()->partitionPath() )
|
.arg( partition()->partitionPath() )
|
||||||
.arg( ( BytesToMiB( m_oldLastSector - m_oldFirstSector + 1 ) * partition()->sectorSize() ) )
|
.arg( ( BytesToMiB( m_oldLastSector - m_oldFirstSector + 1 ) * partition()->sectorSize() ) )
|
||||||
.arg( ( BytesToMiB( m_newLastSector - m_newFirstSector + 1 ) * partition()->sectorSize() ) );
|
.arg( ( BytesToMiB( m_newLastSector - m_newFirstSector + 1 ) * partition()->sectorSize() ) );
|
||||||
@ -63,8 +63,8 @@ ResizePartitionJob::prettyDescription() const
|
|||||||
QString
|
QString
|
||||||
ResizePartitionJob::prettyStatusMessage() const
|
ResizePartitionJob::prettyStatusMessage() const
|
||||||
{
|
{
|
||||||
return tr( "Resizing %2MB partition %1 to "
|
return tr( "Resizing %2MiB partition %1 to "
|
||||||
"%3MB." )
|
"%3MiB." )
|
||||||
.arg( partition()->partitionPath() )
|
.arg( partition()->partitionPath() )
|
||||||
.arg( ( BytesToMiB( m_oldLastSector - m_oldFirstSector + 1 ) * partition()->sectorSize() ) )
|
.arg( ( BytesToMiB( m_oldLastSector - m_oldFirstSector + 1 ) * partition()->sectorSize() ) )
|
||||||
.arg( ( BytesToMiB( m_newLastSector - m_newFirstSector + 1 ) * partition()->sectorSize() ) );
|
.arg( ( BytesToMiB( m_newLastSector - m_newFirstSector + 1 ) * partition()->sectorSize() ) );
|
||||||
|
@ -49,7 +49,7 @@ SetPartFlagsJob::prettyName() const
|
|||||||
return tr( "Set flags on partition %1." ).arg( partition()->partitionPath() );
|
return tr( "Set flags on partition %1." ).arg( partition()->partitionPath() );
|
||||||
|
|
||||||
if ( !partition()->fileSystem().name().isEmpty() )
|
if ( !partition()->fileSystem().name().isEmpty() )
|
||||||
return tr( "Set flags on %1MB %2 partition." )
|
return tr( "Set flags on %1MiB %2 partition." )
|
||||||
.arg( BytesToMiB( partition()->capacity() ) )
|
.arg( BytesToMiB( partition()->capacity() ) )
|
||||||
.arg( partition()->fileSystem().name() );
|
.arg( partition()->fileSystem().name() );
|
||||||
|
|
||||||
@ -68,7 +68,7 @@ SetPartFlagsJob::prettyDescription() const
|
|||||||
.arg( partition()->partitionPath() );
|
.arg( partition()->partitionPath() );
|
||||||
|
|
||||||
if ( !partition()->fileSystem().name().isEmpty() )
|
if ( !partition()->fileSystem().name().isEmpty() )
|
||||||
return tr( "Clear flags on %1MB <strong>%2</strong> partition." )
|
return tr( "Clear flags on %1MiB <strong>%2</strong> partition." )
|
||||||
.arg( BytesToMiB( partition()->capacity() ) )
|
.arg( BytesToMiB( partition()->capacity() ) )
|
||||||
.arg( partition()->fileSystem().name() );
|
.arg( partition()->fileSystem().name() );
|
||||||
|
|
||||||
@ -82,7 +82,7 @@ SetPartFlagsJob::prettyDescription() const
|
|||||||
.arg( flagsList.join( ", " ) );
|
.arg( flagsList.join( ", " ) );
|
||||||
|
|
||||||
if ( !partition()->fileSystem().name().isEmpty() )
|
if ( !partition()->fileSystem().name().isEmpty() )
|
||||||
return tr( "Flag %1MB <strong>%2</strong> partition as "
|
return tr( "Flag %1MiB <strong>%2</strong> partition as "
|
||||||
"<strong>%3</strong>." )
|
"<strong>%3</strong>." )
|
||||||
.arg( BytesToMiB( partition()->capacity() ) )
|
.arg( BytesToMiB( partition()->capacity() ) )
|
||||||
.arg( partition()->fileSystem().name() )
|
.arg( partition()->fileSystem().name() )
|
||||||
@ -104,7 +104,7 @@ SetPartFlagsJob::prettyStatusMessage() const
|
|||||||
.arg( partition()->partitionPath() );
|
.arg( partition()->partitionPath() );
|
||||||
|
|
||||||
if ( !partition()->fileSystem().name().isEmpty() )
|
if ( !partition()->fileSystem().name().isEmpty() )
|
||||||
return tr( "Clearing flags on %1MB <strong>%2</strong> partition." )
|
return tr( "Clearing flags on %1MiB <strong>%2</strong> partition." )
|
||||||
.arg( BytesToMiB( partition()->capacity() ) )
|
.arg( BytesToMiB( partition()->capacity() ) )
|
||||||
.arg( partition()->fileSystem().name() );
|
.arg( partition()->fileSystem().name() );
|
||||||
|
|
||||||
@ -119,7 +119,7 @@ SetPartFlagsJob::prettyStatusMessage() const
|
|||||||
|
|
||||||
if ( !partition()->fileSystem().name().isEmpty() )
|
if ( !partition()->fileSystem().name().isEmpty() )
|
||||||
return tr( "Setting flags <strong>%3</strong> on "
|
return tr( "Setting flags <strong>%3</strong> on "
|
||||||
"%1MB <strong>%2</strong> partition." )
|
"%1MiB <strong>%2</strong> partition." )
|
||||||
.arg( BytesToMiB( partition()->capacity() ) )
|
.arg( BytesToMiB( partition()->capacity() ) )
|
||||||
.arg( partition()->fileSystem().name() )
|
.arg( partition()->fileSystem().name() )
|
||||||
.arg( flagsList.join( ", " ) );
|
.arg( flagsList.join( ", " ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user