Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gajim
gajim
Commits
bb33e055
Commit
bb33e055
authored
May 02, 2018
by
Philipp Hörist
Browse files
Fix regression from refactoring
regression was introduced in
e2383fd7
parent
497c710d
Changes
2
Hide whitespace changes
Inline
Side-by-side
gajim/chat_control_base.py
View file @
bb33e055
...
...
@@ -47,6 +47,7 @@
from
gajim.common
import
app
from
gajim.common
import
helpers
from
gajim.common
import
ged
from
gajim.common
import
i18n
from
gajim.message_control
import
MessageControl
from
gajim.conversation_textview
import
ConversationTextview
from
gajim.message_textview
import
MessageTextView
...
...
@@ -514,7 +515,7 @@ def get_speller_language(self):
# use the default one
lang
=
app
.
config
.
get
(
'speller_language'
)
if
not
lang
:
lang
=
app
.
LANG
lang
=
i18n
.
LANG
gspell_lang
=
Gspell
.
language_lookup
(
lang
)
if
gspell_lang
is
None
:
gspell_lang
=
Gspell
.
language_get_default
()
...
...
gajim/conversation_textview.py
View file @
bb33e055
...
...
@@ -562,7 +562,7 @@ def on_textview_populate_popup(self, textview, menu):
%
phrase_for_url
else
:
link
=
'http://%s.wikipedia.org/wiki/Special:Search?search=%s'
\
%
(
app
.
LANG
,
phrase_for_url
)
%
(
i18n
.
LANG
,
phrase_for_url
)
item
=
Gtk
.
MenuItem
.
new_with_mnemonic
(
_
(
'Read _Wikipedia Article'
))
id_
=
item
.
connect
(
'activate'
,
self
.
visit_url_from_menuitem
,
link
)
self
.
handlers
[
id_
]
=
item
...
...
@@ -578,7 +578,7 @@ def on_textview_populate_popup(self, textview, menu):
%
phrase_for_url
else
:
link
=
'http://%s.wiktionary.org/wiki/Special:Search?search=%s'
\
%
(
app
.
LANG
,
phrase_for_url
)
%
(
i18n
.
LANG
,
phrase_for_url
)
id_
=
item
.
connect
(
'activate'
,
self
.
visit_url_from_menuitem
,
link
)
self
.
handlers
[
id_
]
=
item
else
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment