Plural-form correction.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=941151
This commit is contained in:
Andrew Coles 2009-03-18 23:27:36 +00:00
parent cd7c3165cd
commit 9cbec4ebe4
4 changed files with 8 additions and 5 deletions

View File

@ -388,7 +388,8 @@ bool PartitionTable::snap(const Device& d, Partition& p, const Partition* origin
}
if (p.length() < originalLength)
log(log::warning) << i18nc("@info/plain", "The partition cannot be created with the requested length of %1 sectors and will instead only be %2 sectors long.", originalLength, p.length());
log(log::warning) << i18ncp("@info/plain", "The partition cannot be created with the requested length of 1 sector, ", "The partition cannot be created with the requested length of %1 sectors, ", originalLength)
+ i18ncp("@info/plain", "and will instead only be 1 sector long.", "and will instead only be %2 sectors long.", p.length());
// In an extended partition we also need to snap unallocated children at the beginning and at the end
// (there should never be a need to snap non-unallocated children)

View File

@ -734,7 +734,9 @@ static bool checkTooManyPartitions(QWidget* parent, const Device& d, const Parti
if (p.roles().has(PartitionRole::Unallocated) && d.partitionTable()->numPrimaries() >= d.partitionTable()->maxPrimaries() && !p.roles().has(PartitionRole::Logical))
{
KMessageBox::sorry(parent, i18nc("@info",
KMessageBox::sorry(parent, i18ncp("@info",
"<para>There is already 1 primary partition on this device. This is the maximum number its partition table can handle.</para>"
"<para>You cannot create, paste or restore a primary partition on it before you delete an existing one.</para>",
"<para>There are already %1 primary partitions on this device. This is the maximum number its partition table can handle.</para>"
"<para>You cannot create, paste or restore a primary partition on it before you delete an existing one.</para>",
d.partitionTable()->numPrimaries()), i18nc("@title:window", "Too Many Primary Partitions."));

View File

@ -192,7 +192,7 @@ bool Job::copyBlocks(Report& report, CopyTarget& target, CopySource& source)
free(buffer);
report.line() << i18nc("@info/plain", "Copying %1 blocks (%2 sectors) finished.", blocksCopied, target.sectorsWritten());
report.line() << i18ncp("@info/plain, argument 2 is a string such as 7 sectors (localalized accordingly)", "Copying 1 block (%2) finished.", "Copying %1 blocks (%2) finished.", blocksCopied, i18np("1 sector", "%1 sectors", target.sectorsWritten()));
return rval;
}

View File

@ -69,7 +69,7 @@ bool ResizeFileSystemJob::run(Report& parent)
if (partition().fileSystem().length() == newLength())
{
report->line() << i18nc("@info/plain", "The file system on partition <filename>%1</filename> already has the requested length of %2 sectors.", partition().deviceNode(), newLength());
report->line() << i18ncp("@info/plain", "The file system on partition <filename>%2</filename> already has the requested length of 1 sector.", "The file system on partition <filename>%2</filename> already has the requested length of %1 sectors.", newLength(), partition().deviceNode());
rval = true;
}
else
@ -155,5 +155,5 @@ QString ResizeFileSystemJob::description() const
if (isMaximizing())
return i18nc("@info/plain", "Maximize file system on <filename>%1</filename> to fill the partition", partition().deviceNode());
return i18nc("@info/plain", "Resize file system on partition <filename>%1</filename> to %2 sectors", partition().deviceNode(), newLength());
return i18ncp("@info/plain", "Resize file system on partition <filename>%2</filename> to 1 sector", "Resize file system on partition <filename>%2</filename> to %1 sectors", newLength(), partition().deviceNode());
}