Skip to content
This repository has been archived by the owner on Oct 30, 2021. It is now read-only.

Commit

Permalink
Fixed process starting from build dir on linux.
Browse files Browse the repository at this point in the history
German translation updated.
  • Loading branch information
RazrFalcon committed Jun 17, 2013
1 parent 48f9b1b commit ba2cf6d
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 22 deletions.
1 change: 0 additions & 1 deletion src/gui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ void MainWindow::on_actionWizard_triggered()
WizardDialog wizard;
if (wizard.exec()) {
arguments = wizard.threadArguments();
qDebug() << arguments.args;
actionStart->setEnabled(true);
}
}
Expand Down
10 changes: 4 additions & 6 deletions src/gui/someutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ QString SomeUtils::prepareTime(const float ms)

QString SomeUtils::findFile(const QString &name, const QString &defaultFolder)
{
if (QFile( "../SVGCleaner/" + name).exists()) // Qt Creator shadow build
return "../SVGCleaner/" + name;
else if (QFile(name).exists()) // next to exe. Usual build/Windows.
return name;
else if (QFile(defaultFolder + name).exists()) // custom path
return defaultFolder + name;
if (QFile(defaultFolder + "/" + name).exists())
return defaultFolder + "/" + name;
else
return "./" + name;
return name;
}
2 changes: 1 addition & 1 deletion src/gui/wizarddialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ ToThread WizardDialog::threadArguments()
threadArgs.zipPath = QApplication::applicationDirPath() + "/7za";
#else
threadArgs.cliPath = SomeUtils::findFile("svgcleaner-cli", "/usr/bin/");
threadArgs.zipPath = SomeUtils::findFile("7z", "/usr/bin/");
threadArgs.zipPath = "/usr/bin/7z";
#endif
return threadArgs;
}
Expand Down
28 changes: 14 additions & 14 deletions translations/svgcleaner_de.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,58 +22,58 @@
</message>
<message>
<source>Generally, SVG files produced by vector editors contain a lot of unused elements and attributes that just blow up their size without providing better visible quality.</source>
<translation>Für Gewöhnlich enthalten SVG-Dateien, die mit SVG-Editoren erstellt wurden, viele ungenutze Elemente und Attribute im Quelltext, die lediglich ihre Größe beeinflussen, nicht jedoch ihre Qualität.</translation>
<translation>Für gewöhnlich enthalten SVG-Dateien, die mit SVG-Editoren erstellt wurden, viele ungenutze Elemente und Attribute im Quelltext, die lediglich ihre Größe beeinflussen, nicht jedoch ihre Qualität.</translation>
</message>
<message>
<source>SVG Cleaner could help you to clean up your SVG files from unnecessary data. It has a lot of options for cleanup and optimization, works in batch mode, provides threaded processing on the multicore processors and basically does two things:&lt;br /&gt;- removing elements and attributes that don&apos;t contribute to the final rendering;&lt;br /&gt;- making those elements and attributes in use more compact.</source>
<translation>SVG Cleaner kann Ihnen helfen, Ihre SVG-Dateien von ungenutzten Daten zu befreien. Er arbeitet im Stapelverarbeitungs-Modus und macht einfach betrachtet folgendes:&lt;br /&gt;- Elemente und Attribute aus dem Quelltext entfernen, die nicht zum eigetnlich darzustellenden Bild beitragen;&lt;br /&gt;- die Elemente und Attribute, die wirklich genutzt werden, komprimieren.&lt;br /&gt;Die Anwendung verfügt über eine reihe von Optionen für die Bereinigung und Optimierung der Dateien und bietet multithread Verarbeitung auf Mehrkern-CPUs.</translation>
</message>
<message>
<source>Images cleaned by SVG Cleaner are typically 10-60 percent smaller than the original ones.</source>
<translation>In der regel schrumpfen mit SVG Cleaner optimierte Bilddateien auf 10-60% ihrer Ausgangsgröße.</translation>
<translation>In der Regel schrumpfen mit SVG Cleaner optimierte Bilddateien auf 10-60% ihrer Ausgangsgröße.</translation>
</message>
<message>
<source>Important! The internal image viewer in SVG Cleaner uses the QtSvg module for rendering SVG images. Qt supports only the static features of SVG 1.2 Tiny, and that imposes a number of restrictions on rendering of advanced features. For instance, elements such as clipPath, mask, filters etc. will not be rendered at all.</source>
<translation>Achtung! Die interne Bildbetrachter in SVG Cleaner benutzt QtSvg, um die SVG-Dateien darzustellen. Da Qt nur die statischen Features von SVG 1.2 Tiny unterstützt, beeinträchtigt dies die Darstellung von einigen erweiterten Merkmalen. So können zum Beispiel Elemente wie Clip-Pfade, Masken, Filter etc. generell nicht dargestellt werden.</translation>
</message>
<message>
<source>We apologize for any bugs in advance. Please send bug reports to </source>
<translation>Wir bitten etwaig auftretenden Programmfehler entschuldigen. Bitte senden Sie uns fehlerberichte an </translation>
<translation>Wir bitten etwaig auftretenden Programmfehler zu entschuldigen. Bitte senden Sie uns Fehlerberichte an </translation>
</message>
<message>
<source>Developers:</source>
<translation type="unfinished"></translation>
<translation>Entwickler:</translation>
</message>
<message>
<source>Previous developers:</source>
<translation type="unfinished"></translation>
<translation>Frühere Entwickler:</translation>
</message>
<message>
<source>Special thanks:</source>
<translation type="unfinished"></translation>
<translation>Besonderer Dank:</translation>
</message>
<message>
<source>Logo design:</source>
<translation type="unfinished"></translation>
<translation>Logo-Design:</translation>
</message>
<message>
<source>Translators:</source>
<translation type="unfinished"></translation>
<translation>Übersetzer:</translation>
</message>
</context>
<context>
<name>CleanerThread</name>
<message>
<source>Crashed</source>
<translation type="unfinished"></translation>
<translation>Abgestürzt</translation>
</message>
<message>
<source>Input file does not exist.</source>
<translation type="unfinished"></translation>
<translation>Die Eingabedatei existiert nicht.</translation>
</message>
<message>
<source>Output folder does not exist.</source>
<translation type="unfinished"></translation>
<translation>Der Ausgabe-Ordner existiert nicht.</translation>
</message>
<message>
<source>It&apos;s a not well-formed SVG file.</source>
Expand Down Expand Up @@ -626,19 +626,19 @@ Overwrite?</source>
</message>
<message>
<source>Remove processing instruction</source>
<translation type="unfinished"></translation>
<translation>Entferne die Verarbeitungs-Angaben</translation>
</message>
<message>
<source>Remove XLinks which pointed to nonexistent element</source>
<translation type="unfinished"></translation>
<translation>Entferne Xlinks, die auf nicht existierende Elemente zeigen</translation>
</message>
<message>
<source>Remove empty segments</source>
<translation>entferne leere Linien- und Kurven-Segmente</translation>
</message>
<message>
<source>Merge multiply matrices into one and simplify it</source>
<translation type="unfinished"></translation>
<translation>Führe mehrfahe Matrizen in eine zusammen udn vereinfache sie</translation>
</message>
</context>
</TS>

0 comments on commit ba2cf6d

Please sign in to comment.