From 50774a6dfb9fdeacbf054e1624de042d9284ae0e Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Fri, 4 Nov 2022 07:39:57 +0800 Subject: [PATCH] docs: fix typos Found via `codespell`. --- flow/core/download.py | 2 +- flow/core/status_manager.py | 2 +- flow/ui/download_item.py | 4 ++-- po/ar.po | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/flow/core/download.py b/flow/core/download.py index 95ed4fc..42009ae 100755 --- a/flow/core/download.py +++ b/flow/core/download.py @@ -307,7 +307,7 @@ def _handle_error(self, args): self.status = Download.STATUS_CONNECTION_ERROR # Notify user if args[0] != pycurl.E_ABORTED_BY_CALLBACK: - Notifier.notify(self.id, _("Downlod error"), _("An error occured while downloading"), "folder-download-symbolic") + Notifier.notify(self.id, _("Download error"), _("An error occurred while downloading"), "folder-download-symbolic") def get_output_file_path(self): if self.output_directory: diff --git a/flow/core/status_manager.py b/flow/core/status_manager.py index 8e84b6f..046f598 100755 --- a/flow/core/status_manager.py +++ b/flow/core/status_manager.py @@ -94,7 +94,7 @@ def remove_download(id, delete_file=False): con.execute("DELETE FROM downloads WHERE id = ?", (id,)) else: - logging.error(f"Attempted to delete a non-existant download (ID: {id})") + logging.error(f"Attempted to delete a non-existent download (ID: {id})") con.close() @staticmethod diff --git a/flow/ui/download_item.py b/flow/ui/download_item.py index ac7d070..47db357 100755 --- a/flow/ui/download_item.py +++ b/flow/ui/download_item.py @@ -137,7 +137,7 @@ def on_status_change(self, *__): elif "error" in self.status: self.state_stack.set_visible_child_name('restart') self.actions_stack.set_visible_child_name('cancel') - self.details_text.set_label(DownloadItem.ERROR_MESSAGES.get(self.status, _("An error occured"))) + self.details_text.set_label(DownloadItem.ERROR_MESSAGES.get(self.status, _("An error occurred"))) self.actions_activator('restart', 'delete', 'resume-with-link') elif self.status == "moving": self.details_text.set_label(_("Moving file...")) @@ -179,7 +179,7 @@ def on_progress_change(self, *_): if time_delta >= 10**6: # Amount of data download in a second progress_delta = self.progress - self.last_progress - # Update the progess + # Update the progress if self.size > 0: self.progress_bar.set_fraction(float(self.progress / self.size)) self.eta = get_eta(progress_delta, self.size - self.progress) diff --git a/po/ar.po b/po/ar.po index cb7b41b..4c5c609 100755 --- a/po/ar.po +++ b/po/ar.po @@ -245,7 +245,7 @@ msgid "Could not resume download" msgstr "فشل استئناف التحميل" #: src/components/download_item.py:125 -msgid "An error occured" +msgid "An error occurred" msgstr "حدث خطأ" #: src/components/preferences/category_editor.py:86