Skip to content

Commit

Permalink
docs: fix a few simple typos
Browse files Browse the repository at this point in the history
There are small typos in:
- scripts/syncthing-gtk-exe.py
- syncthing_gtk/daemon.py
- syncthing_gtk/foldereditor.py
- syncthing_gtk/ribar.py
- syncthing_gtk/uibuilder.py
- syncthing_gtk/windows.py
- syncthing_gtk/wizard.py

Fixes:
- Should read `usable` rather than `ussable`.
- Should read `successful` rather than `sucesfull`.
- Should read `automatically` rather than `automaticaly`.
- Should read `suitable` rather than `situable`.
- Should read `requested` rather than `reqested`.
- Should read `practically` rather than `practicaly`.
- Should read `elements` rather than `elemnets`.
- Should read `beginning` rather than `begining`.
- Should read `basically` rather than `basicaly`.
- Should read `actually` rather than `acually`.

Closes kozec#577
  • Loading branch information
timgates42 authored and andrewshadura committed Jan 7, 2022
1 parent 61861e8 commit 1ee00e0
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion scripts/syncthing-gtk-exe.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
init_logging()
config = Configuration()

# Force dark theme if reqested
# Force dark theme if requested
if config["force_dark_theme"]:
os.environ["GTK_THEME"] = "Adwaita:dark"
if config["language"] not in ("", "None", None):
Expand Down
2 changes: 1 addition & 1 deletion syncthing_gtk/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class Daemon(GObject.GObject, TimerManager):
Emitted if connection to daemon fails.
reason: Daemon.REFUSED if connection is refused and
daemon probably offline. Connection will be
retried automaticaly.
retried automatically.
Daemon.UNKNOWN for all other problems.
Connection can be reinitiated by calling
reconnect() in this case.
Expand Down
2 changes: 1 addition & 1 deletion syncthing_gtk/foldereditor.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def on_data_loaded(self):
self["vpath"].set_sensitive(False)
self["btBrowse"].set_sensitive(False)
except KeyError as e:
# ID not found in configuration. This is practicaly impossible,
# ID not found in configuration. This is practically impossible,
# so it's handled only by self-closing dialog.
log.exception(e)
self.close()
Expand Down
4 changes: 2 additions & 2 deletions syncthing_gtk/ribar.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def get_label(self):

def close_on_close(self):
"""
Setups revealer so it will be automaticaly closed, removed and
Setups revealer so it will be automatically closed, removed and
destroyed when user clicks to any button, including 'X'
"""
self.connect("close", self.close)
Expand Down Expand Up @@ -141,7 +141,7 @@ def __setitem__(self, key, value):

@staticmethod
def build_button(label, icon_name=None, icon_widget=None, use_stock=False):
""" Builds button situable for action area """
""" Builds button suitable for action area """
b = Gtk.Button.new_from_stock(label) if use_stock \
else Gtk.Button.new_with_label(label)
b.set_use_underline(True)
Expand Down
4 changes: 2 additions & 2 deletions syncthing_gtk/uibuilder.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def disable_condition(self, *conds):
def condition_met(self, cond):
"""
Returns True if condition is met. Empty condition is True.
Spaces at begining or end of expressions are stripped.
Spaces at beginning or end of expressions are stripped.
Supports simple |, & and !
operators, but no parenthesis.
Expand Down Expand Up @@ -171,7 +171,7 @@ def _solve_if_element(self, element):
element.removeChild(elseem)
merge_with_parent(element, element)
else:
# Remove this element, but merge ELSE elemnets, if any
# Remove this element, but merge ELSE elements, if any
log.debug("Removed node %s", condition)
for elseem in getElementsByTagNameCI(element, "else"):
merge_with_parent(elseem, element)
Expand Down
2 changes: 1 addition & 1 deletion syncthing_gtk/windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def _store(self, r, name, tp, value):
if value > 0xFFFF:
raise ValueError("Overflow")
if value < 0:
# This basicaly prevents storing anything >0xFFFF to registry.
# This basically prevents storing anything >0xFFFF to registry.
# Luckily, that shouldn't be needed, largest thing stored as int is 20
value = 0xFFFF + (-value)
winreg.SetValueEx(r, name, 0, winreg.REG_DWORD, int(value))
Expand Down
4 changes: 2 additions & 2 deletions syncthing_gtk/wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def search(self):
'target' : target_folder_link
}
else:
# Binary was found, but it was too old to be ussable
# Binary was found, but it was too old to be usable
title = _("Syncthing daemon is too old.")
message += _("Syncthing-GTK needs Syncthing daemon %(min)s or newer, but only %(actual)s were found.") % {
'min' : MIN_ST_VERSION,
Expand Down Expand Up @@ -416,7 +416,7 @@ def cb_process_exit(self, process, *a):
_("Version:") + " " + self.version_string
)
else:
# Found daemon binary too old to be ussable.
# Found daemon binary too old to be usable.
# Just ignore it and try to find better one.
log.info("Binary in %s is too old", bin_path)
self.ignored_version = self.version_string
Expand Down

0 comments on commit 1ee00e0

Please sign in to comment.