summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2014-03-17 17:27:21 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-17 20:53:10 +0100
commit513a49d62c34e6b0454bbcbe8a94831d019651a8 (patch)
tree53acb6fec8c0137d709794df52eddced1faa928d
parent163a8d5a7640eefd3d5cd622b3fb325efaa3df57 (diff)
Fix translation of QtPrintSupport and QPageSize.
Add translator comments, fix spelling, reduce repetitive messages. Change-Id: Id4cbbc3de8fa261cf8f125c5faf735dc608e2b15 Reviewed-by: Robert Loehning <robert.loehning@digia.com> Reviewed-by: Andy Shaw <andy.shaw@digia.com> Reviewed-by: John Layt <jlayt@kde.org>
-rw-r--r--src/gui/painting/qpagesize.cpp26
-rw-r--r--src/printsupport/dialogs/qpagesetupdialog_unix.cpp6
2 files changed, 22 insertions, 10 deletions
diff --git a/src/gui/painting/qpagesize.cpp b/src/gui/painting/qpagesize.cpp
index 6a0e61e8a1..6698d77bbd 100644
--- a/src/gui/painting/qpagesize.cpp
+++ b/src/gui/painting/qpagesize.cpp
@@ -1484,6 +1484,12 @@ QString QPageSize::key(QPageSize::PageSizeId pageSizeId)
return QString::fromUtf8(qt_pageSizes[pageSizeId].mediaOption);
}
+static QString msgImperialPageSizeInch(int width, int height)
+{
+ //: Page size in 'Inch'.
+ return QCoreApplication::translate("QPageSize", "%1 x %2 in").arg(width).arg(height);
+}
+
/*!
Returns the localized name of the standard \a pageSizeId.
@@ -1605,7 +1611,7 @@ QString QPageSize::name(QPageSize::PageSizeId pageSizeId)
case QPageSize::LetterSmall:
return QCoreApplication::translate("QPageSize", "Letter Small");
case QPageSize::TabloidExtra:
- return QCoreApplication::translate("QPageSize", "Tabliod Extra");
+ return QCoreApplication::translate("QPageSize", "Tabloid Extra");
case QPageSize::ArchA:
return QCoreApplication::translate("QPageSize", "Architect A");
case QPageSize::ArchB:
@@ -1617,23 +1623,23 @@ QString QPageSize::name(QPageSize::PageSizeId pageSizeId)
case QPageSize::ArchE:
return QCoreApplication::translate("QPageSize", "Architect E");
case QPageSize::Imperial7x9:
- return QCoreApplication::translate("QPageSize", "7 x 9 in");
+ return msgImperialPageSizeInch(7, 9);
case QPageSize::Imperial8x10:
- return QCoreApplication::translate("QPageSize", "8 x 10 in");
+ return msgImperialPageSizeInch(8, 10);
case QPageSize::Imperial9x11:
- return QCoreApplication::translate("QPageSize", "9 x 11 in");
+ return msgImperialPageSizeInch(9, 11);
case QPageSize::Imperial9x12:
- return QCoreApplication::translate("QPageSize", "9 x 12 in");
+ return msgImperialPageSizeInch(9, 12);
case QPageSize::Imperial10x11:
- return QCoreApplication::translate("QPageSize", "10 x 11 in");
+ return msgImperialPageSizeInch(10, 11);
case QPageSize::Imperial10x13:
- return QCoreApplication::translate("QPageSize", "10 x 13 in");
+ return msgImperialPageSizeInch(10, 13);
case QPageSize::Imperial10x14:
- return QCoreApplication::translate("QPageSize", "10 x 14 in");
+ return msgImperialPageSizeInch(10, 14);
case QPageSize::Imperial12x11:
- return QCoreApplication::translate("QPageSize", "12 x 11 in");
+ return msgImperialPageSizeInch(12, 11);
case QPageSize::Imperial15x11:
- return QCoreApplication::translate("QPageSize", "15 x 11 in");
+ return msgImperialPageSizeInch(15, 11);
case QPageSize::Note:
return QCoreApplication::translate("QPageSize", "Note");
case QPageSize::Quarto:
diff --git a/src/printsupport/dialogs/qpagesetupdialog_unix.cpp b/src/printsupport/dialogs/qpagesetupdialog_unix.cpp
index 118d0c22c6..b9041bb242 100644
--- a/src/printsupport/dialogs/qpagesetupdialog_unix.cpp
+++ b/src/printsupport/dialogs/qpagesetupdialog_unix.cpp
@@ -412,21 +412,27 @@ void QPageSetupWidget::updateWidget()
QString suffix;
switch (m_units) {
case QPageLayout::Millimeter:
+ //: Unit 'Millimeter'
suffix = tr("mm");
break;
case QPageLayout::Point:
+ //: Unit 'Points'
suffix = tr("pt");
break;
case QPageLayout::Inch:
+ //: Unit 'Inch'
suffix = tr("in");
break;
case QPageLayout::Pica:
+ //: Unit 'Pica'
suffix = tr("P̸");
break;
case QPageLayout::Didot:
+ //: Unit 'Didot'
suffix = tr("DD");
break;
case QPageLayout::Cicero:
+ //: Unit 'Cicero'
suffix = tr("CC");
break;
}