[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Wed Aug 4 23:24:13 CEST 2004
CVS commit by staikos:
i18n("%1") is not really useful for translation since it's basically "%1", at
least in these cases.
M +4 -4 kst2dplot.cpp 1.200
--- kdeextragear-2/kst/kst/kst2dplot.cpp #1.199:1.200
@@ -963,13 +963,13 @@ inline void SafeD2I(double dx, int& x) {
-static void genAxisTickLabel(QString &label, double z, bool isLog) {
+static void genAxisTickLabel(QString& label, double z, bool isLog) {
if (isLog) {
if (z > -4 && z < 4) {
- label = i18n("%1").arg(pow(10,z),0,'g',LABEL_PRECISION);
+ label = QString::number(pow(10, z), 'g', LABEL_PRECISION);
} else {
- label = i18n("10^{%1}").arg(z,0,'f',0);
+ label = i18n("10^{%1}").arg(z, 0, 'f', 0);
}
} else {
- label = i18n("%1").arg(z,0,'g',LABEL_PRECISION);
+ label = QString::number(z, 'g', LABEL_PRECISION);
}
}
More information about the Kst
mailing list