Some code refactoring in generateOutFileName() function.

This commit is contained in:
LoRd_MuldeR 2018-04-30 14:35:51 +02:00
parent 7bbb72783b
commit 8d45317f48
15 changed files with 203 additions and 214 deletions

View File

@ -3031,72 +3031,72 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="397"/> <location filename="../../src/Thread_Process.cpp" line="399"/>
<source>The source audio file could not be found:</source> <source>The source audio file could not be found:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="405"/> <location filename="../../src/Thread_Process.cpp" line="407"/>
<source>The source audio file could not be opened for reading:</source> <source>The source audio file could not be opened for reading:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="437"/> <location filename="../../src/Thread_Process.cpp" line="441"/>
<source>The target output directory doesn&apos;t exist and could NOT be created:</source> <source>The target output directory doesn&apos;t exist and could NOT be created:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="446"/> <location filename="../../src/Thread_Process.cpp" line="450"/>
<source>The target output directory is NOT writable:</source> <source>The target output directory is NOT writable:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="514"/> <location filename="../../src/Thread_Process.cpp" line="503"/>
<source>Failed to generate non-existing target file name!</source> <source>Failed to generate non-existing target file name!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="522"/> <location filename="../../src/Thread_Process.cpp" line="511"/>
<source>Unknown File Name</source> <source>Unknown File Name</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="524"/> <location filename="../../src/Thread_Process.cpp" line="513"/>
<source>Unknown Title</source> <source>Unknown Title</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="525"/> <location filename="../../src/Thread_Process.cpp" line="514"/>
<source>Unknown Artist</source> <source>Unknown Artist</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="526"/> <location filename="../../src/Thread_Process.cpp" line="515"/>
<source>Unknown Album</source> <source>Unknown Album</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="528"/> <location filename="../../src/Thread_Process.cpp" line="517"/>
<source>Unknown Comment</source> <source>Unknown Comment</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="466"/> <location filename="../../src/Thread_Process.cpp" line="472"/>
<source>Target output file already exists, going to skip this file:</source> <source>Target output file already exists, going to skip this file:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="467"/> <location filename="../../src/Thread_Process.cpp" line="473"/>
<source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source> <source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="474"/> <location filename="../../src/Thread_Process.cpp" line="481"/>
<source>Target output file already exists, going to delete existing file:</source> <source>Target output file already exists, going to delete existing file:</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="490"/> <location filename="../../src/Thread_Process.cpp" line="489"/>
<source>Failed to delete existing target file, will save to another file name!</source> <source>Failed to delete existing target file, will save to another file name!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

View File

@ -3024,52 +3024,52 @@
<translation>Dekodiere</translation> <translation>Dekodiere</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="397"/> <location filename="../../src/Thread_Process.cpp" line="399"/>
<source>The source audio file could not be found:</source> <source>The source audio file could not be found:</source>
<translation>Die Quell-Audiodatei konnte nicht gefunden werden:</translation> <translation>Die Quell-Audiodatei konnte nicht gefunden werden:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="405"/> <location filename="../../src/Thread_Process.cpp" line="407"/>
<source>The source audio file could not be opened for reading:</source> <source>The source audio file could not be opened for reading:</source>
<translation>Die Quell-Audiodatei konnte nicht zum Lesen geöffnet werden:</translation> <translation>Die Quell-Audiodatei konnte nicht zum Lesen geöffnet werden:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="437"/> <location filename="../../src/Thread_Process.cpp" line="441"/>
<source>The target output directory doesn&apos;t exist and could NOT be created:</source> <source>The target output directory doesn&apos;t exist and could NOT be created:</source>
<translation>Das Zielverzeichnis existiert nicht und konnte nicht erstellt werden:</translation> <translation>Das Zielverzeichnis existiert nicht und konnte nicht erstellt werden:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="446"/> <location filename="../../src/Thread_Process.cpp" line="450"/>
<source>The target output directory is NOT writable:</source> <source>The target output directory is NOT writable:</source>
<translation>In das Zielverzeichnis kann nicht geschrieben werden:</translation> <translation>In das Zielverzeichnis kann nicht geschrieben werden:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="514"/> <location filename="../../src/Thread_Process.cpp" line="503"/>
<source>Failed to generate non-existing target file name!</source> <source>Failed to generate non-existing target file name!</source>
<translation>Ausgabe-Dateiname konnte nicht generiert werden!</translation> <translation>Ausgabe-Dateiname konnte nicht generiert werden!</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="522"/> <location filename="../../src/Thread_Process.cpp" line="511"/>
<source>Unknown File Name</source> <source>Unknown File Name</source>
<translation>Unbekannter Dateiname</translation> <translation>Unbekannter Dateiname</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="524"/> <location filename="../../src/Thread_Process.cpp" line="513"/>
<source>Unknown Title</source> <source>Unknown Title</source>
<translation>Unbekannter Titel</translation> <translation>Unbekannter Titel</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="525"/> <location filename="../../src/Thread_Process.cpp" line="514"/>
<source>Unknown Artist</source> <source>Unknown Artist</source>
<translation>Unbekannter Künstler</translation> <translation>Unbekannter Künstler</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="526"/> <location filename="../../src/Thread_Process.cpp" line="515"/>
<source>Unknown Album</source> <source>Unknown Album</source>
<translation>Unbekanntes Album</translation> <translation>Unbekanntes Album</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="528"/> <location filename="../../src/Thread_Process.cpp" line="517"/>
<source>Unknown Comment</source> <source>Unknown Comment</source>
<translation>Unbekannter Kommentar</translation> <translation>Unbekannter Kommentar</translation>
</message> </message>
@ -3090,22 +3090,22 @@
<translation>Übersprungen.</translation> <translation>Übersprungen.</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="466"/> <location filename="../../src/Thread_Process.cpp" line="472"/>
<source>Target output file already exists, going to skip this file:</source> <source>Target output file already exists, going to skip this file:</source>
<translation>Zieldatei existiert bereits, die Datei wird übersprungen:</translation> <translation>Zieldatei existiert bereits, die Datei wird übersprungen:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="467"/> <location filename="../../src/Thread_Process.cpp" line="473"/>
<source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source> <source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source>
<translation>Wenn existierende Dateien nicht übersprungen werden sollen, ändern Sie bitte den Überschreiben-Modus!</translation> <translation>Wenn existierende Dateien nicht übersprungen werden sollen, ändern Sie bitte den Überschreiben-Modus!</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="474"/> <location filename="../../src/Thread_Process.cpp" line="481"/>
<source>Target output file already exists, going to delete existing file:</source> <source>Target output file already exists, going to delete existing file:</source>
<translation>Zieldatei existiert bereits, die Datei wird gelöscht und überschrieben:</translation> <translation>Zieldatei existiert bereits, die Datei wird gelöscht und überschrieben:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="490"/> <location filename="../../src/Thread_Process.cpp" line="489"/>
<source>Failed to delete existing target file, will save to another file name!</source> <source>Failed to delete existing target file, will save to another file name!</source>
<translation>Die existierende Datei konnte nicht gelöscht werden, ein anderer Dateiname wird gewählt!</translation> <translation>Die existierende Datei konnte nicht gelöscht werden, ein anderer Dateiname wird gewählt!</translation>
</message> </message>

View File

@ -3024,52 +3024,52 @@
<translation>Decodificando</translation> <translation>Decodificando</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="397"/> <location filename="../../src/Thread_Process.cpp" line="399"/>
<source>The source audio file could not be found:</source> <source>The source audio file could not be found:</source>
<translation>No se encuentra el archivo de entrada:</translation> <translation>No se encuentra el archivo de entrada:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="405"/> <location filename="../../src/Thread_Process.cpp" line="407"/>
<source>The source audio file could not be opened for reading:</source> <source>The source audio file could not be opened for reading:</source>
<translation>No se puede abrir el archivo de entrada para su lectura:</translation> <translation>No se puede abrir el archivo de entrada para su lectura:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="437"/> <location filename="../../src/Thread_Process.cpp" line="441"/>
<source>The target output directory doesn&apos;t exist and could NOT be created:</source> <source>The target output directory doesn&apos;t exist and could NOT be created:</source>
<translation>La carpeta de salida no existe y NO puede ser creada:</translation> <translation>La carpeta de salida no existe y NO puede ser creada:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="446"/> <location filename="../../src/Thread_Process.cpp" line="450"/>
<source>The target output directory is NOT writable:</source> <source>The target output directory is NOT writable:</source>
<translation>NO se puede escribir en la carpeta de salida:</translation> <translation>NO se puede escribir en la carpeta de salida:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="514"/> <location filename="../../src/Thread_Process.cpp" line="503"/>
<source>Failed to generate non-existing target file name!</source> <source>Failed to generate non-existing target file name!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="522"/> <location filename="../../src/Thread_Process.cpp" line="511"/>
<source>Unknown File Name</source> <source>Unknown File Name</source>
<translation>Nombre de archivo desconocido</translation> <translation>Nombre de archivo desconocido</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="524"/> <location filename="../../src/Thread_Process.cpp" line="513"/>
<source>Unknown Title</source> <source>Unknown Title</source>
<translation>Título desconocido</translation> <translation>Título desconocido</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="525"/> <location filename="../../src/Thread_Process.cpp" line="514"/>
<source>Unknown Artist</source> <source>Unknown Artist</source>
<translation>Artista desconocido</translation> <translation>Artista desconocido</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="526"/> <location filename="../../src/Thread_Process.cpp" line="515"/>
<source>Unknown Album</source> <source>Unknown Album</source>
<translation>Álbum desconocido</translation> <translation>Álbum desconocido</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="528"/> <location filename="../../src/Thread_Process.cpp" line="517"/>
<source>Unknown Comment</source> <source>Unknown Comment</source>
<translation>Comentario desconocido</translation> <translation>Comentario desconocido</translation>
</message> </message>
@ -3090,22 +3090,22 @@
<translation>Omitidos.</translation> <translation>Omitidos.</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="466"/> <location filename="../../src/Thread_Process.cpp" line="472"/>
<source>Target output file already exists, going to skip this file:</source> <source>Target output file already exists, going to skip this file:</source>
<translation>El archivo de destino ya existe, se omitirá este archivo:</translation> <translation>El archivo de destino ya existe, se omitirá este archivo:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="467"/> <location filename="../../src/Thread_Process.cpp" line="473"/>
<source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source> <source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source>
<translation>¡Si no quiere sobreescribir los archivos existentes, cambie el modo sobreescritura por favor!</translation> <translation>¡Si no quiere sobreescribir los archivos existentes, cambie el modo sobreescritura por favor!</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="474"/> <location filename="../../src/Thread_Process.cpp" line="481"/>
<source>Target output file already exists, going to delete existing file:</source> <source>Target output file already exists, going to delete existing file:</source>
<translation>El archivo de destino ya existe, se eliminará este archivo:</translation> <translation>El archivo de destino ya existe, se eliminará este archivo:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="490"/> <location filename="../../src/Thread_Process.cpp" line="489"/>
<source>Failed to delete existing target file, will save to another file name!</source> <source>Failed to delete existing target file, will save to another file name!</source>
<translation>¡Error al eliminar el archivo de destino existente, se guardará con otro nombre!</translation> <translation>¡Error al eliminar el archivo de destino existente, se guardará con otro nombre!</translation>
</message> </message>

View File

@ -3031,52 +3031,52 @@ Sélection automatique (par défaut)</translation>
<translation>Décodage</translation> <translation>Décodage</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="397"/> <location filename="../../src/Thread_Process.cpp" line="399"/>
<source>The source audio file could not be found:</source> <source>The source audio file could not be found:</source>
<translation>Le fichier audio source n&apos;a pas pu être trouvé:</translation> <translation>Le fichier audio source n&apos;a pas pu être trouvé:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="405"/> <location filename="../../src/Thread_Process.cpp" line="407"/>
<source>The source audio file could not be opened for reading:</source> <source>The source audio file could not be opened for reading:</source>
<translation>Le fichier audio source n&apos;a pas pu être ouvert pour la lecture:</translation> <translation>Le fichier audio source n&apos;a pas pu être ouvert pour la lecture:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="437"/> <location filename="../../src/Thread_Process.cpp" line="441"/>
<source>The target output directory doesn&apos;t exist and could NOT be created:</source> <source>The target output directory doesn&apos;t exist and could NOT be created:</source>
<translation>Le répertoire de sortie cible n&apos;existe pas et ne peut PAS être créé:</translation> <translation>Le répertoire de sortie cible n&apos;existe pas et ne peut PAS être créé:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="446"/> <location filename="../../src/Thread_Process.cpp" line="450"/>
<source>The target output directory is NOT writable:</source> <source>The target output directory is NOT writable:</source>
<translation>Le répertoire de sortie cible n&apos;est pas accessible en écriture:</translation> <translation>Le répertoire de sortie cible n&apos;est pas accessible en écriture:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="514"/> <location filename="../../src/Thread_Process.cpp" line="503"/>
<source>Failed to generate non-existing target file name!</source> <source>Failed to generate non-existing target file name!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="522"/> <location filename="../../src/Thread_Process.cpp" line="511"/>
<source>Unknown File Name</source> <source>Unknown File Name</source>
<translation>Nom de fichier inconnu</translation> <translation>Nom de fichier inconnu</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="524"/> <location filename="../../src/Thread_Process.cpp" line="513"/>
<source>Unknown Title</source> <source>Unknown Title</source>
<translation>Titre inconnu</translation> <translation>Titre inconnu</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="525"/> <location filename="../../src/Thread_Process.cpp" line="514"/>
<source>Unknown Artist</source> <source>Unknown Artist</source>
<translation>Artiste inconnu</translation> <translation>Artiste inconnu</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="526"/> <location filename="../../src/Thread_Process.cpp" line="515"/>
<source>Unknown Album</source> <source>Unknown Album</source>
<translation>Album inconnu</translation> <translation>Album inconnu</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="528"/> <location filename="../../src/Thread_Process.cpp" line="517"/>
<source>Unknown Comment</source> <source>Unknown Comment</source>
<translation>Commentaire inconnu</translation> <translation>Commentaire inconnu</translation>
</message> </message>
@ -3098,22 +3098,22 @@ Sélection automatique (par défaut)</translation>
<translation>Ignoré.</translation> <translation>Ignoré.</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="466"/> <location filename="../../src/Thread_Process.cpp" line="472"/>
<source>Target output file already exists, going to skip this file:</source> <source>Target output file already exists, going to skip this file:</source>
<translation>Le fichier de sortie existe déjà, il sera ignoré :</translation> <translation>Le fichier de sortie existe déjà, il sera ignoré :</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="467"/> <location filename="../../src/Thread_Process.cpp" line="473"/>
<source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source> <source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source>
<translation>Si vous ne voulez pas ignorer les fichiers existants, veuillez changer le mode de remplacement !</translation> <translation>Si vous ne voulez pas ignorer les fichiers existants, veuillez changer le mode de remplacement !</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="474"/> <location filename="../../src/Thread_Process.cpp" line="481"/>
<source>Target output file already exists, going to delete existing file:</source> <source>Target output file already exists, going to delete existing file:</source>
<translation>Le fichier de sortie existe déjà, il sera supprimé :</translation> <translation>Le fichier de sortie existe déjà, il sera supprimé :</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="490"/> <location filename="../../src/Thread_Process.cpp" line="489"/>
<source>Failed to delete existing target file, will save to another file name!</source> <source>Failed to delete existing target file, will save to another file name!</source>
<translation>Impossible de supprimer le fichier cible existant, il sera enregistré sous un autre nom !</translation> <translation>Impossible de supprimer le fichier cible existant, il sera enregistré sous un autre nom !</translation>
</message> </message>

View File

@ -3031,72 +3031,72 @@
<translation>Dekódolás</translation> <translation>Dekódolás</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="397"/> <location filename="../../src/Thread_Process.cpp" line="399"/>
<source>The source audio file could not be found:</source> <source>The source audio file could not be found:</source>
<translation>A forrás hangfájl nem található:</translation> <translation>A forrás hangfájl nem található:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="405"/> <location filename="../../src/Thread_Process.cpp" line="407"/>
<source>The source audio file could not be opened for reading:</source> <source>The source audio file could not be opened for reading:</source>
<translation>A forrás hangfájl nem nyitható meg olvasásra:</translation> <translation>A forrás hangfájl nem nyitható meg olvasásra:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="437"/> <location filename="../../src/Thread_Process.cpp" line="441"/>
<source>The target output directory doesn&apos;t exist and could NOT be created:</source> <source>The target output directory doesn&apos;t exist and could NOT be created:</source>
<translation>A cél kimeneti könyvtár nem létezik, és NEM hozható létre:</translation> <translation>A cél kimeneti könyvtár nem létezik, és NEM hozható létre:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="446"/> <location filename="../../src/Thread_Process.cpp" line="450"/>
<source>The target output directory is NOT writable:</source> <source>The target output directory is NOT writable:</source>
<translation>A cél kimeneti könyvtár NEM írható:</translation> <translation>A cél kimeneti könyvtár NEM írható:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="514"/> <location filename="../../src/Thread_Process.cpp" line="503"/>
<source>Failed to generate non-existing target file name!</source> <source>Failed to generate non-existing target file name!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="522"/> <location filename="../../src/Thread_Process.cpp" line="511"/>
<source>Unknown File Name</source> <source>Unknown File Name</source>
<translation>Ismeretlen fájlnév</translation> <translation>Ismeretlen fájlnév</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="524"/> <location filename="../../src/Thread_Process.cpp" line="513"/>
<source>Unknown Title</source> <source>Unknown Title</source>
<translation>Ismeretlen cím</translation> <translation>Ismeretlen cím</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="525"/> <location filename="../../src/Thread_Process.cpp" line="514"/>
<source>Unknown Artist</source> <source>Unknown Artist</source>
<translation>Ismeretlen előadó</translation> <translation>Ismeretlen előadó</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="526"/> <location filename="../../src/Thread_Process.cpp" line="515"/>
<source>Unknown Album</source> <source>Unknown Album</source>
<translation>Ismeretlen album</translation> <translation>Ismeretlen album</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="528"/> <location filename="../../src/Thread_Process.cpp" line="517"/>
<source>Unknown Comment</source> <source>Unknown Comment</source>
<translation>Ismeretlen hozzászólás</translation> <translation>Ismeretlen hozzászólás</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="466"/> <location filename="../../src/Thread_Process.cpp" line="472"/>
<source>Target output file already exists, going to skip this file:</source> <source>Target output file already exists, going to skip this file:</source>
<translation>A cél kimeneti fájl már létezik, ez a fájl ki lesz hagyva:</translation> <translation>A cél kimeneti fájl már létezik, ez a fájl ki lesz hagyva:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="467"/> <location filename="../../src/Thread_Process.cpp" line="473"/>
<source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source> <source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source>
<translation>Ha nem szeretné a meglévő fájlokat kihagyni, kérjük, változtassa meg a felülírási módot!</translation> <translation>Ha nem szeretné a meglévő fájlokat kihagyni, kérjük, változtassa meg a felülírási módot!</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="474"/> <location filename="../../src/Thread_Process.cpp" line="481"/>
<source>Target output file already exists, going to delete existing file:</source> <source>Target output file already exists, going to delete existing file:</source>
<translation>A cél kimeneti fájl már létezik, a meglévő fájl törlésre kerül:</translation> <translation>A cél kimeneti fájl már létezik, a meglévő fájl törlésre kerül:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="490"/> <location filename="../../src/Thread_Process.cpp" line="489"/>
<source>Failed to delete existing target file, will save to another file name!</source> <source>Failed to delete existing target file, will save to another file name!</source>
<translation>Nem sikerült törölni a meglévő cél fájlt. Az állomány másik fájlnéven lesz elmentve!</translation> <translation>Nem sikerült törölni a meglévő cél fájlt. Az állomány másik fájlnéven lesz elmentve!</translation>
</message> </message>

View File

@ -3090,53 +3090,53 @@
<translation>Decodifica in corso</translation> <translation>Decodifica in corso</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="397"/> <location filename="../../src/Thread_Process.cpp" line="399"/>
<source>The source audio file could not be found:</source> <source>The source audio file could not be found:</source>
<translation>Il file audio sorgente non può essere trovato:</translation> <translation>Il file audio sorgente non può essere trovato:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="405"/> <location filename="../../src/Thread_Process.cpp" line="407"/>
<source>The source audio file could not be opened for reading:</source> <source>The source audio file could not be opened for reading:</source>
<translation>Il file audio sorgente non può essere aperto per la lettura:</translation> <translation>Il file audio sorgente non può essere aperto per la lettura:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="437"/> <location filename="../../src/Thread_Process.cpp" line="441"/>
<source>The target output directory doesn&apos;t exist and could NOT be created:</source> <source>The target output directory doesn&apos;t exist and could NOT be created:</source>
<translation>La cartella di destinazione assegnata non esiste e NON può essere creata:</translation> <translation>La cartella di destinazione assegnata non esiste e NON può essere creata:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="446"/> <location filename="../../src/Thread_Process.cpp" line="450"/>
<source>The target output directory is NOT writable:</source> <source>The target output directory is NOT writable:</source>
<translatorcomment>La directory di destinazione assegnata è di SOLA LETTURA:</translatorcomment> <translatorcomment>La directory di destinazione assegnata è di SOLA LETTURA:</translatorcomment>
<translation>La directory di destinazione assegnata NON è scrivibile:</translation> <translation>La directory di destinazione assegnata NON è scrivibile:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="514"/> <location filename="../../src/Thread_Process.cpp" line="503"/>
<source>Failed to generate non-existing target file name!</source> <source>Failed to generate non-existing target file name!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="522"/> <location filename="../../src/Thread_Process.cpp" line="511"/>
<source>Unknown File Name</source> <source>Unknown File Name</source>
<translation>Nome File Sconosciuto</translation> <translation>Nome File Sconosciuto</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="524"/> <location filename="../../src/Thread_Process.cpp" line="513"/>
<source>Unknown Title</source> <source>Unknown Title</source>
<translation>Titolo Sconosciuto</translation> <translation>Titolo Sconosciuto</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="525"/> <location filename="../../src/Thread_Process.cpp" line="514"/>
<source>Unknown Artist</source> <source>Unknown Artist</source>
<translation>Artista Sconosciuto</translation> <translation>Artista Sconosciuto</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="526"/> <location filename="../../src/Thread_Process.cpp" line="515"/>
<source>Unknown Album</source> <source>Unknown Album</source>
<translation>Album Sconosciuto</translation> <translation>Album Sconosciuto</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="528"/> <location filename="../../src/Thread_Process.cpp" line="517"/>
<source>Unknown Comment</source> <source>Unknown Comment</source>
<translation>Commento Sconosciuto</translation> <translation>Commento Sconosciuto</translation>
</message> </message>
@ -3157,22 +3157,22 @@
<translation>Saltato.</translation> <translation>Saltato.</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="466"/> <location filename="../../src/Thread_Process.cpp" line="472"/>
<source>Target output file already exists, going to skip this file:</source> <source>Target output file already exists, going to skip this file:</source>
<translation>Il file di destinazione esiste già, questo file verrà saltato:</translation> <translation>Il file di destinazione esiste già, questo file verrà saltato:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="467"/> <location filename="../../src/Thread_Process.cpp" line="473"/>
<source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source> <source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source>
<translation>Se non vuoi saltare i file esistenti, cambia la modalità di sovrascrittura!</translation> <translation>Se non vuoi saltare i file esistenti, cambia la modalità di sovrascrittura!</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="474"/> <location filename="../../src/Thread_Process.cpp" line="481"/>
<source>Target output file already exists, going to delete existing file:</source> <source>Target output file already exists, going to delete existing file:</source>
<translation>Il file di destinazione esiste già, il file esistente verrà eliminato:</translation> <translation>Il file di destinazione esiste già, il file esistente verrà eliminato:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="490"/> <location filename="../../src/Thread_Process.cpp" line="489"/>
<source>Failed to delete existing target file, will save to another file name!</source> <source>Failed to delete existing target file, will save to another file name!</source>
<translation>Impossibile eliminare il file di destinazione esistente, il file verrà salvato con un altro nome!</translation> <translation>Impossibile eliminare il file di destinazione esistente, il file verrà salvato con un altro nome!</translation>
</message> </message>

View File

@ -3015,52 +3015,52 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="397"/> <location filename="../../src/Thread_Process.cpp" line="399"/>
<source>The source audio file could not be found:</source> <source>The source audio file could not be found:</source>
<translation type="unfinished"> :</translation> <translation type="unfinished"> :</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="405"/> <location filename="../../src/Thread_Process.cpp" line="407"/>
<source>The source audio file could not be opened for reading:</source> <source>The source audio file could not be opened for reading:</source>
<translation type="unfinished"> :</translation> <translation type="unfinished"> :</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="437"/> <location filename="../../src/Thread_Process.cpp" line="441"/>
<source>The target output directory doesn&apos;t exist and could NOT be created:</source> <source>The target output directory doesn&apos;t exist and could NOT be created:</source>
<translation type="unfinished"> , :</translation> <translation type="unfinished"> , :</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="446"/> <location filename="../../src/Thread_Process.cpp" line="450"/>
<source>The target output directory is NOT writable:</source> <source>The target output directory is NOT writable:</source>
<translation type="unfinished"> :</translation> <translation type="unfinished"> :</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="514"/> <location filename="../../src/Thread_Process.cpp" line="503"/>
<source>Failed to generate non-existing target file name!</source> <source>Failed to generate non-existing target file name!</source>
<translation type="unfinished"> !</translation> <translation type="unfinished"> !</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="522"/> <location filename="../../src/Thread_Process.cpp" line="511"/>
<source>Unknown File Name</source> <source>Unknown File Name</source>
<translation type="unfinished"> </translation> <translation type="unfinished"> </translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="524"/> <location filename="../../src/Thread_Process.cpp" line="513"/>
<source>Unknown Title</source> <source>Unknown Title</source>
<translation type="unfinished"> </translation> <translation type="unfinished"> </translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="525"/> <location filename="../../src/Thread_Process.cpp" line="514"/>
<source>Unknown Artist</source> <source>Unknown Artist</source>
<translation type="unfinished"> </translation> <translation type="unfinished"> </translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="526"/> <location filename="../../src/Thread_Process.cpp" line="515"/>
<source>Unknown Album</source> <source>Unknown Album</source>
<translation type="unfinished"> </translation> <translation type="unfinished"> </translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="528"/> <location filename="../../src/Thread_Process.cpp" line="517"/>
<source>Unknown Comment</source> <source>Unknown Comment</source>
<translation type="unfinished"> </translation> <translation type="unfinished"> </translation>
</message> </message>
@ -3082,22 +3082,22 @@
<translation type="unfinished">.</translation> <translation type="unfinished">.</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="466"/> <location filename="../../src/Thread_Process.cpp" line="472"/>
<source>Target output file already exists, going to skip this file:</source> <source>Target output file already exists, going to skip this file:</source>
<translation type="unfinished"> . :</translation> <translation type="unfinished"> . :</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="467"/> <location filename="../../src/Thread_Process.cpp" line="473"/>
<source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source> <source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source>
<translation type="unfinished"> , !</translation> <translation type="unfinished"> , !</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="474"/> <location filename="../../src/Thread_Process.cpp" line="481"/>
<source>Target output file already exists, going to delete existing file:</source> <source>Target output file already exists, going to delete existing file:</source>
<translation type="unfinished"> . :</translation> <translation type="unfinished"> . :</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="490"/> <location filename="../../src/Thread_Process.cpp" line="489"/>
<source>Failed to delete existing target file, will save to another file name!</source> <source>Failed to delete existing target file, will save to another file name!</source>
<translation type="unfinished"> . !</translation> <translation type="unfinished"> . !</translation>
</message> </message>

View File

@ -3048,72 +3048,72 @@
<translation type="unfinished">Dekodowanie</translation> <translation type="unfinished">Dekodowanie</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="397"/> <location filename="../../src/Thread_Process.cpp" line="399"/>
<source>The source audio file could not be found:</source> <source>The source audio file could not be found:</source>
<translation type="unfinished">Źródłowy plik dźwiękowy nie został odnaleziony:</translation> <translation type="unfinished">Źródłowy plik dźwiękowy nie został odnaleziony:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="405"/> <location filename="../../src/Thread_Process.cpp" line="407"/>
<source>The source audio file could not be opened for reading:</source> <source>The source audio file could not be opened for reading:</source>
<translation type="unfinished">Źródłowy plik dźwiękowy nie mógł zostać otworzony:</translation> <translation type="unfinished">Źródłowy plik dźwiękowy nie mógł zostać otworzony:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="437"/> <location filename="../../src/Thread_Process.cpp" line="441"/>
<source>The target output directory doesn&apos;t exist and could NOT be created:</source> <source>The target output directory doesn&apos;t exist and could NOT be created:</source>
<translation type="unfinished">Lokalizacja docelowa nie istnieje lu NIE mogła zostać utworzona:</translation> <translation type="unfinished">Lokalizacja docelowa nie istnieje lu NIE mogła zostać utworzona:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="446"/> <location filename="../../src/Thread_Process.cpp" line="450"/>
<source>The target output directory is NOT writable:</source> <source>The target output directory is NOT writable:</source>
<translation type="unfinished">Nie można zapisać do lokalizacji docelowej:</translation> <translation type="unfinished">Nie można zapisać do lokalizacji docelowej:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="514"/> <location filename="../../src/Thread_Process.cpp" line="503"/>
<source>Failed to generate non-existing target file name!</source> <source>Failed to generate non-existing target file name!</source>
<translation type="unfinished">Nie można utworzyć pliku bez nazwy!</translation> <translation type="unfinished">Nie można utworzyć pliku bez nazwy!</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="522"/> <location filename="../../src/Thread_Process.cpp" line="511"/>
<source>Unknown File Name</source> <source>Unknown File Name</source>
<translation type="unfinished">Nieznana nazwa pliku</translation> <translation type="unfinished">Nieznana nazwa pliku</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="524"/> <location filename="../../src/Thread_Process.cpp" line="513"/>
<source>Unknown Title</source> <source>Unknown Title</source>
<translation type="unfinished">Nieznany Tytuł</translation> <translation type="unfinished">Nieznany Tytuł</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="525"/> <location filename="../../src/Thread_Process.cpp" line="514"/>
<source>Unknown Artist</source> <source>Unknown Artist</source>
<translation type="unfinished">Nieznany Artysta</translation> <translation type="unfinished">Nieznany Artysta</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="526"/> <location filename="../../src/Thread_Process.cpp" line="515"/>
<source>Unknown Album</source> <source>Unknown Album</source>
<translation type="unfinished">Nieznany Album</translation> <translation type="unfinished">Nieznany Album</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="528"/> <location filename="../../src/Thread_Process.cpp" line="517"/>
<source>Unknown Comment</source> <source>Unknown Comment</source>
<translation type="unfinished">Nieznany Komentarz</translation> <translation type="unfinished">Nieznany Komentarz</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="466"/> <location filename="../../src/Thread_Process.cpp" line="472"/>
<source>Target output file already exists, going to skip this file:</source> <source>Target output file already exists, going to skip this file:</source>
<translation type="unfinished">Plik wynikowy już istnieje, zostanie pominięty plik:</translation> <translation type="unfinished">Plik wynikowy już istnieje, zostanie pominięty plik:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="467"/> <location filename="../../src/Thread_Process.cpp" line="473"/>
<source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source> <source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source>
<translation type="unfinished">Jeśli nie chcesz aby istniejące pliki były pomijane, zmień tryb nadpisywania!</translation> <translation type="unfinished">Jeśli nie chcesz aby istniejące pliki były pomijane, zmień tryb nadpisywania!</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="474"/> <location filename="../../src/Thread_Process.cpp" line="481"/>
<source>Target output file already exists, going to delete existing file:</source> <source>Target output file already exists, going to delete existing file:</source>
<translation type="unfinished">Plik wynikowy już istnieje, zostanie usunięty plik:</translation> <translation type="unfinished">Plik wynikowy już istnieje, zostanie usunięty plik:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="490"/> <location filename="../../src/Thread_Process.cpp" line="489"/>
<source>Failed to delete existing target file, will save to another file name!</source> <source>Failed to delete existing target file, will save to another file name!</source>
<translation type="unfinished">Usuwanie istniejącego pliku zakończone niepowodzeniem, nowy plik zostanie zapisany pod inną nazwą!</translation> <translation type="unfinished">Usuwanie istniejącego pliku zakończone niepowodzeniem, nowy plik zostanie zapisany pod inną nazwą!</translation>
</message> </message>

View File

@ -3039,52 +3039,52 @@
<translation>Декодирование</translation> <translation>Декодирование</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="397"/> <location filename="../../src/Thread_Process.cpp" line="399"/>
<source>The source audio file could not be found:</source> <source>The source audio file could not be found:</source>
<translation>Исходный аудио файл не найден:</translation> <translation>Исходный аудио файл не найден:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="405"/> <location filename="../../src/Thread_Process.cpp" line="407"/>
<source>The source audio file could not be opened for reading:</source> <source>The source audio file could not be opened for reading:</source>
<translation>Исходный аудио файл не может быть открыт:</translation> <translation>Исходный аудио файл не может быть открыт:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="437"/> <location filename="../../src/Thread_Process.cpp" line="441"/>
<source>The target output directory doesn&apos;t exist and could NOT be created:</source> <source>The target output directory doesn&apos;t exist and could NOT be created:</source>
<translation>Папка для выходных файлов не существует и не может быть создана:</translation> <translation>Папка для выходных файлов не существует и не может быть создана:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="446"/> <location filename="../../src/Thread_Process.cpp" line="450"/>
<source>The target output directory is NOT writable:</source> <source>The target output directory is NOT writable:</source>
<translation>Папка для выходных файлов недоступна для записи:</translation> <translation>Папка для выходных файлов недоступна для записи:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="514"/> <location filename="../../src/Thread_Process.cpp" line="503"/>
<source>Failed to generate non-existing target file name!</source> <source>Failed to generate non-existing target file name!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="522"/> <location filename="../../src/Thread_Process.cpp" line="511"/>
<source>Unknown File Name</source> <source>Unknown File Name</source>
<translation>Неизвестное имя файла</translation> <translation>Неизвестное имя файла</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="524"/> <location filename="../../src/Thread_Process.cpp" line="513"/>
<source>Unknown Title</source> <source>Unknown Title</source>
<translation>Неизвестное Название</translation> <translation>Неизвестное Название</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="525"/> <location filename="../../src/Thread_Process.cpp" line="514"/>
<source>Unknown Artist</source> <source>Unknown Artist</source>
<translation>Неизвестный Артист</translation> <translation>Неизвестный Артист</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="526"/> <location filename="../../src/Thread_Process.cpp" line="515"/>
<source>Unknown Album</source> <source>Unknown Album</source>
<translation>Неизвестный Альбом</translation> <translation>Неизвестный Альбом</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="528"/> <location filename="../../src/Thread_Process.cpp" line="517"/>
<source>Unknown Comment</source> <source>Unknown Comment</source>
<translation>Неизвестный Комментарий</translation> <translation>Неизвестный Комментарий</translation>
</message> </message>
@ -3105,22 +3105,22 @@
<translation>Пропущен.</translation> <translation>Пропущен.</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="466"/> <location filename="../../src/Thread_Process.cpp" line="472"/>
<source>Target output file already exists, going to skip this file:</source> <source>Target output file already exists, going to skip this file:</source>
<translation>Файл уже существует, будет пропущен:</translation> <translation>Файл уже существует, будет пропущен:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="467"/> <location filename="../../src/Thread_Process.cpp" line="473"/>
<source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source> <source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source>
<translation>Если Вы не хотите пропускать уже существующие файлы, пожалуйста, измените режим перезаписи!</translation> <translation>Если Вы не хотите пропускать уже существующие файлы, пожалуйста, измените режим перезаписи!</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="474"/> <location filename="../../src/Thread_Process.cpp" line="481"/>
<source>Target output file already exists, going to delete existing file:</source> <source>Target output file already exists, going to delete existing file:</source>
<translation>Файл уже существует, будет удалён:</translation> <translation>Файл уже существует, будет удалён:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="490"/> <location filename="../../src/Thread_Process.cpp" line="489"/>
<source>Failed to delete existing target file, will save to another file name!</source> <source>Failed to delete existing target file, will save to another file name!</source>
<translation>Ошибка удаления существующего файла, будет сохранение с другим именем!</translation> <translation>Ошибка удаления существующего файла, будет сохранение с другим именем!</translation>
</message> </message>

