"Friendlier" error message if Minetestmapper not found.

Minetestmapper GUI is asking now if the user want to open Preferences.
master
addi 2016-06-29 17:00:42 +02:00
parent 6ae746005a
commit d3832929c7
3 changed files with 192 additions and 149 deletions

View File

@ -87,12 +87,12 @@
<message>
<location filename="../geometrywidget.ui" line="44"/>
<source>Center &amp; Dimensions</source>
<translation type="unfinished"></translation>
<translation>Zentrum &amp; Abmessung</translation>
</message>
<message>
<location filename="../geometrywidget.ui" line="49"/>
<source>Corner &amp; Dimensions</source>
<translation type="unfinished"></translation>
<translation>Ecke &amp; Abmessung</translation>
</message>
<message>
<location filename="../geometrywidget.ui" line="54"/>
@ -133,7 +133,7 @@
<location filename="../geometrywidget.ui" line="208"/>
<location filename="../geometrywidget.ui" line="421"/>
<source>Dimensions:</source>
<translation type="unfinished"></translation>
<translation>Abmessung:</translation>
</message>
<message>
<location filename="../geometrywidget.ui" line="313"/>
@ -163,19 +163,19 @@
<message>
<location filename="../geometrywidget.ui" line="761"/>
<source>Parse</source>
<translation type="unfinished"></translation>
<translation>Parsen</translation>
</message>
<message>
<location filename="../geometrywidget.cpp" line="408"/>
<location filename="../geometrywidget.cpp" line="497"/>
<source>Invalid or unrecognised geometry</source>
<translation type="unfinished"></translation>
<translation>Ungültige oder unbekannte Geometrie</translation>
</message>
<message>
<location filename="../geometrywidget.cpp" line="409"/>
<location filename="../geometrywidget.cpp" line="498"/>
<source>&lt;h1&gt;WARNING&lt;/h1&gt; &lt;h2&gt;Geometry string was not recognised&lt;/h2&gt;The given geometry is either invalid, or only supported in &lt;i&gt;custom&lt;/i&gt; mode.</source>
<translation type="unfinished"></translation>
<translation>&lt;h1&gt;Warnung&lt;/h1&gt;&lt;h2&gt;Geometrie ist nicht bekannt&lt;/h2&gt;Die eingegebene Geometrie ist entweder ungültig oder wird nur im &lt;i&gt;Benutzerdefinierten&lt;/i&gt; modus Unterstützt.</translation>
</message>
</context>
<context>
@ -203,7 +203,7 @@
<message>
<location filename="../mainwindow.ui" line="96"/>
<source>Set or override the database backend to use. If you are not shure, select &apos;auto&apos;</source>
<translation type="unfinished"></translation>
<translation>Setzt oder überschreibt das Datenbank Backend. Wenn Sie sich nicht sicher sind wählen sie &apos;auto&apos;</translation>
</message>
<message>
<location filename="../mainwindow.ui" line="118"/>
@ -605,12 +605,12 @@
<message>
<location filename="../mainwindow.ui" line="2082"/>
<source>world center (0,0)</source>
<translation type="unfinished"></translation>
<translation>Zentrum der Welt (0,0)</translation>
</message>
<message>
<location filename="../mainwindow.ui" line="2092"/>
<source>map origin (top-left)</source>
<translation type="unfinished"></translation>
<translation>Kartenursprung (Oben links)</translation>
</message>
<message>
<location filename="../mainwindow.ui" line="2276"/>
@ -736,7 +736,7 @@
<location filename="../mainwindow.ui" line="1266"/>
<location filename="../mainwindow.ui" line="1277"/>
<location filename="../mainwindow.ui" line="1288"/>
<location filename="../mainwindow.cpp" line="942"/>
<location filename="../mainwindow.cpp" line="958"/>
<source>select color</source>
<translation>Farbe auswählen</translation>
</message>
@ -841,7 +841,7 @@
<message>
<location filename="../mainwindow.ui" line="2190"/>
<source>select all</source>
<translation>Alles auswählen</translation>
<translation>Alle markieren</translation>
</message>
<message>
<location filename="../mainwindow.ui" line="2197"/>
@ -892,7 +892,7 @@
</message>
<message>
<location filename="../mainwindow.ui" line="2397"/>
<location filename="../mainwindow.cpp" line="923"/>
<location filename="../mainwindow.cpp" line="939"/>
<source>About MinetestMapper</source>
<translation>Über MinetestMapper</translation>
</message>
@ -925,7 +925,7 @@
<location filename="../mainwindow.ui" line="2507"/>
<location filename="../mainwindow.ui" line="2510"/>
<source>edit colors.txt with default program</source>
<translation type="unfinished"></translation>
<translation>Bearbeite die colors.txt Datei mit dem Standard Programm</translation>
</message>
<message>
<location filename="../mainwindow.ui" line="2518"/>
@ -941,7 +941,7 @@
</message>
<message>
<location filename="../mainwindow.ui" line="2537"/>
<location filename="../mainwindow.cpp" line="955"/>
<location filename="../mainwindow.cpp" line="971"/>
<source>New Profile</source>
<translation>Neues Profil</translation>
</message>
@ -951,7 +951,7 @@
</message>
<message>
<location filename="../mainwindow.ui" line="2545"/>
<location filename="../mainwindow.cpp" line="385"/>
<location filename="../mainwindow.cpp" line="401"/>
<source>Expert Mode</source>
<translation>Expertenmodus</translation>
</message>
@ -972,225 +972,243 @@
</message>
<message>
<location filename="../mainwindow.ui" line="2496"/>
<location filename="../mainwindow.cpp" line="909"/>
<location filename="../mainwindow.cpp" line="925"/>
<source>About MinetestMapper GUI</source>
<translation>Über MinetestMapperGUI</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="205"/>
<location filename="../mainwindow.cpp" line="209"/>
<location filename="../mainwindow.cpp" line="207"/>
<location filename="../mainwindow.cpp" line="216"/>
<source>Minetestmapper not found</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="206"/>
<source>ERROR: No minetestmapper executable could not be found&lt;br&gt;&lt;br&gt;Please configure one (Edit-&gt;Preferences)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="210"/>
<source>ERROR: Configured minetestmapper executable (%1) could not be found&lt;br&gt;&lt;br&gt;Please configure one (Edit-&gt;Preferences)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="214"/>
<location filename="../mainwindow.cpp" line="226"/>
<source>Minetestmapper not executable</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="215"/>
<source>ERROR: The configured minetestmapper (%1) is not executablePlease configure a valid minetestmapper executable (Edit-&gt;Preferences)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="225"/>
<location filename="../mainwindow.cpp" line="241"/>
<source>no input world selected</source>
<translation>Keine Minetestwelt ausgewählt</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="226"/>
<location filename="../mainwindow.cpp" line="242"/>
<source>ERROR: No MinetestWorld selected&lt;br&gt;&lt;br&gt;please select a world</source>
<translation>FEHLER: Keine Minetestwelt ausgewählt&lt;br&gt;&lt;br&gt;Bitte wähle eine Welt aus</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="232"/>
<location filename="../mainwindow.cpp" line="248"/>
<source>no output image selected</source>
<translation>Kein Ausgabebild ausgewählt</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="233"/>
<location filename="../mainwindow.cpp" line="249"/>
<source>ERROR: No output image selected&lt;br&gt;&lt;br&gt;please select a output image</source>
<translation>FEHLER: Kein Ausgabebild Ausgewählt. &lt;br&gt;&lt;br&gt;Bitte ein Bild Auswählen</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="238"/>
<location filename="../mainwindow.cpp" line="254"/>
<source>the Image File does already exist</source>
<translation>Das Bild existiert bereits</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="239"/>
<location filename="../mainwindow.cpp" line="255"/>
<source>The File &lt;i&gt;%1&lt;/i&gt; does already exist. &lt;br&gt;&lt;br&gt;Do you want to overwrite?</source>
<translation>Die Datei &lt;i&gt;%1&lt;/i&gt; existiert bereits. &lt;br&gt;&lt;br&gt;Soll die Datei Überschrieben werden?</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="247"/>
<location filename="../mainwindow.cpp" line="263"/>
<source>the directory does not exist</source>
<translation>Der Ordner existiert nicht</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="248"/>
<location filename="../mainwindow.cpp" line="264"/>
<source>The directory &lt;i&gt;%1&lt;/i&gt; does not exist. &lt;br&gt;&lt;br&gt;Should it be created?</source>
<translation>Der Ordner &lt;i&gt;%1&lt;/i&gt; existiert nicht. &lt;br&gt;&lt;br&gt;Möchten sie den Ordner erstellen?</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="386"/>
<location filename="../mainwindow.cpp" line="402"/>
<source>MinetestMapper will be executed using this arguments.
The arguments can be removed, modified, or new arguments can be added.</source>
<translation>MinetestMapper wird mit den folgenden Parametern ausgeführt.
Die einzelnen Parameter können entfernt, verändert, oder neue hinzugefügt werden.</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="484"/>
<location filename="../mainwindow.cpp" line="500"/>
<source>Finisched :)</source>
<translation>Fertig :-)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="492"/>
<location filename="../mainwindow.cpp" line="508"/>
<source>minetestmapper terminated</source>
<translation>minetestmapper abgebrochen</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="495"/>
<location filename="../mainwindow.cpp" line="512"/>
<location filename="../mainwindow.cpp" line="511"/>
<location filename="../mainwindow.cpp" line="528"/>
<source>Minetest Mapper failed</source>
<translation>Minetestmapper hat ein Fehler festgestellt</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="496"/>
<location filename="../mainwindow.cpp" line="512"/>
<source>&lt;h1&gt;ERROR&lt;/h1&gt; &lt;h2&gt;minetestmapper failed&lt;/h2&gt;Exit code: &lt;i&gt;%1&lt;/i&gt; &lt;br&gt;Status of MinetestMapper: &lt;pre&gt;%2&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Please fix the error and try again </source>
<translation>&lt;h1&gt;Fehler&lt;/h1&gt; &lt;h2&gt;kartenerstellung fehlgeschlagen&lt;/h2&gt;Exit code: &lt;i&gt;%1&lt;/i&gt; &lt;br&gt;Ausgabe des Minetstmapper: &lt;pre&gt;%2&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Bitte den Fehler beheben und erneut versuchen </translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="513"/>
<location filename="../mainwindow.cpp" line="529"/>
<source>&lt;h1&gt;ERROR&lt;/h1&gt; &lt;h2&gt;minetestmapper failed&lt;/h2&gt;Error code: &lt;i&gt;%1&lt;/i&gt; &lt;br&gt;Error Message: &lt;pre&gt;%2&lt;/pre&gt;&lt;br&gt;</source>
<translation>&lt;h1&gt;FEHLER&lt;/h1&gt; &lt;h2&gt;minetestmapper ist abgestürzt&lt;/h2&gt;Fehlercode: &lt;i&gt;%1&lt;/i&gt; &lt;br&gt;Fehlernachricht: &lt;pre&gt;%2&lt;/pre&gt;&lt;br&gt;</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="552"/>
<location filename="../mainwindow.cpp" line="568"/>
<source>Migrating settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="553"/>
<location filename="../mainwindow.cpp" line="569"/>
<source>&lt;h1&gt;WARNING&lt;/h1&gt; &lt;h2&gt;Migrating settings: both old and new settings found&lt;/h2&gt;old settings directory: &lt;i&gt;%1&lt;/i&gt;&lt;br&gt;new settings directory: &lt;i&gt;%2&lt;/i&gt;&lt;br&gt;&lt;h2&gt;Migrate old settings anyway ?&lt;/h2&gt;This overwrites the new settings, and some or all new profiles&lt;br&gt;&lt;br&gt;Delete the old settings files (&lt;i&gt;%1/Minetestmapper*&lt;/i&gt;) to avoid this message.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="567"/>
<location filename="../mainwindow.cpp" line="587"/>
<location filename="../mainwindow.cpp" line="596"/>
<location filename="../mainwindow.cpp" line="583"/>
<location filename="../mainwindow.cpp" line="603"/>
<location filename="../mainwindow.cpp" line="612"/>
<source>Failed to migrate settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="568"/>
<location filename="../mainwindow.cpp" line="584"/>
<source>&lt;h1&gt;ERROR&lt;/h1&gt; &lt;h2&gt;Failed to migrate settings&lt;/h2&gt;Reason: failed to create new settings directory &lt;i&gt;%1&lt;/i&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="588"/>
<location filename="../mainwindow.cpp" line="604"/>
<source>&lt;h1&gt;ERROR&lt;/h1&gt; &lt;h2&gt;Failed to migrate settings&lt;/h2&gt;Reason: failed to remove existing file &lt;i&gt;%1&lt;/i&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="597"/>
<location filename="../mainwindow.cpp" line="613"/>
<source>&lt;h1&gt;ERROR&lt;/h1&gt; &lt;h2&gt;Failed to migrate settings&lt;/h2&gt;Reason: failed to move file &lt;i&gt;%1&lt;/i&gt; to &lt;i&gt;%2&lt;/i&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="606"/>
<location filename="../mainwindow.cpp" line="622"/>
<source>Failed to remove old settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="607"/>
<location filename="../mainwindow.cpp" line="623"/>
<source>&lt;h1&gt;WARNING&lt;/h1&gt; &lt;h2&gt;Failed to remove old settings&lt;/h2&gt;Reason: failed to remove file &lt;i&gt;%1&lt;/i&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="617"/>
<location filename="../mainwindow.cpp" line="633"/>
<source>Failed to remove old settings directory</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="618"/>
<location filename="../mainwindow.cpp" line="634"/>
<source>&lt;h1&gt;WARNING&lt;/h1&gt; &lt;h2&gt;Failed to remove old settings directory&lt;/h2&gt;Reason: failed to remove directory &lt;i&gt;%1&lt;/i&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="867"/>
<location filename="../mainwindow.cpp" line="883"/>
<source>Open Minetest World</source>
<translation>Minetest Welt-Ordner öffnen</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="877"/>
<location filename="../mainwindow.cpp" line="893"/>
<source>Save generated map to...</source>
<translation>Karte speichern nach...</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="877"/>
<location filename="../mainwindow.cpp" line="893"/>
<source>png image (*.png)</source>
<translation>png Grafik (*.png)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="884"/>
<location filename="../mainwindow.cpp" line="900"/>
<source>Open HeightmapNodes File</source>
<translation>Öffne HeightmapNodes Datei</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="886"/>
<location filename="../mainwindow.cpp" line="894"/>
<location filename="../mainwindow.cpp" line="902"/>
<location filename="../mainwindow.cpp" line="910"/>
<location filename="../mainwindow.cpp" line="918"/>
<source>TXT File (*.txt)</source>
<translation>TXT Datei (*.txt)</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="892"/>
<location filename="../mainwindow.cpp" line="908"/>
<source>Open HeightmapColors File</source>
<translation>Öffne Höhenkarte Farbdefinitionsdatei</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="900"/>
<location filename="../mainwindow.cpp" line="916"/>
<source>Open colors.txt File</source>
<translation>Öffne colors.txt Datei</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="910"/>
<location filename="../mainwindow.cpp" line="926"/>
<source>&lt;h1&gt;About MinetestMapperGUI&lt;/h1&gt;The &lt;b&gt;MinetestMapper Gui&lt;/b&gt; is written by addi.&lt;br /&gt;It is licensed under a &lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot;&gt;Creative Commons Attribution 3.0 Unported License&lt;/a&gt;.&lt;br&gt;The current version is %1. &lt;br&gt;The sourcecode is aviable on &lt;a href=&apos;https://bitbucket.org/adrido/minetestmappergui/&apos;&gt;Bitbucket&lt;/a&gt;.&lt;br&gt;You may also want to read the &lt;a href=&apos;https://forum.minetest.net/viewtopic.php?f=14&amp;t=12139&apos;&gt;Minetest forum thread&lt;/a&gt;.&lt;br&gt;&lt;br&gt;&lt;b&gt;Thanks to:&lt;/b&gt;&lt;br&gt;McKrustenkaese for his great icon</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1015"/>
<location filename="../mainwindow.cpp" line="1031"/>
<source>map center</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1020"/>
<location filename="../mainwindow.cpp" line="1036"/>
<source>map origin (top left)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="924"/>
<location filename="../mainwindow.cpp" line="940"/>
<source>&lt;h1&gt;About MinetestMapper&lt;/h1&gt;The &lt;b&gt;MinetestMapper&lt;/b&gt; is written by:&lt;br&gt;Miroslav Bendík &lt;miroslav.bendik@gmail.com&gt;&lt;br&gt;ShadowNinja &lt;shadowninja@minetest.net&gt;&lt;br&gt;sfan5 &lt;sfan5@live.de&gt;&lt;br&gt;Rogier &lt;rogier777@gmail.com&gt;&lt;br&gt;&lt;br&gt;&lt;u&gt;License:&lt;/u&gt;LGPLv2.1+ and BSD 2-clause.&lt;br&gt;&lt;u&gt;Source Code:&lt;/u&gt; &lt;a href=&apos;https://github.com/Rogier-5/minetest-mapper-cpp&apos;&gt;Github&lt;/a&gt;&lt;br&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="936"/>
<location filename="../mainwindow.cpp" line="208"/>
<source>ERROR: No minetestmapper executable could not be found.
Please configure one. (Edit-&gt;Preferences)
Do you want to open Preferences now?</source>
<translation>Fehler: Keine minetestmapper Anwendung gefunden.
Bitte Konfigurieren Sie eine. (Bearbeiten-&gt;Einstellungen)
Möchten Sie die Einstellungen jetzt öffnen?</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="217"/>
<source>ERROR: Configured minetestmapper executable (%1) could not be found
Please configure one. (Edit-&gt;Preferences)
Do you want to open Preferences now?</source>
<translation>Fehler: Die Ausgewählte minetestmapper Anwendung (%1) konnte nicht gefunden werden.
Bitte erneut Konfigurieren. (Bearbeiten-&gt;Einstellungen)
Möchten Sie die Einstellungen jetzt öffnen?</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="227"/>
<source>ERROR: The configured minetestmapper (%1) is not executable.
Please configure a valid minetestmapper executable. (Edit-&gt;Preferences)
Do you want to open Preferences now?</source>
<translation>Fehler: Die Ausgewählte minetestmapper Anwendung (%1) ist nicht Ausführbar.
Bitte erneut eine gültige minetestmapper Anwendung auswählen. (Bearbeiten-&gt;Einstellungen)
Möchten Sie die Einstellungen jetzt öffnen? </translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="952"/>
<source>preview: %1</source>
<translation>Vorschau: %1</translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="956"/>
<location filename="../mainwindow.cpp" line="972"/>
<source>Name of the new Profile:</source>
<translation>Name des Neuen Profils:</translation>
</message>

