Fix various spelling mistakes throughout the code
This commit is contained in:
parent
1a5d0493da
commit
a6e66cd50e
16 changed files with 18 additions and 18 deletions
|
@ -656,7 +656,7 @@ or the way messages are displayed.
|
||||||
|
|
||||||
Some informational messages (error, a contact getting connected, etc)
|
Some informational messages (error, a contact getting connected, etc)
|
||||||
are sometimes added to the information buffer. These settings can make
|
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.
|
appear.
|
||||||
|
|
||||||
A list of message types that should make the information buffer grow
|
A list of message types that should make the information buffer grow
|
||||||
|
|
|
@ -128,7 +128,7 @@ class Plugin(BasePlugin):
|
||||||
if update:
|
if update:
|
||||||
self.api.information('Alias /%s updated' % alias, 'Info')
|
self.api.information('Alias /%s updated' % alias, 'Info')
|
||||||
else:
|
else:
|
||||||
self.api.information('Alias /%s successfuly created' % alias,
|
self.api.information('Alias /%s successfully created' % alias,
|
||||||
'Info')
|
'Info')
|
||||||
|
|
||||||
def command_unalias(self, alias):
|
def command_unalias(self, alias):
|
||||||
|
@ -139,7 +139,7 @@ class Plugin(BasePlugin):
|
||||||
del self.commands[alias]
|
del self.commands[alias]
|
||||||
self.api.del_command(alias)
|
self.api.del_command(alias)
|
||||||
self.config.remove(alias)
|
self.config.remove(alias)
|
||||||
self.api.information('Alias /%s successfuly deleted' % alias,
|
self.api.information('Alias /%s successfully deleted' % alias,
|
||||||
'Info')
|
'Info')
|
||||||
|
|
||||||
def completion_unalias(self, the_input):
|
def completion_unalias(self, the_input):
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
"""
|
"""
|
||||||
This plugin broadcasts a message to all your joined rooms.
|
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.
|
Use with moderation.
|
||||||
|
|
||||||
Command
|
Command
|
||||||
|
|
|
@ -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 '
|
OTR_ERROR = _('%(info)sReceived the following error from '
|
||||||
'%(jid_c)s%(jid)s%(info)s:\x19o %(err)s')
|
'%(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')
|
'%(exc)s')
|
||||||
|
|
||||||
TRUST_ADDED = _('%(info)sYou added %(jid_c)s%(bare_jid)s%(info)s with key '
|
TRUST_ADDED = _('%(info)sYou added %(jid_c)s%(bare_jid)s%(info)s with key '
|
||||||
|
|
|
@ -23,7 +23,7 @@ Add your own pattern
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
You can easily edit this plugin to add your own patterns. For example if
|
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:
|
curse pattern this way:
|
||||||
|
|
||||||
- In the init(self) method of the Plugin class, add something like
|
- In the init(self) method of the Plugin class, add something like
|
||||||
|
|
|
@ -117,7 +117,7 @@ class Plugin(BasePlugin):
|
||||||
self.do_notify(message, fro)
|
self.do_notify(message, fro)
|
||||||
|
|
||||||
def on_muc_msg(self, message, tab):
|
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:
|
if message['from'].resource == tab.own_nick:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
|
@ -394,7 +394,7 @@ def parse_secs_to_str(duration=0) -> str:
|
||||||
|
|
||||||
def format_tune_string(infos: Dict[str, str]) -> 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
|
:param dict infos: Tune information
|
||||||
:return: The formatted string
|
:return: The formatted string
|
||||||
|
|
|
@ -241,7 +241,7 @@ class Tab:
|
||||||
['/%s' % (name) for name in sorted(self.commands)]
|
['/%s' % (name) for name in sorted(self.commands)]
|
||||||
the_input.new_completion(words, 0)
|
the_input.new_completion(words, 0)
|
||||||
# Do not try to cycle command completion if there was only
|
# 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
|
# Otherwise we would need to add a useless space before being
|
||||||
# able to complete the arguments.
|
# able to complete the arguments.
|
||||||
hit_copy = set(the_input.hit_list)
|
hit_copy = set(the_input.hit_list)
|
||||||
|
|
|
@ -34,7 +34,7 @@ log = logging.getLogger(__name__)
|
||||||
|
|
||||||
class ConversationTab(OneToOneTab):
|
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.
|
Must not be instantiated, use Static or Dynamic version only.
|
||||||
"""
|
"""
|
||||||
plugin_commands = {} # type: Dict[str, Command]
|
plugin_commands = {} # type: Dict[str, Command]
|
||||||
|
|
|
@ -14,7 +14,7 @@ log = logging.getLogger(__name__)
|
||||||
|
|
||||||
class DataFormsTab(Tab):
|
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.
|
a form that the user needs to fill.
|
||||||
"""
|
"""
|
||||||
plugin_commands = {} # type: Dict[str, Command]
|
plugin_commands = {} # type: Dict[str, Command]
|
||||||
|
|
|
@ -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
|
sortable list. It should be inherited, to actually provide methods that
|
||||||
insert items in the list, and that lets the user interact with them.
|
insert items in the list, and that lets the user interact with them.
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -33,7 +33,7 @@ log = logging.getLogger(__name__)
|
||||||
|
|
||||||
class PrivateTab(OneToOneTab):
|
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_commands = {} # type: Dict[str, Command]
|
||||||
plugin_keys = {} # type: Dict[str, Callable]
|
plugin_keys = {} # type: Dict[str, Callable]
|
||||||
|
|
|
@ -44,7 +44,7 @@ def deny_anonymous(func: Callable) -> Callable:
|
||||||
|
|
||||||
class RosterInfoTab(Tab):
|
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_commands = {} # type: Dict[str, Command]
|
||||||
plugin_keys = {} # type: Dict[str, Callable]
|
plugin_keys = {} # type: Dict[str, Callable]
|
||||||
|
@ -88,7 +88,7 @@ class RosterInfoTab(Tab):
|
||||||
usage='[jid]',
|
usage='[jid]',
|
||||||
desc='Deny your presence to the provided JID (or the '
|
desc='Deny your presence to the provided JID (or the '
|
||||||
'selected contact in your roster), who is asking'
|
'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.',
|
shortdesc='Deny a user your presence.',
|
||||||
completion=self.completion_deny)
|
completion=self.completion_deny)
|
||||||
self.register_command(
|
self.register_command(
|
||||||
|
|
|
@ -272,7 +272,7 @@ class ListMultiWin(FieldInputMixin):
|
||||||
self._field.set_answer(values)
|
self._field.set_answer(values)
|
||||||
|
|
||||||
def get_help_message(self):
|
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):
|
class ListSingleWin(FieldInputMixin):
|
||||||
|
|
|
@ -52,7 +52,7 @@ def render_svg(svg: bytes) -> Optional[Image.Image]:
|
||||||
handle.render_cairo(context)
|
handle.render_cairo(context)
|
||||||
data = surface.get_data()
|
data = surface.get_data()
|
||||||
image = Image.frombytes('RGBA', (MAX_SIZE, MAX_SIZE), data.tobytes())
|
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
|
# format, and PIL an ABGR (in byte order) format. Yes, this is
|
||||||
# confusing.
|
# confusing.
|
||||||
b, g, r, a = image.split()
|
b, g, r, a = image.split()
|
||||||
|
|
|
@ -40,7 +40,7 @@ class ListWin(Win):
|
||||||
|
|
||||||
def empty(self) -> None:
|
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.lines = []
|
||||||
self._selected_row = 0
|
self._selected_row = 0
|
||||||
|
|
Loading…
Reference in a new issue