Fix regression from refactoring

regression was introduced in e2383fd7a4
This commit is contained in:
Philipp Hörist 2018-05-02 22:37:45 +02:00
parent 497c710dd8
commit bb33e055a5
2 changed files with 4 additions and 3 deletions

View File

@ -47,6 +47,7 @@ from gajim.common import events
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 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
# 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()

View File

@ -562,7 +562,7 @@ class ConversationTextview(GObject.GObject):
% 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 @@ class ConversationTextview(GObject.GObject):
% 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: