[openmeca] 01/01: Fixed a few typos (lintian warnings)
Steffen Möller
moeller at moszumanska.debian.org
Tue Apr 18 12:07:59 UTC 2017
This is an automated email from the git hooks/post-receive script.
moeller pushed a commit to branch master
in repository openmeca.
commit 82894bff750213ac1dd12426e6f80f914d13b8dc
Author: Steffen Moeller <moeller at debian.org>
Date: Tue Apr 18 14:06:08 2017 +0200
Fixed a few typos (lintian warnings)
---
debian/patches/series | 1 +
debian/patches/typos.patch | 90 ++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 91 insertions(+)
diff --git a/debian/patches/series b/debian/patches/series
index 2b52e38..a0d4704 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
fix-shared-lib-qglviewer
+typos.patch
diff --git a/debian/patches/typos.patch b/debian/patches/typos.patch
new file mode 100644
index 0000000..b156cae
--- /dev/null
+++ b/debian/patches/typos.patch
@@ -0,0 +1,90 @@
+Index: openmeca/SRC/OpenMeca/Core/Software.cpp
+===================================================================
+--- openmeca.orig/SRC/OpenMeca/Core/Software.cpp
++++ openmeca/SRC/OpenMeca/Core/Software.cpp
+@@ -91,35 +91,35 @@ namespace OpenMeca
+ QFile file(fileInfo_.c_str());
+ if(!file.open(QIODevice::ReadOnly))
+ {
+- OMC_ASSERT_MSG(0, "Can't read the sofware file info");
+- }
+- QTextStream in(&file);
++ OMC_ASSERT_MSG(0, "Can't read the software file info");
++ }
++ QTextStream in(&file);
+
+- while(!in.atEnd())
+- {
+- QString line = in.readLine();
+- QStringList fields = line.split(":");
+- OMC_ASSERT_MSG(fields.count()==2, "Problem while reading software info file");
+- fields.first().replace(" ","");
+- const std::string key = (fields.first()).toStdString();
+- const std::string value = (fields.last()).toStdString();
++ while(!in.atEnd())
++ {
++ QString line = in.readLine();
++ QStringList fields = line.split(":");
++ OMC_ASSERT_MSG(fields.count()==2, "Problem while reading software info file");
++ fields.first().replace(" ","");
++ const std::string key = (fields.first()).toStdString();
++ const std::string value = (fields.last()).toStdString();
+
+- OMC_ASSERT_MSG(info_.count(key)==0, "Problem while reading software info file, the key value is already used");
+- info_[key] = value;
+- }
+- }
++ OMC_ASSERT_MSG(info_.count(key)==0, "Problem while reading software info file, the key value is already used");
++ info_[key] = value;
++ }
++ }
+
+
+- void
+- Software::FakeTranslate()
+- {
+- // It's just to force translation of some keywords...
++ void
++ Software::FakeTranslate()
++ {
++ // It's just to force translation of some keywords...
+
+- // Keyword inside xml menumanager file
+- QObject::tr("Geometry");
+- QObject::tr("Cosmetic");
+- QObject::tr("Loading");
+- QObject::tr("Plot data...");
++ // Keyword inside xml menumanager file
++ QObject::tr("Geometry");
++ QObject::tr("Cosmetic");
++ QObject::tr("Loading");
++ QObject::tr("Plot data...");
+ QObject::tr("Save data...");
+ QObject::tr("Help");
+ QObject::tr("About...");
+Index: openmeca/SRC/OpenMeca/Gui/MainWindow.cpp
+===================================================================
+--- openmeca.orig/SRC/OpenMeca/Gui/MainWindow.cpp
++++ openmeca/SRC/OpenMeca/Gui/MainWindow.cpp
+@@ -628,7 +628,7 @@ namespace OpenMeca
+ text += "<br><br>";
+
+
+- text += "<b>" + tr("Main informations") + "</b>";
++ text += "<b>" + tr("Main information") + "</b>";
+ text += Core::Software::Get().HtmlText();
+
+
+Index: openmeca/SRC/OpenMeca/Rsc/Lang/openmeca_fr.ts
+===================================================================
+--- openmeca.orig/SRC/OpenMeca/Rsc/Lang/openmeca_fr.ts
++++ openmeca/SRC/OpenMeca/Rsc/Lang/openmeca_fr.ts
+@@ -709,7 +709,7 @@ The dialog will be closed</source>
+ </message>
+ <message>
+ <location filename="../../Gui/MainWindow.cpp" line="611"/>
+- <source>Main informations</source>
++ <source>Main information</source>
+ <translation>Informations générales</translation>
+ </message>
+ <message>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/openmeca.git
More information about the debian-science-commits
mailing list