Fix many typos

This commit is contained in:
Heliguy
2024-10-27 22:12:15 -04:00
parent eb0b0591f1
commit 985cbe966e
9 changed files with 23 additions and 23 deletions

View File

@@ -1,4 +1,4 @@
> This document exists to inform feature requesters, contributors, and anyone else who is curios on the state of Warehouse. Make sure to give this a read before requesting any new features. > This document exists to inform feature requesters, contributors, and anyone else who is curious on the state of Warehouse. Make sure to give this a read before requesting any new features.
# Features Being Worked On # Features Being Worked On
@@ -30,4 +30,4 @@
- Reading and leaving app reviews - Reading and leaving app reviews
- Auto updates - Auto updates
- Management of any non Flatpak packages - Management of any non Flatpak packages
- Supporting any repackages (apart from nixpkgs should that arise) - Supporting any repackages (apart from nixpkgs should that arise)

View File

@@ -1,5 +1,5 @@
[Desktop Entry] [Desktop Entry]
# Translators: Do not translate the applicaion name # Translators: Do not translate the application name
Name=Warehouse Name=Warehouse
Exec=warehouse Exec=warehouse
Icon=io.github.flattool.Warehouse Icon=io.github.flattool.Warehouse
@@ -9,4 +9,4 @@ Categories=GTK;System;Utility;
StartupNotify=true StartupNotify=true
Keywords=flatpak Keywords=flatpak
Comment=Manage all things Flatpak Comment=Manage all things Flatpak
X-Purism-FormFactor=Workstation;Mobile; X-Purism-FormFactor=Workstation;Mobile;

View File

@@ -17,7 +17,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#. Translators: Do not translate the applicaion name #. Translators: Do not translate the application name
#: data/io.github.flattool.Warehouse.desktop.in:4 #: data/io.github.flattool.Warehouse.desktop.in:4
msgid "Warehouse" msgid "Warehouse"
msgstr "" msgstr ""

View File

@@ -195,7 +195,7 @@ class Flatpak:
self.info["installation"] = installation self.info["installation"] = installation
self.is_eol = "eol=" in self.info["options"] self.is_eol = "eol=" in self.info["options"]
self.dependant_runtime = None self.dependent_runtime = None
self.failed_app_run = None self.failed_app_run = None
self.failed_mask = None self.failed_mask = None
self.failed_uninstall = None self.failed_uninstall = None
@@ -256,7 +256,7 @@ class HostInfo:
installations = [] installations = []
masks = {} masks = {}
pins = {} pins = {}
dependant_runtime_refs = [] dependent_runtime_refs = []
@classmethod @classmethod
def get_flatpaks(this, callback=None): def get_flatpaks(this, callback=None):
# Callback is a function to run after the host flatpaks are found # Callback is a function to run after the host flatpaks are found
@@ -267,7 +267,7 @@ class HostInfo:
this.installations.clear() this.installations.clear()
this.masks.clear() this.masks.clear()
this.pins.clear() this.pins.clear()
this.dependant_runtime_refs.clear() this.dependent_runtime_refs.clear()
def thread(task, *args): def thread(task, *args):
@@ -354,7 +354,7 @@ class HostInfo:
this.id_to_flatpak[package.info["id"]] = package this.id_to_flatpak[package.info["id"]] = package
this.ref_to_flatpak[package.info["ref"]] = package this.ref_to_flatpak[package.info["ref"]] = package
# Dependant Runtimes # Dependent Runtimes
output = subprocess.run( output = subprocess.run(
['flatpak-spawn', '--host', ['flatpak-spawn', '--host',
'flatpak', 'list', '--columns=runtime,ref'], 'flatpak', 'list', '--columns=runtime,ref'],
@@ -372,9 +372,9 @@ class HostInfo:
continue continue
runtime = split_line[0] runtime = split_line[0]
package.dependant_runtime = this.ref_to_flatpak[runtime] package.dependent_runtime = this.ref_to_flatpak[runtime]
if not runtime in this.dependant_runtime_refs: if not runtime in this.dependent_runtime_refs:
this.dependant_runtime_refs.append(runtime) this.dependent_runtime_refs.append(runtime)
except subprocess.CalledProcessError as cpe: except subprocess.CalledProcessError as cpe:
this.main_window.toast_overlay.add_toast(ErrorToast(_("Could not load packages"), cpe.stderr).toast) this.main_window.toast_overlay.add_toast(ErrorToast(_("Could not load packages"), cpe.stderr).toast)

View File

@@ -133,7 +133,7 @@ class FiltersPage(Adw.NavigationPage):
for row in self.runtime_rows: for row in self.runtime_rows:
self.runtimes_group.remove(row) self.runtimes_group.remove(row)
self.runtime_rows.clear() self.runtime_rows.clear()
if len(HostInfo.dependant_runtime_refs) < 2: if len(HostInfo.dependent_runtime_refs) < 2:
self.runtimes_group.set_visible(False) self.runtimes_group.set_visible(False)
if self.runtimes_string != "all": if self.runtimes_string != "all":
self.runtimes_string = "all" self.runtimes_string = "all"
@@ -142,7 +142,7 @@ class FiltersPage(Adw.NavigationPage):
return return
for j, ref in enumerate(HostInfo.dependant_runtime_refs): for j, ref in enumerate(HostInfo.dependent_runtime_refs):
row = FilterRow(ref) row = FilterRow(ref)
row.set_title(ref) row.set_title(ref)
row.check_button.set_active(ref in self.runtimes_string) row.check_button.set_active(ref in self.runtimes_string)

View File

@@ -111,7 +111,7 @@ class PackagesPage(Adw.BreakpointBin):
visible = False visible = False
if remotes_list != "all" and not f"{row.package.info['origin']}<>{row.package.info['installation']}" in remotes_list: if remotes_list != "all" and not f"{row.package.info['origin']}<>{row.package.info['installation']}" in remotes_list:
visible = False visible = False
if runtimes_list != "all" and (row.package.is_runtime or row.package.dependant_runtime and not row.package.dependant_runtime.info["ref"] in runtimes_list): if runtimes_list != "all" and (row.package.is_runtime or row.package.dependent_runtime and not row.package.dependent_runtime.info["ref"] in runtimes_list):
visible = False visible = False
row.set_visible(visible) row.set_visible(visible)
@@ -187,7 +187,7 @@ class PackagesPage(Adw.BreakpointBin):
row.check_button.connect("toggled", lambda *_, row=row: self.row_select_handler(row)) row.check_button.connect("toggled", lambda *_, row=row: self.row_select_handler(row))
try: try:
if not package.is_runtime: if not package.is_runtime:
row.eol_runtime_status_icon.set_visible(package.dependant_runtime.is_eol) row.eol_runtime_status_icon.set_visible(package.dependent_runtime.is_eol)
except Exception as e: except Exception as e:
self.packages_toast_overlay.add_toast(ErrorToast(_("Error getting Flatpak '{}'").format(package.info["name"]), str(e)).toast) self.packages_toast_overlay.add_toast(ErrorToast(_("Error getting Flatpak '{}'").format(package.info["name"]), str(e)).toast)

View File

@@ -97,7 +97,7 @@ template $PropertiesPage : Adw.NavigationPage {
margin-bottom: 7; margin-bottom: 7;
margin-start: 6; margin-start: 6;
margin-end: 6; margin-end: 6;
label: _("This package is End Of Life, and will not recieve any security updates"); label: _("This package is End Of Life, and will not receive any security updates");
styles ["heading", "error"] styles ["heading", "error"]
halign: center; halign: center;
hexpand: true; hexpand: true;

View File

@@ -97,10 +97,10 @@ class PropertiesPage(Adw.NavigationPage):
self.trash_data_button.set_sensitive(has_path and self.package.info['id'] != "io.github.flattool.Warehouse") self.trash_data_button.set_sensitive(has_path and self.package.info['id'] != "io.github.flattool.Warehouse")
self.open_data_button.set_sensitive(has_path) self.open_data_button.set_sensitive(has_path)
if not self.package.dependant_runtime is None: if not self.package.dependent_runtime is None:
self.runtime_row.set_visible(True) self.runtime_row.set_visible(True)
self.runtime_row.set_subtitle(self.package.dependant_runtime.info["name"]) self.runtime_row.set_subtitle(self.package.dependent_runtime.info["name"])
self.eol_package_package_status_icon.set_visible(self.package.dependant_runtime.is_eol) self.eol_package_package_status_icon.set_visible(self.package.dependent_runtime.is_eol)
if has_path: if has_path:
self.trash_data_button.set_visible(False) self.trash_data_button.set_visible(False)
@@ -254,11 +254,11 @@ class PropertiesPage(Adw.NavigationPage):
def runtime_row_handler(self, *args): def runtime_row_handler(self, *args):
new_page = self.__class__() new_page = self.__class__()
new_page.packages_page = self.packages_page new_page.packages_page = self.packages_page
new_page.set_properties(self.package.dependant_runtime) new_page.set_properties(self.package.dependent_runtime)
self.nav_view.push(new_page) self.nav_view.push(new_page)
def open_app_handler(self, *args): def open_app_handler(self, *args):
self.toast_overlay.add_toast(Adw.Toast(title=_("Openeing {}").format(self.package.info["name"]))) self.toast_overlay.add_toast(Adw.Toast(title=_("Opening {}").format(self.package.info["name"])))
def callback(*args): def callback(*args):
if fail := self.package.failed_app_run: if fail := self.package.failed_app_run:

View File

@@ -281,7 +281,7 @@ class RemotesPage(Adw.NavigationPage):
self.search_entry.connect("search-changed", self.on_search) self.search_entry.connect("search-changed", self.on_search)
self.show_disabled_button.connect("toggled", self.show_disabled_handler) self.show_disabled_button.connect("toggled", self.show_disabled_handler)
# Appply # Apply
self.adding_view.set_content(LoadingStatus(_("Adding Remote"), _("This should only take a moment"))) self.adding_view.set_content(LoadingStatus(_("Adding Remote"), _("This should only take a moment")))
self.loading_view.set_content(LoadingStatus(_("Loading Remotes"), _("This should only take a moment"))) self.loading_view.set_content(LoadingStatus(_("Loading Remotes"), _("This should only take a moment")))
for item in self.new_remotes: for item in self.new_remotes: