[Kst] [kst] [Bug 330050] i18n + l10n issues in kst2
Burkhard Lueck
lueck at hube-lueck.de
Sun May 4 11:49:21 UTC 2014
https://bugs.kde.org/show_bug.cgi?id=330050
--- Comment #5 from Burkhard Lueck <lueck at hube-lueck.de> ---
Some more strings which might be user visible and therefore translated?
Please check, thanks.
./src/libkstapp/bugreportwizard.cpp:32: _OS->setText("Mac OS 9");
./src/libkstapp/bugreportwizard.cpp:34: _OS->setText("Mac OS X");
./src/libkstapp/bugreportwizard.cpp:36: _OS->setText("Windows 32-Bit");
./src/libkstapp/bugreportwizard.cpp:38: _OS->setText("Windows 64-Bit");
./src/libkstapp/bugreportwizard.cpp:40: _OS->setText("Linux");
./src/libkstapp/lineedititem.cpp:34: _lineEdit->setText("");
kdedev at parodia:~/svn/extragear/graphics-git/kst-plot(master)$ git diff
diff --git a/src/datasources/ascii/asciiconfigwidget.cpp
b/src/datasources/ascii/asciiconfigwidget.cpp
index 8400a20..ac5a82b 100644
--- a/src/datasources/ascii/asciiconfigwidget.cpp
+++ b/src/datasources/ascii/asciiconfigwidget.cpp
@@ -74,7 +74,7 @@ QString AsciiConfigWidgetInternal::readLine(QTextStream& in,
int maxLength)
void AsciiConfigWidgetInternal::showBeginning()
{
showBeginning(_showBeginning, 100);
- _labelBeginning->setText(QString("First lines of file
'%1'").arg(QFileInfo(_filename).fileName()));
+ _labelBeginning->setText(tr("First lines of file
'%1'").arg(QFileInfo(_filename).fileName()));
}
@@ -396,19 +396,19 @@ bool AsciiConfigWidget::isOkAcceptabe() const {
QString msg;
if (config._readFields) {
if (config._fieldsLine == config._dataLine) {
- msg = QString("Line %1 can not list field names AND
values!").arg(config._fieldsLine + 1);
+ msg = tr("Line %1 can not list field names AND
values!").arg(config._fieldsLine + 1);
}
if (config._readUnits) {
if (config._unitsLine == config._dataLine) {
- msg = QString("Line %1 can not list units AND
values!").arg(config._unitsLine + 1);
+ msg = tr("Line %1 can not list units AND
values!").arg(config._unitsLine + 1);
}
if (config._unitsLine == config._fieldsLine) {
- msg = QString("Line %1 can not list field names AND
units!").arg(config._unitsLine + 1);
+ msg = tr("Line %1 can not list field names AND
units!").arg(config._unitsLine + 1);
}
}
}
if (!msg.isEmpty()) {
- QMessageBox::critical(0, "Inconsistent parameters", msg);
+ QMessageBox::critical(0, tr("Inconsistent parameters"), msg);
return false;
}
return true;
diff --git a/src/plugins/dataobject/syncbin/syncbin.cpp
b/src/plugins/dataobject/syncbin/syncbin.cpp
index fdbf0bc..4cea748 100644
--- a/src/plugins/dataobject/syncbin/syncbin.cpp
+++ b/src/plugins/dataobject/syncbin/syncbin.cpp
@@ -26,7 +26,7 @@
static const QString& VECTOR_IN_X = "Vector In X";
static const QString& VECTOR_IN_Y = "Vector In Y";
-static const QString& SCALAR_IN_BINS = "Number of Bins";
+static const QString& SCALAR_IN_BINS = "Number of Bins"; //needs translation
static const QString& SCALAR_IN_XMIN = "X Min";
static const QString& SCALAR_IN_XMAX = "X Max";
@@ -215,16 +215,16 @@ bool SyncBinSource::algorithm() {
//Make sure there is at least 1 element in the input vector
if (inputVectorX->length() < 1) {
- _errorString = "Error: Input Vector X invalid size";
+ _errorString = "Error: Input Vector X invalid size"; //needs translation?
return false;
}
if (inputVectorX->length() != inputVectorY->length()) {
- _errorString = "Error: Input Vector lengths do not match";
+ _errorString = "Error: Input Vector lengths do not match"; //needs
translation?
return false;
}
if (nbins < 2) {
- _errorString = "Error: Bins must be at least 2";
+ _errorString = "Error: Bins must be at least 2"; //needs translation?
return false;
}
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Kst
mailing list