View File

@ -3041,72 +3041,72 @@
<translation>Avkodar</translation> <translation>Avkodar</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="397"/> <location filename="../../src/Thread_Process.cpp" line="399"/>
<source>The source audio file could not be found:</source> <source>The source audio file could not be found:</source>
<translation>Källfilen kan inte hittas:</translation> <translation>Källfilen kan inte hittas:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="405"/> <location filename="../../src/Thread_Process.cpp" line="407"/>
<source>The source audio file could not be opened for reading:</source> <source>The source audio file could not be opened for reading:</source>
<translation>Källfilen kan inte öppnas för läsning:</translation> <translation>Källfilen kan inte öppnas för läsning:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="437"/> <location filename="../../src/Thread_Process.cpp" line="441"/>
<source>The target output directory doesn&apos;t exist and could NOT be created:</source> <source>The target output directory doesn&apos;t exist and could NOT be created:</source>
<translation>Målmappen finns inte och kan inte skapas:</translation> <translation>Målmappen finns inte och kan inte skapas:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="446"/> <location filename="../../src/Thread_Process.cpp" line="450"/>
<source>The target output directory is NOT writable:</source> <source>The target output directory is NOT writable:</source>
<translation>Målmappen är INTE skrivbar:</translation> <translation>Målmappen är INTE skrivbar:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="514"/> <location filename="../../src/Thread_Process.cpp" line="503"/>
<source>Failed to generate non-existing target file name!</source> <source>Failed to generate non-existing target file name!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="522"/> <location filename="../../src/Thread_Process.cpp" line="511"/>
<source>Unknown File Name</source> <source>Unknown File Name</source>
<translation>Okänt filnamn</translation> <translation>Okänt filnamn</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="524"/> <location filename="../../src/Thread_Process.cpp" line="513"/>
<source>Unknown Title</source> <source>Unknown Title</source>
<translation>Okänd titel</translation> <translation>Okänd titel</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="525"/> <location filename="../../src/Thread_Process.cpp" line="514"/>
<source>Unknown Artist</source> <source>Unknown Artist</source>
<translation>Okänd artist</translation> <translation>Okänd artist</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="526"/> <location filename="../../src/Thread_Process.cpp" line="515"/>
<source>Unknown Album</source> <source>Unknown Album</source>
<translation>Okänt album</translation> <translation>Okänt album</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="528"/> <location filename="../../src/Thread_Process.cpp" line="517"/>
<source>Unknown Comment</source> <source>Unknown Comment</source>
<translation>Okänd kommentar</translation> <translation>Okänd kommentar</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="466"/> <location filename="../../src/Thread_Process.cpp" line="472"/>
<source>Target output file already exists, going to skip this file:</source> <source>Target output file already exists, going to skip this file:</source>
<translation>Målfilen finns redan! Den här filen hoppas över:</translation> <translation>Målfilen finns redan! Den här filen hoppas över:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="467"/> <location filename="../../src/Thread_Process.cpp" line="473"/>
<source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source> <source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source>
<translation>Om du inte vill att befintliga filer hoppas över, måste du ändra överskrivningsläge!</translation> <translation>Om du inte vill att befintliga filer hoppas över, måste du ändra överskrivningsläge!</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="474"/> <location filename="../../src/Thread_Process.cpp" line="481"/>
<source>Target output file already exists, going to delete existing file:</source> <source>Target output file already exists, going to delete existing file:</source>
<translation>Målfilen finns redan! Befintlig fil kommer att tas bort:</translation> <translation>Målfilen finns redan! Befintlig fil kommer att tas bort:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="490"/> <location filename="../../src/Thread_Process.cpp" line="489"/>
<source>Failed to delete existing target file, will save to another file name!</source> <source>Failed to delete existing target file, will save to another file name!</source>
<translation>Kunde inte ta bort befintlig målfil. Sparar med annat filnamn!</translation> <translation>Kunde inte ta bort befintlig målfil. Sparar med annat filnamn!</translation>
</message> </message>

View File

@ -3015,52 +3015,52 @@
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="397"/> <location filename="../../src/Thread_Process.cpp" line="399"/>
<source>The source audio file could not be found:</source> <source>The source audio file could not be found:</source>
<translation>:</translation> <translation>:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="405"/> <location filename="../../src/Thread_Process.cpp" line="407"/>
<source>The source audio file could not be opened for reading:</source> <source>The source audio file could not be opened for reading:</source>
<translation>:</translation> <translation>:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="437"/> <location filename="../../src/Thread_Process.cpp" line="441"/>
<source>The target output directory doesn&apos;t exist and could NOT be created:</source> <source>The target output directory doesn&apos;t exist and could NOT be created:</source>
<translation>,:</translation> <translation>,:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="446"/> <location filename="../../src/Thread_Process.cpp" line="450"/>
<source>The target output directory is NOT writable:</source> <source>The target output directory is NOT writable:</source>
<translation>:</translation> <translation>:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="514"/> <location filename="../../src/Thread_Process.cpp" line="503"/>
<source>Failed to generate non-existing target file name!</source> <source>Failed to generate non-existing target file name!</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="522"/> <location filename="../../src/Thread_Process.cpp" line="511"/>
<source>Unknown File Name</source> <source>Unknown File Name</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="524"/> <location filename="../../src/Thread_Process.cpp" line="513"/>
<source>Unknown Title</source> <source>Unknown Title</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="525"/> <location filename="../../src/Thread_Process.cpp" line="514"/>
<source>Unknown Artist</source> <source>Unknown Artist</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="526"/> <location filename="../../src/Thread_Process.cpp" line="515"/>
<source>Unknown Album</source> <source>Unknown Album</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="528"/> <location filename="../../src/Thread_Process.cpp" line="517"/>
<source>Unknown Comment</source> <source>Unknown Comment</source>
<translation></translation> <translation></translation>
</message> </message>
@ -3081,22 +3081,22 @@
<translation>.</translation> <translation>.</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="466"/> <location filename="../../src/Thread_Process.cpp" line="472"/>
<source>Target output file already exists, going to skip this file:</source> <source>Target output file already exists, going to skip this file:</source>
<translation>, : </translation> <translation>, : </translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="467"/> <location filename="../../src/Thread_Process.cpp" line="473"/>
<source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source> <source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source>
<translation>, !</translation> <translation>, !</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="474"/> <location filename="../../src/Thread_Process.cpp" line="481"/>
<source>Target output file already exists, going to delete existing file:</source> <source>Target output file already exists, going to delete existing file:</source>
<translation>, : </translation> <translation>, : </translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="490"/> <location filename="../../src/Thread_Process.cpp" line="489"/>
<source>Failed to delete existing target file, will save to another file name!</source> <source>Failed to delete existing target file, will save to another file name!</source>
<translation>, !</translation> <translation>, !</translation>
</message> </message>