View File

@ -432,7 +432,7 @@
<location filename="../mainwindow.ui" line="1266"/>
<location filename="../mainwindow.ui" line="1277"/>
<location filename="../mainwindow.ui" line="1288"/>
<location filename="../mainwindow.cpp" line="942"/>
<location filename="../mainwindow.cpp" line="958"/>
<source>select color</source>
<translation type="unfinished"></translation>
</message>
@ -851,7 +851,7 @@
</message>
<message>
<location filename="../mainwindow.ui" line="2397"/>
<location filename="../mainwindow.cpp" line="923"/>
<location filename="../mainwindow.cpp" line="939"/>
<source>About MinetestMapper</source>
<translation type="unfinished"></translation>
</message>
@ -897,7 +897,7 @@
</message>
<message>
<location filename="../mainwindow.ui" line="2496"/>
<location filename="../mainwindow.cpp" line="909"/>
<location filename="../mainwindow.cpp" line="925"/>
<source>About MinetestMapper GUI</source>
<translation type="unfinished"></translation>
</message>
@ -921,13 +921,13 @@
</message>
<message>
<location filename="../mainwindow.ui" line="2537"/>
<location filename="../mainwindow.cpp" line="955"/>
<location filename="../mainwindow.cpp" line="971"/>
<source>New Profile</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.ui" line="2545"/>
<location filename="../mainwindow.cpp" line="385"/>
<location filename="../mainwindow.cpp" line="401"/>
<source>Expert Mode</source>
<translation type="unfinished"></translation>
</message>
@ -947,219 +947,228 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="205"/>
<location filename="../mainwindow.cpp" line="209"/>
<location filename="../mainwindow.cpp" line="207"/>
<location filename="../mainwindow.cpp" line="216"/>
<source>Minetestmapper not found</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="206"/>
<source>ERROR: No minetestmapper executable could not be found&lt;br&gt;&lt;br&gt;Please configure one (Edit-&gt;Preferences)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="210"/>
<source>ERROR: Configured minetestmapper executable (%1) could not be found&lt;br&gt;&lt;br&gt;Please configure one (Edit-&gt;Preferences)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="214"/>
<location filename="../mainwindow.cpp" line="226"/>
<source>Minetestmapper not executable</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="215"/>
<source>ERROR: The configured minetestmapper (%1) is not executablePlease configure a valid minetestmapper executable (Edit-&gt;Preferences)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="225"/>
<location filename="../mainwindow.cpp" line="241"/>
<source>no input world selected</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="226"/>
<location filename="../mainwindow.cpp" line="242"/>
<source>ERROR: No MinetestWorld selected&lt;br&gt;&lt;br&gt;please select a world</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="232"/>
<location filename="../mainwindow.cpp" line="248"/>
<source>no output image selected</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="233"/>
<location filename="../mainwindow.cpp" line="249"/>
<source>ERROR: No output image selected&lt;br&gt;&lt;br&gt;please select a output image</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="238"/>
<location filename="../mainwindow.cpp" line="254"/>
<source>the Image File does already exist</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="239"/>
<location filename="../mainwindow.cpp" line="255"/>
<source>The File &lt;i&gt;%1&lt;/i&gt; does already exist. &lt;br&gt;&lt;br&gt;Do you want to overwrite?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="247"/>
<location filename="../mainwindow.cpp" line="263"/>
<source>the directory does not exist</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="248"/>
<location filename="../mainwindow.cpp" line="264"/>
<source>The directory &lt;i&gt;%1&lt;/i&gt; does not exist. &lt;br&gt;&lt;br&gt;Should it be created?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="386"/>
<location filename="../mainwindow.cpp" line="402"/>
<source>MinetestMapper will be executed using this arguments.
The arguments can be removed, modified, or new arguments can be added.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="484"/>
<location filename="../mainwindow.cpp" line="500"/>
<source>Finisched :)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="492"/>
<location filename="../mainwindow.cpp" line="508"/>
<source>minetestmapper terminated</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="495"/>
<location filename="../mainwindow.cpp" line="512"/>
<location filename="../mainwindow.cpp" line="511"/>
<location filename="../mainwindow.cpp" line="528"/>
<source>Minetest Mapper failed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="496"/>
<location filename="../mainwindow.cpp" line="512"/>
<source>&lt;h1&gt;ERROR&lt;/h1&gt; &lt;h2&gt;minetestmapper failed&lt;/h2&gt;Exit code: &lt;i&gt;%1&lt;/i&gt; &lt;br&gt;Status of MinetestMapper: &lt;pre&gt;%2&lt;/pre&gt;&lt;br&gt;&lt;br&gt;Please fix the error and try again </source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="513"/>
<location filename="../mainwindow.cpp" line="529"/>
<source>&lt;h1&gt;ERROR&lt;/h1&gt; &lt;h2&gt;minetestmapper failed&lt;/h2&gt;Error code: &lt;i&gt;%1&lt;/i&gt; &lt;br&gt;Error Message: &lt;pre&gt;%2&lt;/pre&gt;&lt;br&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="552"/>
<location filename="../mainwindow.cpp" line="568"/>
<source>Migrating settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="553"/>
<location filename="../mainwindow.cpp" line="569"/>
<source>&lt;h1&gt;WARNING&lt;/h1&gt; &lt;h2&gt;Migrating settings: both old and new settings found&lt;/h2&gt;old settings directory: &lt;i&gt;%1&lt;/i&gt;&lt;br&gt;new settings directory: &lt;i&gt;%2&lt;/i&gt;&lt;br&gt;&lt;h2&gt;Migrate old settings anyway ?&lt;/h2&gt;This overwrites the new settings, and some or all new profiles&lt;br&gt;&lt;br&gt;Delete the old settings files (&lt;i&gt;%1/Minetestmapper*&lt;/i&gt;) to avoid this message.</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="567"/>
<location filename="../mainwindow.cpp" line="587"/>
<location filename="../mainwindow.cpp" line="596"/>
<location filename="../mainwindow.cpp" line="583"/>
<location filename="../mainwindow.cpp" line="603"/>
<location filename="../mainwindow.cpp" line="612"/>
<source>Failed to migrate settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="568"/>
<location filename="../mainwindow.cpp" line="584"/>
<source>&lt;h1&gt;ERROR&lt;/h1&gt; &lt;h2&gt;Failed to migrate settings&lt;/h2&gt;Reason: failed to create new settings directory &lt;i&gt;%1&lt;/i&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="588"/>
<location filename="../mainwindow.cpp" line="604"/>
<source>&lt;h1&gt;ERROR&lt;/h1&gt; &lt;h2&gt;Failed to migrate settings&lt;/h2&gt;Reason: failed to remove existing file &lt;i&gt;%1&lt;/i&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="597"/>
<location filename="../mainwindow.cpp" line="613"/>
<source>&lt;h1&gt;ERROR&lt;/h1&gt; &lt;h2&gt;Failed to migrate settings&lt;/h2&gt;Reason: failed to move file &lt;i&gt;%1&lt;/i&gt; to &lt;i&gt;%2&lt;/i&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="606"/>
<location filename="../mainwindow.cpp" line="622"/>
<source>Failed to remove old settings</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="607"/>
<location filename="../mainwindow.cpp" line="623"/>
<source>&lt;h1&gt;WARNING&lt;/h1&gt; &lt;h2&gt;Failed to remove old settings&lt;/h2&gt;Reason: failed to remove file &lt;i&gt;%1&lt;/i&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="617"/>
<location filename="../mainwindow.cpp" line="633"/>
<source>Failed to remove old settings directory</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="618"/>
<location filename="../mainwindow.cpp" line="634"/>
<source>&lt;h1&gt;WARNING&lt;/h1&gt; &lt;h2&gt;Failed to remove old settings directory&lt;/h2&gt;Reason: failed to remove directory &lt;i&gt;%1&lt;/i&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="867"/>
<location filename="../mainwindow.cpp" line="883"/>
<source>Open Minetest World</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="877"/>
<location filename="../mainwindow.cpp" line="893"/>
<source>Save generated map to...</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="877"/>
<location filename="../mainwindow.cpp" line="893"/>
<source>png image (*.png)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="884"/>
<location filename="../mainwindow.cpp" line="900"/>
<source>Open HeightmapNodes File</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="886"/>
<location filename="../mainwindow.cpp" line="894"/>
<location filename="../mainwindow.cpp" line="902"/>
<location filename="../mainwindow.cpp" line="910"/>
<location filename="../mainwindow.cpp" line="918"/>
<source>TXT File (*.txt)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="892"/>
<location filename="../mainwindow.cpp" line="908"/>
<source>Open HeightmapColors File</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="900"/>
<location filename="../mainwindow.cpp" line="916"/>
<source>Open colors.txt File</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="910"/>
<location filename="../mainwindow.cpp" line="926"/>
<source>&lt;h1&gt;About MinetestMapperGUI&lt;/h1&gt;The &lt;b&gt;MinetestMapper Gui&lt;/b&gt; is written by addi.&lt;br /&gt;It is licensed under a &lt;a href=&quot;http://creativecommons.org/licenses/by/3.0/&quot;&gt;Creative Commons Attribution 3.0 Unported License&lt;/a&gt;.&lt;br&gt;The current version is %1. &lt;br&gt;The sourcecode is aviable on &lt;a href=&apos;https://bitbucket.org/adrido/minetestmappergui/&apos;&gt;Bitbucket&lt;/a&gt;.&lt;br&gt;You may also want to read the &lt;a href=&apos;https://forum.minetest.net/viewtopic.php?f=14&amp;t=12139&apos;&gt;Minetest forum thread&lt;/a&gt;.&lt;br&gt;&lt;br&gt;&lt;b&gt;Thanks to:&lt;/b&gt;&lt;br&gt;McKrustenkaese for his great icon</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1015"/>
<location filename="../mainwindow.cpp" line="1031"/>
<source>map center</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="1020"/>
<location filename="../mainwindow.cpp" line="1036"/>
<source>map origin (top left)</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="924"/>
<location filename="../mainwindow.cpp" line="940"/>
<source>&lt;h1&gt;About MinetestMapper&lt;/h1&gt;The &lt;b&gt;MinetestMapper&lt;/b&gt; is written by:&lt;br&gt;Miroslav Bendík &lt;miroslav.bendik@gmail.com&gt;&lt;br&gt;ShadowNinja &lt;shadowninja@minetest.net&gt;&lt;br&gt;sfan5 &lt;sfan5@live.de&gt;&lt;br&gt;Rogier &lt;rogier777@gmail.com&gt;&lt;br&gt;&lt;br&gt;&lt;u&gt;License:&lt;/u&gt;LGPLv2.1+ and BSD 2-clause.&lt;br&gt;&lt;u&gt;Source Code:&lt;/u&gt; &lt;a href=&apos;https://github.com/Rogier-5/minetest-mapper-cpp&apos;&gt;Github&lt;/a&gt;&lt;br&gt;</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="936"/>
<location filename="../mainwindow.cpp" line="208"/>
<source>ERROR: No minetestmapper executable could not be found.
Please configure one. (Edit-&gt;Preferences)
Do you want to open Preferences now?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="217"/>
<source>ERROR: Configured minetestmapper executable (%1) could not be found
Please configure one. (Edit-&gt;Preferences)
Do you want to open Preferences now?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="227"/>
<source>ERROR: The configured minetestmapper (%1) is not executable.
Please configure a valid minetestmapper executable. (Edit-&gt;Preferences)
Do you want to open Preferences now?</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="952"/>
<source>preview: %1</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../mainwindow.cpp" line="956"/>
<location filename="../mainwindow.cpp" line="972"/>
<source>Name of the new Profile:</source>
<translation type="unfinished"></translation>
</message>

