Changeset View
Changeset View
Standalone View
Standalone View
src/formatstrings.cpp
Show First 20 Lines • Show All 156 Lines • ▼ Show 20 Line(s) | |||||
157 | { | 157 | { | ||
158 | return i18nc("Symbol of frames per second, with space", "%1 fps", QLocale().toString(round(value.toDouble() * 100) / 100)); | 158 | return i18nc("Symbol of frames per second, with space", "%1 fps", QLocale().toString(round(value.toDouble() * 100) / 100)); | ||
159 | } | 159 | } | ||
160 | 160 | | |||
161 | QString FormatStrings::formatAspectRatio(const QVariant& value) | 161 | QString FormatStrings::formatAspectRatio(const QVariant& value) | ||
162 | { | 162 | { | ||
163 | return i18nc("Aspect ratio, normalized to one", "%1:1", QLocale().toString(round(value.toDouble() * 100) / 100)); | 163 | return i18nc("Aspect ratio, normalized to one", "%1:1", QLocale().toString(round(value.toDouble() * 100) / 100)); | ||
164 | } | 164 | } | ||
165 | | ||||
166 | QString FormatStrings::formatAsFNumber(const QVariant& value) | ||||
167 | { | ||||
168 | return i18nc("F number for photographs", "f/%1", QLocale().toString(value.toDouble(), 'g', 2)); | ||||
bruns: "f/%1" - lower case, reciprocal. | |||||
169 | } |
"f/%1" - lower case, reciprocal.