Commit a129a984 authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Changes: add i18n strings (changes) blocked by 2.4 release

REVIEW: 104889
parent f1ef3eaa
......@@ -46,7 +46,7 @@ protected:
new FreehandStrokeStrategy::PainterInfo(painter,
new KisDistanceInformation());
return new FreehandStrokeStrategy(indirectPainting, resources, m_painterInfo);
return new FreehandStrokeStrategy(indirectPainting, resources, m_painterInfo, QLatin1String("Freehand Stroke"));
}
void addPaintingJobs(KisImageWSP image, KisResourcesSnapshotSP resources,
......
......@@ -20,6 +20,8 @@
#include <QTimer>
#include <KLocale>
#include <KoPointerEvent.h>
#include <KoCanvasResourceManager.h>
......@@ -122,7 +124,7 @@ void KisToolFreehandHelper::initPaint(KoPointerEvent *event,
KisStrokeStrategy *stroke =
new FreehandStrokeStrategy(indirectPainting,
m_d->resources, m_d->painterInfos);
m_d->resources, m_d->painterInfos, i18n("Freehand Stroke"));
m_d->strokeId = m_d->strokesFacade->startStroke(stroke);
......
......@@ -105,17 +105,15 @@ public:
};
public:
// TODO: add i18n after 2.4
FreehandStrokeStrategy(bool needsIndirectPainting,
KisResourcesSnapshotSP resources,
PainterInfo *painterInfo,
const QString &name = "Freehand Stroke");
const QString &name);
// TODO: add i18n after 2.4
FreehandStrokeStrategy(bool needsIndirectPainting,
KisResourcesSnapshotSP resources,
QVector<PainterInfo*> painterInfos,
const QString &name = "Freehand Stroke");
const QString &name);
void doStrokeCallback(KisStrokeJobData *data);
......
......@@ -77,8 +77,7 @@ void StylesComboPreview::init()
m_addButton->setFlat(true);
m_addButton->setMinimumSize(16,16);
m_addButton->setMaximumSize(16, 16);
//TODO uncomment the following line after string freeze, also remove the _ in the middle of i18_nc call
// m_addButton->setToolTip( i18_nc( "@action:button Create a new style with the current properties", "Create style" ) );
m_addButton->setToolTip(i18n("Create a new style with the current properties"));
connect(m_addButton, SIGNAL(clicked()), this, SLOT(addNewStyle()));
updateAddButton();
......
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