summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-03-09 15:36:32 +0100
committerMaxime “pep” Buquet <pep@bouah.net>2019-03-19 17:50:58 +0000
commita6e66cd50ef64c0f2bf6fe154edcc652a66e9a46 (patch)
treeaeb07df2812590e8e63c2641360c58433f796e94
parent1a5d0493da157ec5ac32a4cf1297f592b599fdd8 (diff)
downloadpoezio-a6e66cd50ef64c0f2bf6fe154edcc652a66e9a46.tar.gz
poezio-a6e66cd50ef64c0f2bf6fe154edcc652a66e9a46.tar.bz2
poezio-a6e66cd50ef64c0f2bf6fe154edcc652a66e9a46.tar.xz
poezio-a6e66cd50ef64c0f2bf6fe154edcc652a66e9a46.zip
Fix various spelling mistakes throughout the code
-rw-r--r--doc/source/configuration.rst2
-rw-r--r--plugins/alias.py4
-rw-r--r--plugins/amsg.py2
-rw-r--r--plugins/otr.py2
-rw-r--r--plugins/replace.py2
-rw-r--r--plugins/simple_notify.py2
-rw-r--r--poezio/common.py2
-rw-r--r--poezio/tabs/basetabs.py2
-rw-r--r--poezio/tabs/conversationtab.py2
-rw-r--r--poezio/tabs/data_forms.py2
-rw-r--r--poezio/tabs/listtab.py2
-rw-r--r--poezio/tabs/privatetab.py2
-rw-r--r--poezio/tabs/rostertab.py4
-rw-r--r--poezio/windows/data_forms.py2
-rw-r--r--poezio/windows/image.py2
-rw-r--r--poezio/windows/list.py2
16 files changed, 18 insertions, 18 deletions
diff --git a/doc/source/configuration.rst b/doc/source/configuration.rst
index 3a5f2ef9..e394ee03 100644
--- a/doc/source/configuration.rst
+++ b/doc/source/configuration.rst
@@ -656,7 +656,7 @@ or the way messages are displayed.
Some informational messages (error, a contact getting connected, etc)
are sometimes added to the information buffer. These settings can make
- that buffer grow temporarly so you can read these information when they
+ that buffer grow temporarily so you can read these information when they
appear.
A list of message types that should make the information buffer grow
diff --git a/plugins/alias.py b/plugins/alias.py
index a10beb7c..459ce02c 100644
--- a/plugins/alias.py
+++ b/plugins/alias.py
@@ -128,7 +128,7 @@ class Plugin(BasePlugin):
if update:
self.api.information('Alias /%s updated' % alias, 'Info')
else:
- self.api.information('Alias /%s successfuly created' % alias,
+ self.api.information('Alias /%s successfully created' % alias,
'Info')
def command_unalias(self, alias):
@@ -139,7 +139,7 @@ class Plugin(BasePlugin):
del self.commands[alias]
self.api.del_command(alias)
self.config.remove(alias)
- self.api.information('Alias /%s successfuly deleted' % alias,
+ self.api.information('Alias /%s successfully deleted' % alias,
'Info')
def completion_unalias(self, the_input):
diff --git a/plugins/amsg.py b/plugins/amsg.py
index b8ac4e26..4cd6c055 100644
--- a/plugins/amsg.py
+++ b/plugins/amsg.py
@@ -1,7 +1,7 @@
"""
This plugin broadcasts a message to all your joined rooms.
-.. note:: With great power comes great responsability.
+.. note:: With great power comes great responsibility.
Use with moderation.
Command
diff --git a/plugins/otr.py b/plugins/otr.py
index 9c80f390..909a4ea5 100644
--- a/plugins/otr.py
+++ b/plugins/otr.py
@@ -306,7 +306,7 @@ MESSAGE_INVALID = _('%(info)sThe message from %(jid_c)s%(jid)s%(info)s'
OTR_ERROR = _('%(info)sReceived the following error from '
'%(jid_c)s%(jid)s%(info)s:\x19o %(err)s')
-POTR_ERROR = _('%(info)sAn unspecified error in the OTR plugin occured:\n'
+POTR_ERROR = _('%(info)sAn unspecified error in the OTR plugin occurred:\n'
'%(exc)s')
TRUST_ADDED = _('%(info)sYou added %(jid_c)s%(bare_jid)s%(info)s with key '
diff --git a/plugins/replace.py b/plugins/replace.py
index 3202721c..7e259dab 100644
--- a/plugins/replace.py
+++ b/plugins/replace.py
@@ -23,7 +23,7 @@ Add your own pattern
--------------------
You can easily edit this plugin to add your own patterns. For example if
-don’t want to search for an insult everytime you’re angry, you can create a
+don’t want to search for an insult every time you’re angry, you can create a
curse pattern this way:
- In the init(self) method of the Plugin class, add something like
diff --git a/plugins/simple_notify.py b/plugins/simple_notify.py
index cfb65e9b..f4dfd2d2 100644
--- a/plugins/simple_notify.py
+++ b/plugins/simple_notify.py
@@ -117,7 +117,7 @@ class Plugin(BasePlugin):
self.do_notify(message, fro)
def on_muc_msg(self, message, tab):
- # Dont notify if message is from yourself
+ # Don't notify if message is from yourself
if message['from'].resource == tab.own_nick:
return
diff --git a/poezio/common.py b/poezio/common.py
index 3a865054..a39f8145 100644
--- a/poezio/common.py
+++ b/poezio/common.py
@@ -394,7 +394,7 @@ def parse_secs_to_str(duration=0) -> str:
def format_tune_string(infos: Dict[str, str]) -> str:
"""
- Contruct a string from a dict created from an "User tune" event.
+ Construct a string from a dict created from an "User tune" event.
:param dict infos: Tune information
:return: The formatted string
diff --git a/poezio/tabs/basetabs.py b/poezio/tabs/basetabs.py
index 330b9913..213f39d7 100644
--- a/poezio/tabs/basetabs.py
+++ b/poezio/tabs/basetabs.py
@@ -241,7 +241,7 @@ class Tab:
['/%s' % (name) for name in sorted(self.commands)]
the_input.new_completion(words, 0)
# Do not try to cycle command completion if there was only
- # one possibily. The next tab will complete the argument.
+ # one possibility. The next tab will complete the argument.
# Otherwise we would need to add a useless space before being
# able to complete the arguments.
hit_copy = set(the_input.hit_list)
diff --git a/poezio/tabs/conversationtab.py b/poezio/tabs/conversationtab.py
index 94f1d719..05ca06c0 100644
--- a/poezio/tabs/conversationtab.py
+++ b/poezio/tabs/conversationtab.py
@@ -34,7 +34,7 @@ log = logging.getLogger(__name__)
class ConversationTab(OneToOneTab):
"""
- The tab containg a normal conversation (not from a MUC)
+ The tab containing a normal conversation (not from a MUC)
Must not be instantiated, use Static or Dynamic version only.
"""
plugin_commands = {} # type: Dict[str, Command]
diff --git a/poezio/tabs/data_forms.py b/poezio/tabs/data_forms.py
index 496863bc..f4ed63e5 100644
--- a/poezio/tabs/data_forms.py
+++ b/poezio/tabs/data_forms.py
@@ -14,7 +14,7 @@ log = logging.getLogger(__name__)
class DataFormsTab(Tab):
"""
- A tab contaning various window type, displaying
+ A tab containing various window type, displaying
a form that the user needs to fill.
"""
plugin_commands = {} # type: Dict[str, Command]
diff --git a/poezio/tabs/listtab.py b/poezio/tabs/listtab.py
index 07b3fe05..87e7d9f4 100644
--- a/poezio/tabs/listtab.py
+++ b/poezio/tabs/listtab.py
@@ -1,5 +1,5 @@
"""
-A generic tab that displays a serie of items in a scrollable, searchable,
+A generic tab that displays a series of items in a scrollable, searchable,
sortable list. It should be inherited, to actually provide methods that
insert items in the list, and that lets the user interact with them.
"""
diff --git a/poezio/tabs/privatetab.py b/poezio/tabs/privatetab.py
index 35e5feaa..32b39aea 100644
--- a/poezio/tabs/privatetab.py
+++ b/poezio/tabs/privatetab.py
@@ -33,7 +33,7 @@ log = logging.getLogger(__name__)
class PrivateTab(OneToOneTab):
"""
- The tab containg a private conversation (someone from a MUC)
+ The tab containing a private conversation (someone from a MUC)
"""
plugin_commands = {} # type: Dict[str, Command]
plugin_keys = {} # type: Dict[str, Callable]
diff --git a/poezio/tabs/rostertab.py b/poezio/tabs/rostertab.py
index 768963af..86db06a0 100644
--- a/poezio/tabs/rostertab.py
+++ b/poezio/tabs/rostertab.py
@@ -44,7 +44,7 @@ def deny_anonymous(func: Callable) -> Callable:
class RosterInfoTab(Tab):
"""
- A tab, splitted in two, containing the roster and infos
+ A tab, split in two, containing the roster and infos
"""
plugin_commands = {} # type: Dict[str, Command]
plugin_keys = {} # type: Dict[str, Callable]
@@ -88,7 +88,7 @@ class RosterInfoTab(Tab):
usage='[jid]',
desc='Deny your presence to the provided JID (or the '
'selected contact in your roster), who is asking'
- 'you to be in his/here roster.',
+ 'you to be in his/her roster.',
shortdesc='Deny a user your presence.',
completion=self.completion_deny)
self.register_command(
diff --git a/poezio/windows/data_forms.py b/poezio/windows/data_forms.py
index 3ec44b97..7e746774 100644
--- a/poezio/windows/data_forms.py
+++ b/poezio/windows/data_forms.py
@@ -272,7 +272,7 @@ class ListMultiWin(FieldInputMixin):
self._field.set_answer(values)
def get_help_message(self):
- return '←, →: Switch between the value. Space: select or unselect a value'
+ return '←, →: Switch between the value. Space: select or deselect a value'
class ListSingleWin(FieldInputMixin):
diff --git a/poezio/windows/image.py b/poezio/windows/image.py
index 96636ec7..dfd2eae2 100644
--- a/poezio/windows/image.py
+++ b/poezio/windows/image.py
@@ -52,7 +52,7 @@ def render_svg(svg: bytes) -> Optional[Image.Image]:
handle.render_cairo(context)
data = surface.get_data()
image = Image.frombytes('RGBA', (MAX_SIZE, MAX_SIZE), data.tobytes())
- # This is required because Cairo uses a BGRA (in host endianess)
+ # This is required because Cairo uses a BGRA (in host endianness)
# format, and PIL an ABGR (in byte order) format. Yes, this is
# confusing.
b, g, r, a = image.split()
diff --git a/poezio/windows/list.py b/poezio/windows/list.py
index 350255c6..c427a79e 100644
--- a/poezio/windows/list.py
+++ b/poezio/windows/list.py
@@ -40,7 +40,7 @@ class ListWin(Win):
def empty(self) -> None:
"""
- emtpy the list and reset some important values as well
+ empty the list and reset some important values as well
"""
self.lines = []
self._selected_row = 0