Commit c5f53ebd authored by Pino Toscano's avatar Pino Toscano

i18n fixes

- translate UI strings
- fix passing arguments to i18n
parent 236837cf
......@@ -220,7 +220,7 @@ void KisStatusBar::documentMousePositionChanged(const QPointF &pos)
pixelPos.setX(qBound(0, pixelPos.x(), m_viewManager->image()->width() - 1));
pixelPos.setY(qBound(0, pixelPos.y(), m_viewManager->image()->height() - 1));
m_pointerPositionLabel->setText(QString("%1, %2").arg(pixelPos.x()).arg(pixelPos.y()));
m_pointerPositionLabel->setText(i18nc("@info mouse position (x, y)", "%1, %2", pixelPos.x(), pixelPos.y()));
}
void KisStatusBar::imageSizeChanged()
......@@ -232,7 +232,7 @@ void KisStatusBar::imageSizeChanged()
if (image) {
qint32 w = image->width();
qint32 h = image->height();
sizeText = QString(i18nc("@info:status width x height (file size)", "%1 &x %2 (%3)")).arg(w).arg(h).arg(m_shortMemoryTag);
sizeText = i18nc("@info:status width x height (file size)", "%1 &x %2 (%3)", w, h, m_shortMemoryTag);
} else {
sizeText = m_shortMemoryTag;
}
......@@ -375,7 +375,7 @@ void KisStatusBar::setProfile(KisImageWSP image)
if (image->profile() == 0) {
m_statusBarProfileLabel->setText(i18n("No profile"));
} else {
m_statusBarProfileLabel->setText(image->colorSpace()->name() + " " + image->profile()->name());
m_statusBarProfileLabel->setText(i18nc("<color space> <image profile>", "%1 %2", image->colorSpace()->name(), image->profile()->name()));
}
}
......
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