View File

@ -3032,52 +3032,52 @@
<translation>Декодування</translation> <translation>Декодування</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="397"/> <location filename="../../src/Thread_Process.cpp" line="399"/>
<source>The source audio file could not be found:</source> <source>The source audio file could not be found:</source>
<translation>Неможливо знайти вхідний файл аудіо:</translation> <translation>Неможливо знайти вхідний файл аудіо:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="405"/> <location filename="../../src/Thread_Process.cpp" line="407"/>
<source>The source audio file could not be opened for reading:</source> <source>The source audio file could not be opened for reading:</source>
<translation>Неможливо відкрити для читання вхідний файл аудіо:</translation> <translation>Неможливо відкрити для читання вхідний файл аудіо:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="437"/> <location filename="../../src/Thread_Process.cpp" line="441"/>
<source>The target output directory doesn&apos;t exist and could NOT be created:</source> <source>The target output directory doesn&apos;t exist and could NOT be created:</source>
<translation>Вихідної теки не існує і її неможливо створити:</translation> <translation>Вихідної теки не існує і її неможливо створити:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="446"/> <location filename="../../src/Thread_Process.cpp" line="450"/>
<source>The target output directory is NOT writable:</source> <source>The target output directory is NOT writable:</source>
<translation>До вихідної теки неможливо проводити запис:</translation> <translation>До вихідної теки неможливо проводити запис:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="514"/> <location filename="../../src/Thread_Process.cpp" line="503"/>
<source>Failed to generate non-existing target file name!</source> <source>Failed to generate non-existing target file name!</source>
<translation>Неможливо згенерувати назву неіснуючого вихідного файла!</translation> <translation>Неможливо згенерувати назву неіснуючого вихідного файла!</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="522"/> <location filename="../../src/Thread_Process.cpp" line="511"/>
<source>Unknown File Name</source> <source>Unknown File Name</source>
<translation>Невідома назва файла</translation> <translation>Невідома назва файла</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="524"/> <location filename="../../src/Thread_Process.cpp" line="513"/>
<source>Unknown Title</source> <source>Unknown Title</source>
<translation>Невідомий заголовок</translation> <translation>Невідомий заголовок</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="525"/> <location filename="../../src/Thread_Process.cpp" line="514"/>
<source>Unknown Artist</source> <source>Unknown Artist</source>
<translation>Невідомий виконавець</translation> <translation>Невідомий виконавець</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="526"/> <location filename="../../src/Thread_Process.cpp" line="515"/>
<source>Unknown Album</source> <source>Unknown Album</source>
<translation>Невідомий альбом</translation> <translation>Невідомий альбом</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="528"/> <location filename="../../src/Thread_Process.cpp" line="517"/>
<source>Unknown Comment</source> <source>Unknown Comment</source>
<translation>Невідомий коментар</translation> <translation>Невідомий коментар</translation>
</message> </message>
@ -3099,22 +3099,22 @@
<translation>Пропущено.</translation> <translation>Пропущено.</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="466"/> <location filename="../../src/Thread_Process.cpp" line="472"/>
<source>Target output file already exists, going to skip this file:</source> <source>Target output file already exists, going to skip this file:</source>
<translation>Вихідний цільовий файл вже існує, спроба пропустити цей файл:</translation> <translation>Вихідний цільовий файл вже існує, спроба пропустити цей файл:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="467"/> <location filename="../../src/Thread_Process.cpp" line="473"/>
<source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source> <source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source>
<translation>Якщо ви не хочете, щоб існуючі файли були пропущені, будь ласка, змініть режим перезапису!</translation> <translation>Якщо ви не хочете, щоб існуючі файли були пропущені, будь ласка, змініть режим перезапису!</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="474"/> <location filename="../../src/Thread_Process.cpp" line="481"/>
<source>Target output file already exists, going to delete existing file:</source> <source>Target output file already exists, going to delete existing file:</source>
<translation>Вихідний цільовий файл вже існує, спроба видалити існуючий файл:</translation> <translation>Вихідний цільовий файл вже існує, спроба видалити існуючий файл:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="490"/> <location filename="../../src/Thread_Process.cpp" line="489"/>
<source>Failed to delete existing target file, will save to another file name!</source> <source>Failed to delete existing target file, will save to another file name!</source>
<translation>Неможливо видалити існуючий файл, збереження буде проведено до файла з іншою назвою!</translation> <translation>Неможливо видалити існуючий файл, збереження буде проведено до файла з іншою назвою!</translation>
</message> </message>

View File

@ -3015,52 +3015,52 @@
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="397"/> <location filename="../../src/Thread_Process.cpp" line="399"/>
<source>The source audio file could not be found:</source> <source>The source audio file could not be found:</source>
<translation>:</translation> <translation>:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="405"/> <location filename="../../src/Thread_Process.cpp" line="407"/>
<source>The source audio file could not be opened for reading:</source> <source>The source audio file could not be opened for reading:</source>
<translation>:</translation> <translation>:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="437"/> <location filename="../../src/Thread_Process.cpp" line="441"/>
<source>The target output directory doesn&apos;t exist and could NOT be created:</source> <source>The target output directory doesn&apos;t exist and could NOT be created:</source>
<translation>:</translation> <translation>:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="446"/> <location filename="../../src/Thread_Process.cpp" line="450"/>
<source>The target output directory is NOT writable:</source> <source>The target output directory is NOT writable:</source>
<translation>:</translation> <translation>:</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="514"/> <location filename="../../src/Thread_Process.cpp" line="503"/>
<source>Failed to generate non-existing target file name!</source> <source>Failed to generate non-existing target file name!</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="522"/> <location filename="../../src/Thread_Process.cpp" line="511"/>
<source>Unknown File Name</source> <source>Unknown File Name</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="524"/> <location filename="../../src/Thread_Process.cpp" line="513"/>
<source>Unknown Title</source> <source>Unknown Title</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="525"/> <location filename="../../src/Thread_Process.cpp" line="514"/>
<source>Unknown Artist</source> <source>Unknown Artist</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="526"/> <location filename="../../src/Thread_Process.cpp" line="515"/>
<source>Unknown Album</source> <source>Unknown Album</source>
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="528"/> <location filename="../../src/Thread_Process.cpp" line="517"/>
<source>Unknown Comment</source> <source>Unknown Comment</source>
<translation></translation> <translation></translation>
</message> </message>
@ -3081,22 +3081,22 @@
<translation></translation> <translation></translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="466"/> <location filename="../../src/Thread_Process.cpp" line="472"/>
<source>Target output file already exists, going to skip this file:</source> <source>Target output file already exists, going to skip this file:</source>
<translation>, : </translation> <translation>, : </translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="467"/> <location filename="../../src/Thread_Process.cpp" line="473"/>
<source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source> <source>If you don&apos;t want existing files to be skipped, please change the overwrite mode!</source>
<translation>, !</translation> <translation>, !</translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="474"/> <location filename="../../src/Thread_Process.cpp" line="481"/>
<source>Target output file already exists, going to delete existing file:</source> <source>Target output file already exists, going to delete existing file:</source>
<translation>, : </translation> <translation>, : </translation>
</message> </message>
<message> <message>
<location filename="../../src/Thread_Process.cpp" line="490"/> <location filename="../../src/Thread_Process.cpp" line="489"/>
<source>Failed to delete existing target file, will save to another file name!</source> <source>Failed to delete existing target file, will save to another file name!</source>
<translation>, !</translation> <translation>, !</translation>
</message> </message>

View File

@ -35,7 +35,7 @@
#define VER_LAMEXP_MINOR_LO 6 #define VER_LAMEXP_MINOR_LO 6
#define VER_LAMEXP_TYPE RC #define VER_LAMEXP_TYPE RC
#define VER_LAMEXP_PATCH 6 #define VER_LAMEXP_PATCH 6
#define VER_LAMEXP_BUILD 2130 #define VER_LAMEXP_BUILD 2134
#define VER_LAMEXP_CONFG 2002 #define VER_LAMEXP_CONFG 2002
/////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////////////

View File

@ -390,6 +390,8 @@ int ProcessThread::generateOutFileName(QString &outFileName)
{ {
outFileName.clear(); outFileName.clear();
/* -------- Check source file -------- */
//Make sure the source file exists //Make sure the source file exists
const QFileInfo sourceFile(m_audioFile.filePath()); const QFileInfo sourceFile(m_audioFile.filePath());
if(!(sourceFile.exists() && sourceFile.isFile())) if(!(sourceFile.exists() && sourceFile.isFile()))
@ -410,6 +412,8 @@ int ProcessThread::generateOutFileName(QString &outFileName)
readTest.close(); readTest.close();
} }
/* -------- Determine target directory -------- */
QDir targetDir(MUtils::clean_file_path(m_outputDirectory.isEmpty() ? sourceFile.canonicalPath() : m_outputDirectory, false)); QDir targetDir(MUtils::clean_file_path(m_outputDirectory.isEmpty() ? sourceFile.canonicalPath() : m_outputDirectory, false));
//Prepend relative source file path? //Prepend relative source file path?
@ -440,7 +444,7 @@ int ProcessThread::generateOutFileName(QString &outFileName)
} }
//Make sure that the output dir is writable //Make sure that the output dir is writable
QFile writeTest(QString("%1/.%2").arg(targetDir.canonicalPath(), MUtils::next_rand_str())); QFile writeTest(MUtils::make_temp_file(targetDir, "~rw"));
if(!writeTest.open(QIODevice::ReadWrite)) if(!writeTest.open(QIODevice::ReadWrite))
{ {
handleMessage(QString("%1\n%2").arg(tr("The target output directory is NOT writable:"), QDir::toNativeSeparators(targetDir.absolutePath()))); handleMessage(QString("%1\n%2").arg(tr("The target output directory is NOT writable:"), QDir::toNativeSeparators(targetDir.absolutePath())));
@ -448,9 +452,11 @@ int ProcessThread::generateOutFileName(QString &outFileName)
} }
else else
{ {
writeTest.remove(); writeTest.remove(); /*clean-up*/
} }
/* -------- Generate initial file name and check -------- */
//File extension //File extension
const QString fileExt = m_renameFileExt.isEmpty() ? QString::fromUtf8(m_encoder->toEncoderInfo()->extension()) : m_renameFileExt; const QString fileExt = m_renameFileExt.isEmpty() ? QString::fromUtf8(m_encoder->toEncoderInfo()->extension()) : m_renameFileExt;
@ -458,7 +464,7 @@ int ProcessThread::generateOutFileName(QString &outFileName)
const QString fileName = MUtils::clean_file_name(QString("%1.%2").arg(applyRegularExpression(applyRenamePattern(sourceFile.completeBaseName(), m_audioFile.metaInfo())), fileExt), true); const QString fileName = MUtils::clean_file_name(QString("%1.%2").arg(applyRegularExpression(applyRenamePattern(sourceFile.completeBaseName(), m_audioFile.metaInfo())), fileExt), true);
//Generate full output path //Generate full output path
outFileName = QString("%1/%2").arg(targetDir.canonicalPath(), fileName); outFileName = targetDir.absoluteFilePath(fileName);
//Skip file, if target file exists (optional!) //Skip file, if target file exists (optional!)
if((m_overwriteMode == OverwriteMode_SkipExisting) && QFileInfo(outFileName).exists()) if((m_overwriteMode == OverwriteMode_SkipExisting) && QFileInfo(outFileName).exists())
@ -469,21 +475,14 @@ int ProcessThread::generateOutFileName(QString &outFileName)
} }
//Delete file, if target file exists (optional!) //Delete file, if target file exists (optional!)
if((m_overwriteMode == OverwriteMode_Overwrite) && QFileInfo(outFileName).exists() && QFileInfo(outFileName).isFile()) const QFileInfo origFileName(outFileName);
if((m_overwriteMode == OverwriteMode_Overwrite) && origFileName.exists() && origFileName.isFile())
{ {
handleMessage(QString("%1\n%2\n").arg(tr("Target output file already exists, going to delete existing file:"), QDir::toNativeSeparators(outFileName))); handleMessage(QString("%1\n%2\n").arg(tr("Target output file already exists, going to delete existing file:"), QDir::toNativeSeparators(outFileName)));
bool removed = false; bool removed = false;
if(sourceFile.canonicalFilePath().compare(QFileInfo(outFileName).absoluteFilePath(), Qt::CaseInsensitive) != 0) if(sourceFile.canonicalFilePath().compare(origFileName.absoluteFilePath(), Qt::CaseInsensitive) != 0)
{ {
for(int i = 0; i < 16; i++) removed = MUtils::remove_file(outFileName);
{
if(QFile::remove(outFileName))
{
removed = true;
break;
}
MUtils::OS::sleep_ms(1);
}
} }
if(!removed) if(!removed)
{ {
@ -491,26 +490,16 @@ int ProcessThread::generateOutFileName(QString &outFileName)
} }
} }
//Generate final name /* -------- Generate final non-existing file name -------- */
const QFileInfo origFileName(outFileName);
for (int n = 2; n <= 65534; ++n)
{
//Check file existence
if (QFileInfo(outFileName).exists())
{
outFileName = origFileName.absoluteDir().filePath(QString("%1 (%2).%3").arg(origFileName.completeBaseName(), QString::number(n), origFileName.suffix()));
continue;
}
//Create placeholder //Generate final name
QFile placeholder(outFileName); outFileName = MUtils::make_unique_file(origFileName.absoluteDir(), origFileName.completeBaseName(), origFileName.suffix(), true, true);
if (placeholder.open(QIODevice::WriteOnly)) if(!outFileName.isEmpty())
{ {
placeholder.close();
return 1; return 1;
} }
}
//Failed to generate
handleMessage(QString("%1\n").arg(tr("Failed to generate non-existing target file name!"))); handleMessage(QString("%1\n").arg(tr("Failed to generate non-existing target file name!")));
return 0; return 0;
} }