From 0b47c54d5e9128e22695d72105ca53c6dbff241e Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> Date: Sat, 18 Apr 2020 20:01:06 +0200 Subject: [PATCH] Fix typo s/entrys/entries/ --- gajim/common/logger.py | 4 ++-- gajim/gtk/css_config.py | 2 +- gajim/gtk/dataform.py | 2 +- gajim/gui_menu_builder.py | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gajim/common/logger.py b/gajim/common/logger.py index 232d41a0c2..c1a182a077 100644 --- a/gajim/common/logger.py +++ b/gajim/common/logger.py @@ -1490,7 +1490,7 @@ def _fill_muc_avatar_sha_cache(self): rows = self._con.execute(sql).fetchall() for row in rows: self._muc_avatar_sha_cache[row.jid] = row.avatar_sha - log.info('%s Avatar SHA entrys loaded', len(rows)) + log.info('%d Avatar SHA entries loaded', len(rows)) @timeit def set_avatar_sha(self, account_jid, jid, sha=None): @@ -1632,7 +1632,7 @@ def _fill_disco_info_cache(self): for row in rows: disco_info = row.disco_info._replace(timestamp=row.last_seen) self._disco_info_cache[row.jid] = disco_info - log.info('%s DiscoInfo entrys loaded', len(rows)) + log.info('%d DiscoInfo entries loaded', len(rows)) def get_last_disco_info(self, jid, max_age=0): """ diff --git a/gajim/gtk/css_config.py b/gajim/gtk/css_config.py index 37e72f9975..a2e238add4 100644 --- a/gajim/gtk/css_config.py +++ b/gajim/gtk/css_config.py @@ -52,7 +52,7 @@ def __init__(self): # gajim-dark.css - Has only entrys which we want to override in gajim.css + Has only entries which we want to override in gajim.css # default.css or default-dark.css diff --git a/gajim/gtk/dataform.py b/gajim/gtk/dataform.py index 1b2fc46c40..f30c9c3827 100644 --- a/gajim/gtk/dataform.py +++ b/gajim/gtk/dataform.py @@ -37,7 +37,7 @@ # hide-fallback-fields Hide fallback fields in IBR form (ejabberd) # left-width Width for labels # read-only Read only mode for fields -# entry-activates-default Form entrys activate the default widget +# entry-activates-default Form entry activates the default widget class DataFormWidget(Gtk.ScrolledWindow): diff --git a/gajim/gui_menu_builder.py b/gajim/gui_menu_builder.py index 6b6df7dfe3..54565352de 100644 --- a/gajim/gui_menu_builder.py +++ b/gajim/gui_menu_builder.py @@ -529,13 +529,13 @@ def get_singlechat_menu(control_id, account, jid): def build_chatstate_menu(): menu = Gio.Menu() - entrys = [ + entries = [ (_('Disabled'), 'disabled'), (_('Composing only'), 'composing_only'), (_('All chat states'), 'all') ] - for entry in entrys: + for entry in entries: label, setting = entry action = 'win.send-chatstate-%s::%s' % (control_id, setting) menu.append(label, action) @@ -646,13 +646,13 @@ def build_sync_menu(): def build_chatstate_menu(): menu = Gio.Menu() - entrys = [ + entries = [ (_('Disabled'), 'disabled'), (_('Composing only'), 'composing_only'), (_('All chat states'), 'all') ] - for entry in entrys: + for entry in entries: label, setting = entry action = 'win.send-chatstate-%s::%s' % (control_id, setting) menu.append(label, action) -- GitLab