Changeset View
Changeset View
Standalone View
Standalone View
src/formatstrings.cpp
Show First 20 Lines • Show All 145 Lines • ▼ Show 20 Line(s) | 145 | { | |||
---|---|---|---|---|---|
146 | KFormat form; | 146 | KFormat form; | ||
147 | return form.formatValue(value.toDouble(), KFormat::Unit::Meter, 1, KFormat::UnitPrefix::AutoAdjust, KFormat::MetricBinaryDialect); | 147 | return form.formatValue(value.toDouble(), KFormat::Unit::Meter, 1, KFormat::UnitPrefix::AutoAdjust, KFormat::MetricBinaryDialect); | ||
148 | } | 148 | } | ||
149 | 149 | | |||
150 | QString FormatStrings::formatAsFrameRate(const QVariant& value) | 150 | QString FormatStrings::formatAsFrameRate(const QVariant& value) | ||
151 | { | 151 | { | ||
152 | return QString(QString::number(round(value.toDouble() * 100) / 100) + i18nc("Symbol of frames per second, with space", " fps")); | 152 | return QString(QString::number(round(value.toDouble() * 100) / 100) + i18nc("Symbol of frames per second, with space", " fps")); | ||
153 | } | 153 | } | ||
154 | | ||||
155 | QString FormatStrings::formatAspectRatio(const QVariant& value) | ||||
156 | { | ||||
157 | return QString(QString::number(round(value.toDouble() * 100) / 100) + QStringLiteral(":1")); | ||||
bruns: Proper i18n | |||||
That was actually done deliberately to get this in for Kf 5.56 since there is string freeze. But if concatenation is a no go, this has to wait astippich: That was actually done deliberately to get this in for Kf 5.56 since there is string freeze. | |||||
Thats obviously just avoiding the rules. You can ask for an exception anyway. bruns: Thats obviously just avoiding the rules. You can ask for an exception anyway. | |||||
The intention was to land the fix as soon as possible while complying to the rules, and fixing the i18n in the following frameworks release. astippich: The intention was to land the fix as soon as possible while complying to the rules, and fixing… | |||||
158 | } |
Proper i18n