Skip to content
Snippets Groups Projects
Commit 5fc7a775 authored by Alexander Krotov's avatar Alexander Krotov Committed by Philipp Hörist
Browse files

Spellcheck all plugins

parent 6e430a3e
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,7 @@ First, thanks for that! Here is how to start:
**Before you put in any work, please contact us on [gajim@conference.gajim.org](xmpp:gajim@conference.gajim.org?join)**
**Dont use dev.gajim.org for any projects that are not directly for the benefit of Gajim**
**Don't use dev.gajim.org for any projects that are not directly for the benefit of Gajim**
## Plugins list
......
......@@ -2,7 +2,7 @@
"""
Appindicator integration plugin.
Rewriten from Ubuntu Ayatana Integration plugin
Rewritten from Ubuntu Ayatana Integration plugin
2013 Denis Borenko <borenko@rambler.ru>
2017 Philipp Hörist <philipp@hoerist.com>
:license: GPLv3
......
......@@ -112,7 +112,7 @@ class Base(object):
if event.type == Gdk.EventType.BUTTON_PRESS and event.button.button == 1:
# left mouse button clicked
begin_iter = iter_.copy()
# we get the begining of the tag
# we get the beginning of the tag
while not begin_iter.begins_tag(texttag):
begin_iter.backward_char()
end_iter = iter_.copy()
......
......@@ -208,7 +208,7 @@ class ClientsIconsPlugin(GajimPlugin):
client_name = _('Unknown')
caps_ = None
if caps:
# libpurple returns pidgin.im/ only, we have to look for ressource name
# libpurple returns pidgin.im/ only, we have to look for resource name
if 'pidgin.im/' in caps:
caps = 'libpurple'
for client in LIBPURPLE_CLIENTS:
......@@ -447,7 +447,7 @@ class ClientsIconsPlugin(GajimPlugin):
self.set_icon(roster.model, iter_, self.renderer_num, None, contact)
return
# higest contact changed
# highest contact changed
if roster.model[iter_][self.renderer_num] is not None:
caps = contact.client_caps._node
if caps:
......
......@@ -274,7 +274,7 @@ class Base(object):
if event.type == Gdk.EventType.BUTTON_PRESS and event.button.button == 3:
# show popup menu (right mouse button clicked)
begin_iter = iter_.copy()
# we get the begining of the tag
# we get the beginning of the tag
while not begin_iter.begins_tag(texttag):
begin_iter.backward_char()
end_iter = iter_.copy()
......@@ -290,27 +290,27 @@ class Base(object):
nick = self.juick_nick_re.search(word)
if post is None and nick is None:
return
childs = self.juick_link_menu.get_children()
children = self.juick_link_menu.get_children()
if post:
self.juick_post_full = app.interface.sharp_slash_re\
.search(word).group(0)
self.juick_post_uid = post.group(1)
for menuitem in range(7):
childs[menuitem].show()
children[menuitem].show()
for menuitem in range(7, 13):
childs[menuitem].hide()
children[menuitem].hide()
if nick:
self.juick_nick = nick.group(0)
for menuitem in range(7):
childs[menuitem].hide()
children[menuitem].hide()
for menuitem in range(7, 13):
childs[menuitem].show()
children[menuitem].show()
self.juick_link_menu.popup(None, None, None, None,
event.button.button, event.time)
if event.type == Gdk.EventType.BUTTON_PRESS and event.button.button == 1:
# insert message num or nick (left mouse button clicked)
begin_iter = iter_.copy()
# we get the begining of the tag
# we get the beginning of the tag
while not begin_iter.begins_tag(texttag):
begin_iter.backward_char()
end_iter = iter_.copy()
......
......@@ -3,7 +3,7 @@
<requires lib="gtk+" version="2.16"/>
<!-- interface-naming-policy toplevel-contextual -->
<object class="GtkTextBuffer" id="textbuffer1">
<property name="text">Plug-in decription should be displayed here. This text will be erased during PluginsWindow initialization.</property>
<property name="text">Plug-in description should be displayed here. This text will be erased during PluginsWindow initialization.</property>
</object>
<object class="GtkWindow" id="window1">
<child>
......
......@@ -96,7 +96,7 @@
- Query only the most recent PEP items
2.3.6 / 2017-08-21
- Adapt to Gaim beeing now a Package
- Adapt to Gaim being now a Package
2.3.5 / 2017-08-07
- Support 12bit IVs on httpupload files
......@@ -139,7 +139,7 @@
- Fix a bug when publishing devices
- Fix copying fingerprint
- Fix layout issue
- Dont handle type 'normal' messages
- Don't handle type 'normal' messages
2.0.1 / 2017-01-14
- Better XEP Compliance
......
......@@ -25,7 +25,7 @@ from cryptography.hazmat.primitives.ciphers import algorithms
from cryptography.hazmat.primitives.ciphers.modes import GCM
# On Windows we have to import a specific backend because the
# default_backend() mechanism doesnt work in Gajim for Windows.
# default_backend() mechanism doesn't work in Gajim for Windows.
# Its because of how Gajim is build with cx_freeze
if os.name == 'nt':
......
......@@ -33,7 +33,7 @@ class SQLDatabase():
c.execute("PRAGMA synchronous=NORMAL;")
c.execute("PRAGMA journal_mode;")
mode = c.fetchone()[0]
# WAL is a persistent DB mode, dont override it if user has set it
# WAL is a persistent DB mode, don't override it if user has set it
if mode != 'wal':
c.execute("PRAGMA journal_mode=MEMORY;")
self.dbConn.commit()
......@@ -93,7 +93,7 @@ class SQLDatabase():
""" Migrates the DB
"""
# Find all double entrys and delete them
# Find all double entries and delete them
if user_version(self.dbConn) < 2:
delete_dupes = """ DELETE FROM identities WHERE _id not in (
SELECT MIN(_id)
......
......@@ -287,8 +287,8 @@ class OMEMOConnection:
from_jid = self.omemo.store. \
getJidFromDevice(msg_dict['sid'])
if not from_jid:
log.error('%s => Cant decrypt GroupChat Message '
'from %s', self.account, msg.resource)
log.error("%s => Can't decrypt GroupChat Message "
"from %s", self.account, msg.resource)
msg.encrypted = 'drop'
return
self.groupchat[msg.jid][msg.resource] = from_jid
......@@ -301,7 +301,7 @@ class OMEMOConnection:
plaintext = self.gc_message[msg_dict['payload']]
del self.gc_message[msg_dict['payload']]
else:
log.error('%s => Cant decrypt own GroupChat Message',
log.error("%s => Can't decrypt own GroupChat Message",
self.account)
msg.encrypted = 'drop'
return
......@@ -497,9 +497,9 @@ class OMEMOConnection:
'namespace': NS_OMEMO})
event.msg_iq.addChild(node=eme_node)
# Add Message for devices that dont support OMEMO
support_msg = _('You received a message encrypted with ' \
'OMEMO but your client doesnt support OMEMO.')
# Add Message for devices that don't support OMEMO
support_msg = _("You received a message encrypted with " \
"OMEMO but your client doesn't support OMEMO.")
event.msg_iq.setBody(support_msg)
# Store Hint for MAM
......@@ -602,7 +602,7 @@ class OMEMOConnection:
self._handle_device_list_update(None, event.stanza)
# Dont propagate event further
# Don't propagate event further
return True
def _handle_device_list_update(self, conn, stanza, fetch_bundle=False):
......@@ -695,7 +695,7 @@ class OMEMOConnection:
self.account, stanza.getError())
def are_keys_missing(self, contact_jid):
""" Checks if devicekeys are missing and querys the
""" Checks if devicekeys are missing and queries the
bundles
Parameters
......
......@@ -41,10 +41,11 @@ from omemo.xmpp import DevicelistPEP
from omemo.gtk.key import KeyDialog
from omemo.gtk.config import OMEMOConfigDialog
CRYPTOGRAPHY_MISSING = 'You are missing Python3-Cryptography'
AXOLOTL_MISSING = 'You are missing Python3-Axolotl or use an outdated version'
PROTOBUF_MISSING = 'OMEMO cant import Google Protobuf, you can find help in ' \
'the GitHub Wiki'
PROTOBUF_MISSING = "OMEMO can't import Google Protobuf, you can find help in " \
"the GitHub Wiki"
ERROR_MSG = ''
......
......@@ -18,7 +18,7 @@
#
""" This module handles all the XMPP logic like creating different kind of
stanza nodes and geting data from stanzas.
stanza nodes and getting data from stanzas.
"""
import logging
......
......@@ -256,7 +256,7 @@ class OldPGPPlugin(GajimPlugin):
'namespace': nbxmpp.NS_ENCRYPTED})
obj.msg_iq.addChild(node=eme_node)
# Set xhtml to None so it doesnt get logged
# Set xhtml to None so it doesn't get logged
obj.xhtml = None
obj.encrypted = self.encryption_name
self.add_additional_data(obj.additional_data)
......
......@@ -428,7 +428,7 @@ class JingleWhiteboard(JingleContent):
self.session.connection.connection.send(message)
def send_items(self, items, rids):
# recieves dict items and a list of rids of items to send
# receives dict items and a list of rids of items to send
# TODO: is there a less clumsy way that doesn't involve passing
# whole list
self.send_whiteboard_node(items, rids)
......
......@@ -135,7 +135,7 @@ class Whiteboard(object):
self.item_data = None
# Will be {ID: {type:'element', data:[node, goocanvas]}, ID2: {}} instance
self.recieving = {}
self.receiving = {}
def on_tool_button_toggled(self, widget):
for btn in self.tool_buttons:
......@@ -289,25 +289,25 @@ class Whiteboard(object):
def recieve_element(self, element):
node = self.image.g.addChild(name=element.getAttr('name'))
self.image.g.addChild(node=node)
self.recieving[element.getAttr('rid')] = {'type':'element',
self.receiving[element.getAttr('rid')] = {'type':'element',
'data':[node],
'children':[]}
def recieve_attr(self, element):
node = self.recieving[element.getAttr('parent')]['data'][0]
node = self.receiving[element.getAttr('parent')]['data'][0]
node.setAttr(element.getAttr('name'), element.getAttr('chdata'))
self.recieving[element.getAttr('rid')] = {'type':'attr',
self.receiving[element.getAttr('rid')] = {'type':'attr',
'data':element.getAttr('name'),
'parent':node}
self.recieving[element.getAttr('parent')]['children'].append(element.getAttr('rid'))
self.receiving[element.getAttr('parent')]['children'].append(element.getAttr('rid'))
def apply_new(self):
for x in self.recieving.keys():
if self.recieving[x]['type'] == 'element':
self.image.add_recieved(x, self.recieving)
for x in self.receiving.keys():
if self.receiving[x]['type'] == 'element':
self.image.add_recieved(x, self.receiving)
self.recieving = {}
self.receiving = {}
class SVGObject():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment