[Kst] kdeextragear-2/kst/kst

Andrew Walker arwalker at sumusltd.com
Thu Apr 8 22:12:33 CEST 2004


CVS commit by arwalker: 

Removed a FIXME related to i18n not working


  M +3 -5      kstplot.cpp   1.43


--- kdeextragear-2/kst/kst/kstplot.cpp  #1.42:1.43
@@ -18,7 +18,6 @@
 #include <math.h>
 #include <limits.h>
-
 #include <kdebug.h>
-
+#include <klocale.h>
 #include <qpainter.h>
 #include <qrect.h>
@@ -1622,9 +1621,8 @@ void KstPlot::GenerateDefaultLabels() {
     }
 
-    // FIXME: i18n is broken here.
-    ylabel += QString(" and ") + Curves[n_curves - 1]->getYLabel();
+    ylabel = i18n("%1 and %2").arg(ylabel).arg(Curves[n_curves - 1]->getYLabel());
     if (toplabel != Curves[i_curve]->getTopLabel() &&
         !Curves[i_curve]->getTopLabel().isEmpty()) {
-      toplabel += QString(" and ") + Curves[n_curves - 1]->getTopLabel();
+      toplabel = i18n("%1 and %2").arg(toplabel).arg(Curves[n_curves - 1]->getTopLabel());
     }
   }





More information about the Kst mailing list