Commit c3ab87d6 authored by Pino Toscano's avatar Pino Toscano
Browse files

Revert "i18n: add placeholder to KSaneOption::unitString() strings"

Actually, I realized that adding the %1 placeholder to the suffix string
will make the text show the value twice. Instead, better fix
KPluralHandlingSpinBox to not try to substitute the value.

This reverts commit dd39e1fb.
parent ad002ae9
......@@ -366,12 +366,12 @@ KLocalizedString KSaneOption::unitString()
{
switch (m_optDesc->unit) {
case SANE_UNIT_NONE: return KLocalizedString();
case SANE_UNIT_PIXEL: return ki18ncp("SpinBox parameter unit", "%1 Pixel", "%1 Pixels");
case SANE_UNIT_BIT: return ki18ncp("SpinBox parameter unit", "%1 Bit", "%1 Bits");
case SANE_UNIT_MM: return ki18nc("SpinBox parameter unit (Millimeter)", "%1 mm");
case SANE_UNIT_DPI: return ki18nc("SpinBox parameter unit (Dots Per Inch)", "%1 DPI");
case SANE_UNIT_PERCENT: return ki18nc("SpinBox parameter unit (Percentage)", "%1 %");
case SANE_UNIT_MICROSECOND: return ki18nc("SpinBox parameter unit (Microseconds)", "%1 µs");
case SANE_UNIT_PIXEL: return ki18ncp("SpinBox parameter unit", " Pixel", " Pixels");
case SANE_UNIT_BIT: return ki18ncp("SpinBox parameter unit", " Bit", " Bits");
case SANE_UNIT_MM: return ki18nc("SpinBox parameter unit (Millimeter)", " mm");
case SANE_UNIT_DPI: return ki18nc("SpinBox parameter unit (Dots Per Inch)", " DPI");
case SANE_UNIT_PERCENT: return ki18nc("SpinBox parameter unit (Percentage)", " %");
case SANE_UNIT_MICROSECOND: return ki18nc("SpinBox parameter unit (Microseconds)", " µs");
}
return KLocalizedString();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment