From 7ac99282f458b27b4789072f99ac51988879a047 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Mon, 13 Aug 2018 19:12:29 -0400 Subject: [PATCH] Added more things that need to be translated --- .../ripme/ripper/DownloadFileThread.java | 36 ++++++++++--------- .../com/rarchives/ripme/ui/MainWindow.java | 4 +-- src/main/resources/LabelsBundle.properties | 21 ++++++++++- .../resources/LabelsBundle_de_DE.properties | 18 ++++++++++ .../resources/LabelsBundle_en_US.properties | 21 ++++++++++- .../resources/LabelsBundle_es_ES.properties | 21 ++++++++++- .../resources/LabelsBundle_fi_FI.properties | 19 ++++++++++ .../resources/LabelsBundle_fr_CH.properties | 21 ++++++++++- .../resources/LabelsBundle_in_ID.properties | 19 ++++++++++ .../resources/LabelsBundle_it_IT.properties | 19 ++++++++++ .../resources/LabelsBundle_kr_KR.properties | 19 ++++++++++ .../resources/LabelsBundle_nl_NL.properties | 19 ++++++++++ .../resources/LabelsBundle_pt_BR.properties | 19 ++++++++++ .../resources/LabelsBundle_pt_PT.properties | 19 ++++++++++ .../resources/LabelsBundle_ru_RU.properties | 21 ++++++++++- 15 files changed, 273 insertions(+), 23 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/DownloadFileThread.java b/src/main/java/com/rarchives/ripme/ripper/DownloadFileThread.java index f481919a..1e81bf73 100644 --- a/src/main/java/com/rarchives/ripme/ripper/DownloadFileThread.java +++ b/src/main/java/com/rarchives/ripme/ripper/DownloadFileThread.java @@ -14,9 +14,11 @@ import java.net.URLConnection; import java.util.Arrays; import java.util.HashMap; import java.util.Map; +import java.util.ResourceBundle; import javax.net.ssl.HttpsURLConnection; +import com.rarchives.ripme.ui.MainWindow; import org.apache.commons.io.IOUtils; import org.apache.log4j.Logger; import org.jsoup.HttpStatusException; @@ -30,6 +32,8 @@ import com.rarchives.ripme.utils.Utils; */ class DownloadFileThread extends Thread { + private ResourceBundle rb = MainWindow.rb; + private static final Logger logger = Logger.getLogger(DownloadFileThread.class); private String referrer = ""; @@ -77,16 +81,16 @@ class DownloadFileThread extends Thread { try { observer.stopCheck(); } catch (IOException e) { - observer.downloadErrored(url, "Download interrupted"); + observer.downloadErrored(url, rb.getString("download.interrupted")); return; } if (saveAs.exists() && !observer.tryResumeDownload() && !getFileExtFromMIME || Utils.fuzzyExists(new File(saveAs.getParent()), saveAs.getName()) && getFileExtFromMIME && !observer.tryResumeDownload()) { if (Utils.getConfigBoolean("file.overwrite", false)) { - logger.info("[!] Deleting existing file" + prettySaveAs); + logger.info("[!] " + rb.getString("deleting.existing.file") + prettySaveAs); saveAs.delete(); } else { - logger.info("[!] Skipping " + url + " -- file already exists: " + prettySaveAs); + logger.info("[!] " + rb.getString("skipping") + url + " -- " + rb.getString("file.already.exists") + ": " + prettySaveAs); observer.downloadExists(url, saveAs); return; } @@ -132,14 +136,14 @@ class DownloadFileThread extends Thread { huc.setRequestProperty("Range", "bytes=" + fileSize + "-"); } } - logger.debug("Request properties: " + huc.getRequestProperties()); + logger.debug(rb.getString("request.properties") + ": " + huc.getRequestProperties()); huc.connect(); int statusCode = huc.getResponseCode(); logger.debug("Status code: " + statusCode); if (statusCode != 206 && observer.tryResumeDownload() && saveAs.exists()) { // TODO find a better way to handle servers that don't support resuming downloads then just erroring out - throw new IOException("Server doesn't support resuming downloads"); + throw new IOException(rb.getString("server.doesnt.support.resuming.downloads")); } if (statusCode / 100 == 3) { // 3xx Redirect if (!redirected) { @@ -153,14 +157,14 @@ class DownloadFileThread extends Thread { throw new IOException("Redirect status code " + statusCode + " - redirect to " + location); } if (statusCode / 100 == 4) { // 4xx errors - logger.error("[!] Non-retriable status code " + statusCode + " while downloading from " + url); - observer.downloadErrored(url, "Non-retriable status code " + statusCode + " while downloading " + url.toExternalForm()); + logger.error("[!] " + rb.getString("nonretriable.status.code") + " " + statusCode + " while downloading from " + url); + observer.downloadErrored(url, rb.getString("nonretriable.status.code") + " " + statusCode + " while downloading " + url.toExternalForm()); return; // Not retriable, drop out. } if (statusCode / 100 == 5) { // 5xx errors - observer.downloadErrored(url, "Retriable status code " + statusCode + " while downloading " + url.toExternalForm()); + observer.downloadErrored(url, rb.getString("retriable.status.code") + " " + statusCode + " while downloading " + url.toExternalForm()); // Throw exception so download can be retried - throw new IOException("Retriable status code " + statusCode); + throw new IOException(rb.getString("retriable.status.code") + " " + statusCode); } if (huc.getContentLength() == 503 && urlToDownload.getHost().endsWith("imgur.com")) { // Imgur image with 503 bytes is "404" @@ -196,8 +200,8 @@ class DownloadFileThread extends Thread { if (fileExt != null) { saveAs = new File(saveAs.toString() + "." + fileExt); } else { - logger.error("Was unable to get content type using magic number"); - logger.error("Magic number was: " + Arrays.toString(magicBytes)); + logger.error(rb.getString("was.unable.to.get.content.type.using.magic.number")); + logger.error(rb.getString("magic.number.was") + ": " + Arrays.toString(magicBytes)); } } } @@ -213,7 +217,7 @@ class DownloadFileThread extends Thread { try { observer.stopCheck(); } catch (IOException e) { - observer.downloadErrored(url, "Download interrupted"); + observer.downloadErrored(url, rb.getString("download.interrupted")); return; } fos.write(data, 0, bytesRead); @@ -232,7 +236,7 @@ class DownloadFileThread extends Thread { // Download failed, break out of loop break; } catch (HttpStatusException hse) { - logger.debug("HTTP status exception", hse); + logger.debug(rb.getString("http.status.exception"), hse); logger.error("[!] HTTP status " + hse.getStatusCode() + " while downloading from " + urlToDownload); if (hse.getStatusCode() == 404 && Utils.getConfigBoolean("errors.skip404", false)) { observer.downloadErrored(url, "HTTP status code " + hse.getStatusCode() + " while downloading " + url.toExternalForm()); @@ -240,7 +244,7 @@ class DownloadFileThread extends Thread { } } catch (IOException e) { logger.debug("IOException", e); - logger.error("[!] Exception while downloading file: " + url + " - " + e.getMessage()); + logger.error("[!] " + rb.getString("exception.while.downloading.file") + ": " + url + " - " + e.getMessage()); } finally { // Close any open streams try { @@ -251,8 +255,8 @@ class DownloadFileThread extends Thread { } catch (IOException e) { } } if (tries > this.retries) { - logger.error("[!] Exceeded maximum retries (" + this.retries + ") for URL " + url); - observer.downloadErrored(url, "Failed to download " + url.toExternalForm()); + logger.error("[!] " + rb.getString ("exceeded.maximum.retries") + " (" + this.retries + ") for URL " + url); + observer.downloadErrored(url, rb.getString("failed.to.download") + " " + url.toExternalForm()); return; } } while (true); diff --git a/src/main/java/com/rarchives/ripme/ui/MainWindow.java b/src/main/java/com/rarchives/ripme/ui/MainWindow.java index a7e9d046..743e80d1 100644 --- a/src/main/java/com/rarchives/ripme/ui/MainWindow.java +++ b/src/main/java/com/rarchives/ripme/ui/MainWindow.java @@ -141,7 +141,7 @@ public final class MainWindow implements Runnable, RipStatusHandler { private static AbstractRipper ripper; - private ResourceBundle rb = Utils.getResourceBundle(null); + public static ResourceBundle rb = Utils.getResourceBundle(null); // All the langs ripme has been translated into private static String[] supportedLanges = new String[] {"en_US", "de_DE", "es_ES", "fr_CH", "kr_KR", "pt_BR", "pt_PT", @@ -513,7 +513,7 @@ public final class MainWindow implements Runnable, RipStatusHandler { } catch (Exception e) { } configSaveDirLabel.setToolTipText(configSaveDirLabel.getText()); configSaveDirLabel.setHorizontalAlignment(JLabel.RIGHT); - configSaveDirButton = new JButton("Select Save Directory..."); + configSaveDirButton = new JButton(rb.getString("select.save.dir") + "..."); addItemToConfigGridBagConstraints(gbc, 0, configUpdateLabel, configUpdateButton); addItemToConfigGridBagConstraints(gbc, 1, configAutoupdateCheckbox, configLogLevelCombobox); diff --git a/src/main/resources/LabelsBundle.properties b/src/main/resources/LabelsBundle.properties index f991d02f..bce27294 100644 --- a/src/main/resources/LabelsBundle.properties +++ b/src/main/resources/LabelsBundle.properties @@ -34,4 +34,23 @@ interrupted.while.waiting.to.rip.next.album = Interrupted while waiting to rip n inactive = Inactive re-rip.checked = Re-rip Checked remove = Remove -clear = Clear \ No newline at end of file +clear = Clear +select.save.dir = Select Save Directory + +# Keys for the logs generated by DownloadFileThread + +nonretriable.status.code = Non-retriable status code +retriable.status.code = Retriable status code +server.doesnt.support.resuming.downloads = Server doesn't support resuming downloads +# A "magic number" can also be called a file signature +was.unable.to.get.content.type.using.magic.number = Was unable to get content type using magic number +magic.number.was = Magic number was +deleting.existing.file = Deleting existing file +request.properties = Request properties +download.interrupted = Download interrupted +exceeded.maximum.retries = Exceeded maximum retries +http.status.exception = HTTP status exception +exception.while.downloading.file = Exception while downloading file +failed.to.download = Failed to download +skipping = Skipping +file.already.exists = file already exists \ No newline at end of file diff --git a/src/main/resources/LabelsBundle_de_DE.properties b/src/main/resources/LabelsBundle_de_DE.properties index da1fc8e2..3aa12da3 100644 --- a/src/main/resources/LabelsBundle_de_DE.properties +++ b/src/main/resources/LabelsBundle_de_DE.properties @@ -35,4 +35,22 @@ inactive = Inaktiv re-rip.checked = Re-rip Überprüft remove = Entfernen clear = Leeren +select.save.dir = Select Save Directory +# Keys for the logs generated by DownloadFileThread + +nonretriable.status.code = Non-retriable status code +retriable.status.code = Retriable status code +server.doesnt.support.resuming.downloads = Server doesn't support resuming downloads +# A "magic number" can also be called a file signature +was.unable.to.get.content.type.using.magic.number = Was unable to get content type using magic number +magic.number.was = Magic number was +deleting.existing.file = Deleting existing file +request.properties = Request properties +download.interrupted = Download interrupted +exceeded.maximum.retries = Exceeded maximum retries +http.status.exception = HTTP status exception +exception.while.downloading.file = Exception while downloading file +failed.to.download = Failed to download +skipping = Skipping +file.already.exists = file already exists \ No newline at end of file diff --git a/src/main/resources/LabelsBundle_en_US.properties b/src/main/resources/LabelsBundle_en_US.properties index f991d02f..bce27294 100644 --- a/src/main/resources/LabelsBundle_en_US.properties +++ b/src/main/resources/LabelsBundle_en_US.properties @@ -34,4 +34,23 @@ interrupted.while.waiting.to.rip.next.album = Interrupted while waiting to rip n inactive = Inactive re-rip.checked = Re-rip Checked remove = Remove -clear = Clear \ No newline at end of file +clear = Clear +select.save.dir = Select Save Directory + +# Keys for the logs generated by DownloadFileThread + +nonretriable.status.code = Non-retriable status code +retriable.status.code = Retriable status code +server.doesnt.support.resuming.downloads = Server doesn't support resuming downloads +# A "magic number" can also be called a file signature +was.unable.to.get.content.type.using.magic.number = Was unable to get content type using magic number +magic.number.was = Magic number was +deleting.existing.file = Deleting existing file +request.properties = Request properties +download.interrupted = Download interrupted +exceeded.maximum.retries = Exceeded maximum retries +http.status.exception = HTTP status exception +exception.while.downloading.file = Exception while downloading file +failed.to.download = Failed to download +skipping = Skipping +file.already.exists = file already exists \ No newline at end of file diff --git a/src/main/resources/LabelsBundle_es_ES.properties b/src/main/resources/LabelsBundle_es_ES.properties index a1aa5a4a..987afd8f 100644 --- a/src/main/resources/LabelsBundle_es_ES.properties +++ b/src/main/resources/LabelsBundle_es_ES.properties @@ -34,4 +34,23 @@ interrupted.while.waiting.to.rip.next.album = Interrumpido esperando el Rip del inactive = Inactivo re-rip.checked = Re-rip marcado remove = Quitar -clear = Limpiar \ No newline at end of file +clear = Limpiar +select.save.dir = Select Save Directory + +# Keys for the logs generated by DownloadFileThread + +nonretriable.status.code = Non-retriable status code +retriable.status.code = Retriable status code +server.doesnt.support.resuming.downloads = Server doesn't support resuming downloads +# A "magic number" can also be called a file signature +was.unable.to.get.content.type.using.magic.number = Was unable to get content type using magic number +magic.number.was = Magic number was +deleting.existing.file = Deleting existing file +request.properties = Request properties +download.interrupted = Download interrupted +exceeded.maximum.retries = Exceeded maximum retries +http.status.exception = HTTP status exception +exception.while.downloading.file = Exception while downloading file +failed.to.download = Failed to download +skipping = Skipping +file.already.exists = file already exists \ No newline at end of file diff --git a/src/main/resources/LabelsBundle_fi_FI.properties b/src/main/resources/LabelsBundle_fi_FI.properties index 89818706..834bd90d 100644 --- a/src/main/resources/LabelsBundle_fi_FI.properties +++ b/src/main/resources/LabelsBundle_fi_FI.properties @@ -35,3 +35,22 @@ inactive = Toimeton re-rip.checked = Uudelleenlataa merkatut remove = Poista clear = Tyhjennä +select.save.dir = Select Save Directory + +# Keys for the logs generated by DownloadFileThread + +nonretriable.status.code = Non-retriable status code +retriable.status.code = Retriable status code +server.doesnt.support.resuming.downloads = Server doesn't support resuming downloads +# A "magic number" can also be called a file signature +was.unable.to.get.content.type.using.magic.number = Was unable to get content type using magic number +magic.number.was = Magic number was +deleting.existing.file = Deleting existing file +request.properties = Request properties +download.interrupted = Download interrupted +exceeded.maximum.retries = Exceeded maximum retries +http.status.exception = HTTP status exception +exception.while.downloading.file = Exception while downloading file +failed.to.download = Failed to download +skipping = Skipping +file.already.exists = file already exists \ No newline at end of file diff --git a/src/main/resources/LabelsBundle_fr_CH.properties b/src/main/resources/LabelsBundle_fr_CH.properties index 1e23645b..f71382c3 100644 --- a/src/main/resources/LabelsBundle_fr_CH.properties +++ b/src/main/resources/LabelsBundle_fr_CH.properties @@ -34,4 +34,23 @@ interrupted.while.waiting.to.rip.next.album = Interrompu lors de l'attente pour inactive = Inactif re-rip.checked = Re-rip vérifié remove = Enlever -clear = Effacer \ No newline at end of file +clear = Effacer +select.save.dir = Select Save Directory + +# Keys for the logs generated by DownloadFileThread + +nonretriable.status.code = Non-retriable status code +retriable.status.code = Retriable status code +server.doesnt.support.resuming.downloads = Server doesn't support resuming downloads +# A "magic number" can also be called a file signature +was.unable.to.get.content.type.using.magic.number = Was unable to get content type using magic number +magic.number.was = Magic number was +deleting.existing.file = Deleting existing file +request.properties = Request properties +download.interrupted = Download interrupted +exceeded.maximum.retries = Exceeded maximum retries +http.status.exception = HTTP status exception +exception.while.downloading.file = Exception while downloading file +failed.to.download = Failed to download +skipping = Skipping +file.already.exists = file already exists \ No newline at end of file diff --git a/src/main/resources/LabelsBundle_in_ID.properties b/src/main/resources/LabelsBundle_in_ID.properties index 6abc7626..dab80f3b 100644 --- a/src/main/resources/LabelsBundle_in_ID.properties +++ b/src/main/resources/LabelsBundle_in_ID.properties @@ -35,3 +35,22 @@ inactive = Tidak aktif re-rip.checked = Rip Ulang remove = Hapus clear = Hapus Semua +select.save.dir = Select Save Directory + +# Keys for the logs generated by DownloadFileThread + +nonretriable.status.code = Non-retriable status code +retriable.status.code = Retriable status code +server.doesnt.support.resuming.downloads = Server doesn't support resuming downloads +# A "magic number" can also be called a file signature +was.unable.to.get.content.type.using.magic.number = Was unable to get content type using magic number +magic.number.was = Magic number was +deleting.existing.file = Deleting existing file +request.properties = Request properties +download.interrupted = Download interrupted +exceeded.maximum.retries = Exceeded maximum retries +http.status.exception = HTTP status exception +exception.while.downloading.file = Exception while downloading file +failed.to.download = Failed to download +skipping = Skipping +file.already.exists = file already exists \ No newline at end of file diff --git a/src/main/resources/LabelsBundle_it_IT.properties b/src/main/resources/LabelsBundle_it_IT.properties index 57953c71..00bad6dc 100644 --- a/src/main/resources/LabelsBundle_it_IT.properties +++ b/src/main/resources/LabelsBundle_it_IT.properties @@ -35,3 +35,22 @@ inactive = Inattivo re-rip.checked = Re-rip selezionato remove = Rimuovi clear = Pulisci +select.save.dir = Select Save Directory + +# Keys for the logs generated by DownloadFileThread + +nonretriable.status.code = Non-retriable status code +retriable.status.code = Retriable status code +server.doesnt.support.resuming.downloads = Server doesn't support resuming downloads +# A "magic number" can also be called a file signature +was.unable.to.get.content.type.using.magic.number = Was unable to get content type using magic number +magic.number.was = Magic number was +deleting.existing.file = Deleting existing file +request.properties = Request properties +download.interrupted = Download interrupted +exceeded.maximum.retries = Exceeded maximum retries +http.status.exception = HTTP status exception +exception.while.downloading.file = Exception while downloading file +failed.to.download = Failed to download +skipping = Skipping +file.already.exists = file already exists \ No newline at end of file diff --git a/src/main/resources/LabelsBundle_kr_KR.properties b/src/main/resources/LabelsBundle_kr_KR.properties index 03f23e8a..383a0b39 100644 --- a/src/main/resources/LabelsBundle_kr_KR.properties +++ b/src/main/resources/LabelsBundle_kr_KR.properties @@ -35,3 +35,22 @@ inactive = \uBE44\uD65C\uC131\uD654 re-rip.checked = \uB2E4\uC2DC \uBCF5\uC0AC\uD558\uAE30 \uCCB4\uD06C\uB428 remove = \uC120\uD0DD\uD55C \uAE30\uB85D \uC0AD\uC81C clear = \uD788\uC2A4\uD1A0\uB9AC \uBAA8\uB450 \uC0AD\uC81C +select.save.dir = Select Save Directory + +# Keys for the logs generated by DownloadFileThread + +nonretriable.status.code = Non-retriable status code +retriable.status.code = Retriable status code +server.doesnt.support.resuming.downloads = Server doesn't support resuming downloads +# A "magic number" can also be called a file signature +was.unable.to.get.content.type.using.magic.number = Was unable to get content type using magic number +magic.number.was = Magic number was +deleting.existing.file = Deleting existing file +request.properties = Request properties +download.interrupted = Download interrupted +exceeded.maximum.retries = Exceeded maximum retries +http.status.exception = HTTP status exception +exception.while.downloading.file = Exception while downloading file +failed.to.download = Failed to download +skipping = Skipping +file.already.exists = file already exists \ No newline at end of file diff --git a/src/main/resources/LabelsBundle_nl_NL.properties b/src/main/resources/LabelsBundle_nl_NL.properties index 5590906d..2fa96b6b 100644 --- a/src/main/resources/LabelsBundle_nl_NL.properties +++ b/src/main/resources/LabelsBundle_nl_NL.properties @@ -35,3 +35,22 @@ inactive = Inactief re-rip.checked = Re-rip Gecheckt remove = Verwijderen clear = Opruimen +select.save.dir = Select Save Directory + +# Keys for the logs generated by DownloadFileThread + +nonretriable.status.code = Non-retriable status code +retriable.status.code = Retriable status code +server.doesnt.support.resuming.downloads = Server doesn't support resuming downloads +# A "magic number" can also be called a file signature +was.unable.to.get.content.type.using.magic.number = Was unable to get content type using magic number +magic.number.was = Magic number was +deleting.existing.file = Deleting existing file +request.properties = Request properties +download.interrupted = Download interrupted +exceeded.maximum.retries = Exceeded maximum retries +http.status.exception = HTTP status exception +exception.while.downloading.file = Exception while downloading file +failed.to.download = Failed to download +skipping = Skipping +file.already.exists = file already exists \ No newline at end of file diff --git a/src/main/resources/LabelsBundle_pt_BR.properties b/src/main/resources/LabelsBundle_pt_BR.properties index 853bad99..9ce479d0 100644 --- a/src/main/resources/LabelsBundle_pt_BR.properties +++ b/src/main/resources/LabelsBundle_pt_BR.properties @@ -35,3 +35,22 @@ inactive = Inativo re-rip.checked = Re-ripar selecionados remove = Remover clear = Limpar +select.save.dir = Select Save Directory + +# Keys for the logs generated by DownloadFileThread + +nonretriable.status.code = Non-retriable status code +retriable.status.code = Retriable status code +server.doesnt.support.resuming.downloads = Server doesn't support resuming downloads +# A "magic number" can also be called a file signature +was.unable.to.get.content.type.using.magic.number = Was unable to get content type using magic number +magic.number.was = Magic number was +deleting.existing.file = Deleting existing file +request.properties = Request properties +download.interrupted = Download interrupted +exceeded.maximum.retries = Exceeded maximum retries +http.status.exception = HTTP status exception +exception.while.downloading.file = Exception while downloading file +failed.to.download = Failed to download +skipping = Skipping +file.already.exists = file already exists \ No newline at end of file diff --git a/src/main/resources/LabelsBundle_pt_PT.properties b/src/main/resources/LabelsBundle_pt_PT.properties index 61581728..8c381234 100644 --- a/src/main/resources/LabelsBundle_pt_PT.properties +++ b/src/main/resources/LabelsBundle_pt_PT.properties @@ -35,3 +35,22 @@ inactive = Inativo re-rip.checked = Re-rip verificado remove = Remover clear = Limpar +select.save.dir = Select Save Directory + +# Keys for the logs generated by DownloadFileThread + +nonretriable.status.code = Non-retriable status code +retriable.status.code = Retriable status code +server.doesnt.support.resuming.downloads = Server doesn't support resuming downloads +# A "magic number" can also be called a file signature +was.unable.to.get.content.type.using.magic.number = Was unable to get content type using magic number +magic.number.was = Magic number was +deleting.existing.file = Deleting existing file +request.properties = Request properties +download.interrupted = Download interrupted +exceeded.maximum.retries = Exceeded maximum retries +http.status.exception = HTTP status exception +exception.while.downloading.file = Exception while downloading file +failed.to.download = Failed to download +skipping = Skipping +file.already.exists = file already exists \ No newline at end of file diff --git a/src/main/resources/LabelsBundle_ru_RU.properties b/src/main/resources/LabelsBundle_ru_RU.properties index affcda26..41b6775f 100644 --- a/src/main/resources/LabelsBundle_ru_RU.properties +++ b/src/main/resources/LabelsBundle_ru_RU.properties @@ -34,4 +34,23 @@ interrupted.while.waiting.to.rip.next.album = Прервано во время inactive = Неактивно re-rip.checked = Перекачать выбранное remove = Удалить -clear = Очистить \ No newline at end of file +clear = Очистить +select.save.dir = Select Save Directory + +# Keys for the logs generated by DownloadFileThread + +nonretriable.status.code = Non-retriable status code +retriable.status.code = Retriable status code +server.doesnt.support.resuming.downloads = Server doesn't support resuming downloads +# A "magic number" can also be called a file signature +was.unable.to.get.content.type.using.magic.number = Was unable to get content type using magic number +magic.number.was = Magic number was +deleting.existing.file = Deleting existing file +request.properties = Request properties +download.interrupted = Download interrupted +exceeded.maximum.retries = Exceeded maximum retries +http.status.exception = HTTP status exception +exception.while.downloading.file = Exception while downloading file +failed.to.download = Failed to download +skipping = Skipping +file.already.exists = file already exists \ No newline at end of file