Fix various spelling mistakes throughout the code

This commit is contained in:
Kim Alvefur 2019-03-09 15:36:32 +01:00 committed by Maxime “pep” Buquet
parent 1a5d0493da
commit a6e66cd50e
16 changed files with 18 additions and 18 deletions

View file

@ -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

View file

@ -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):

View file

@ -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

View file

@ -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 '

View file

@ -23,7 +23,7 @@ Add your own pattern
--------------------
You can easily edit this plugin to add your own patterns. For example if
dont want to search for an insult everytime youre angry, you can create a
dont want to search for an insult every time youre angry, you can create a
curse pattern this way:
- In the init(self) method of the Plugin class, add something like

View file

@ -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

View file

@ -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

View file

@ -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)

View file

@ -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]

View file

@ -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]

View file

@ -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.
"""

View file

@ -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]

View file

@ -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(

View file

@ -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):

View file

@ -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()

View file

@ -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