View File

@ -201,20 +201,36 @@ void MainWindow::on_button_generate_clicked()
else
mapperBinary.setFileName(currentSettings.mapperPath);
if (!mapperBinary.exists()) {
QMessageBox::StandardButton ret;
if (currentSettings.mapperPath == "")
QMessageBox::critical(this, tr("Minetestmapper not found"),
tr("ERROR: No minetestmapper executable could not be found<br><br>"
"Please configure one (Edit->Preferences)"));
{
ret = QMessageBox::critical(this, tr("Minetestmapper not found"),
tr("ERROR: No minetestmapper executable could not be found.\n"
"Please configure one. (Edit->Preferences)\n\n"
"Do you want to open Preferences now?"),
QMessageBox::Yes|QMessageBox::No,
QMessageBox::Yes);
}
else
QMessageBox::critical(this, tr("Minetestmapper not found"),
tr("ERROR: Configured minetestmapper executable (%1) could not be found<br><br>"
"Please configure one (Edit->Preferences)").arg(currentSettings.mapperPath));
ret = QMessageBox::critical(this, tr("Minetestmapper not found"),
tr("ERROR: Configured minetestmapper executable (%1) could not be found\n"
"Please configure one. (Edit->Preferences)\n\n"
"Do you want to open Preferences now?").arg(currentSettings.mapperPath),
QMessageBox::Yes|QMessageBox::No,
QMessageBox::Yes);
if(ret == QMessageBox::Yes) on_actionPreferences_triggered();
return;
} else if (!(mapperBinary.permissions() & QFileDevice::ExeUser)) {
QMessageBox::critical(this, tr("Minetestmapper not executable"),
tr("ERROR: The configured minetestmapper (%1) is not executable"
"Please configure a valid minetestmapper executable (Edit->Preferences)")
.arg(mapperBinary.fileName()));
QMessageBox::StandardButton ret = QMessageBox::critical(this, tr("Minetestmapper not executable"),
tr("ERROR: The configured minetestmapper (%1) is not executable.\n"
"Please configure a valid minetestmapper executable. (Edit->Preferences)\n\n"
"Do you want to open Preferences now?")
.arg(mapperBinary.fileName()),
QMessageBox::Yes|QMessageBox::No,
QMessageBox::Yes);
if(ret == QMessageBox::Yes) on_actionPreferences_triggered();
return;
}