Spellcheck all plugins

This commit is contained in:
Alexander Krotov
2018-06-29 01:05:33 +03:00
committed by Philipp Hörist
parent 6e430a3ee4
commit 5fc7a77526
15 changed files with 41 additions and 40 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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