diff options
author | Friedemann Kleint <Friedemann.Kleint@digia.com> | 2014-03-17 17:27:21 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-17 20:53:10 +0100 |
commit | 513a49d62c34e6b0454bbcbe8a94831d019651a8 (patch) | |
tree | 53acb6fec8c0137d709794df52eddced1faa928d /src/gui/painting/qpagesize.cpp | |
parent | 163a8d5a7640eefd3d5cd622b3fb325efaa3df57 (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>
Diffstat (limited to 'src/gui/painting/qpagesize.cpp')
-rw-r--r-- | src/gui/painting/qpagesize.cpp | 26 |
1 files changed, 16 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: |