Commit 3d7392cb authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fix problems mentioned by Alexander Potashev on Reviewboard

parent a8b6275d
......@@ -22,7 +22,7 @@ function calligra_xgettext() {
# Prepend "(qtundo-format)" to existing msgctxt properties of messages
sed -i -e 's/^msgctxt "/msgctxt "(qtundo-format) /' "${POT_PART_QUNDOFORMAT}"
# Add msgctxt "(qundo-format)" to messages not having msgctxt yet
# Add msgctxt "(qtundo-format)" to messages not having msgctxt yet
#
# lastLine != "#, fuzzy" is the check for the .pot header.
mv "${POT_PART_QUNDOFORMAT}" "${POT_PART_QUNDOFORMAT2}"
......
......@@ -100,7 +100,7 @@ void KisRecordedFilterAction::play(KisNodeSP node, const KisPlayInfo& _info, KoU
KisPaintDeviceSP dev = node->paintDevice();
KisLayerSP layer = dynamic_cast<KisLayer*>(node.data());
QRect r1 = dev->extent();
KisTransaction transaction(kundo2_i18nc("(qtundo_format)", "Filter: \"%1\"", d->filter->name()), dev);
KisTransaction transaction(kundo2_i18n("Filter: \"%1\"", d->filter->name()), dev);
KisImageWSP image = _info.image();
r1 = r1.intersected(image->bounds());
......
......@@ -25,7 +25,7 @@ DlgOffsetImage::DlgOffsetImage(QWidget * parent, const char * name, QSize image
: KDialog(parent),
m_offsetSize(imageSize)
{
setCaption(i18n("Offset Image"));
setCaption("BUG: No sane caption is set");
setButtons(Ok | Cancel);
setDefaultButton(Ok);
setObjectName(name);
......
......@@ -71,7 +71,7 @@ void OffsetImage::slotOffsetImage()
Q_CHECK_PTR(dlgOffsetImage);
KUndo2MagicString actionName = kundo2_i18n("Offset Image");
dlgOffsetImage->setCaption(actionName.toString());
dlgOffsetImage->setCaption(i18nc("@title:window", "Offset Image"));
if (dlgOffsetImage->exec() == QDialog::Accepted) {
QPoint offsetPoint = QPoint(dlgOffsetImage->offsetX(), dlgOffsetImage->offsetY());
......@@ -95,7 +95,7 @@ void OffsetImage::slotOffsetLayer()
Q_CHECK_PTR(dlgOffsetImage);
KUndo2MagicString actionName = kundo2_i18n("Offset Layer");
dlgOffsetImage->setCaption(actionName.toString());
dlgOffsetImage->setCaption(i18nc("@title:window", "Offset Layer"));
if (dlgOffsetImage->exec() == QDialog::Accepted) {
QPoint offsetPoint = QPoint(dlgOffsetImage->offsetX(), dlgOffsetImage->offsetY());
......
......@@ -163,7 +163,7 @@ void KisToolGradient::endPrimaryAction(KoPointerEvent *event)
KisCanvas2 * canvas = dynamic_cast<KisCanvas2 *>(this->canvas());
KoProgressUpdater * updater = canvas->view()->createProgressUpdater(KoProgressUpdater::Unthreaded);
updater->start(100, actionName.toString());
updater->start(100, i18nc("@info:progress", "Gradient..."));
painter.setProgress(updater->startSubtask());
painter.paintGradient(m_startPos, m_endPos, m_shape, m_repeat, m_antiAliasThreshold, m_reverse, 0, 0, currentImage()->width(), currentImage()->height());
......
......@@ -38,7 +38,7 @@ public:
};
KoShapeRenameCommand::KoShapeRenameCommand(KoShape *shape, const QString &newName, KUndo2Command *parent)
: KUndo2Command(kundo2_i18nc("qtundo_format", "Rename Shape"), parent)
: KUndo2Command(kundo2_i18n("Rename Shape"), parent)
, d(new Private(shape, newName))
{
}
......
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