Lines 265-284
Link Here
|
265 |
HAVE_IDLE = False |
265 |
HAVE_IDLE = False |
266 |
|
266 |
|
267 |
HAVE_SPELL = False |
267 |
HAVE_SPELL = False |
268 |
try: |
|
|
269 |
spell_log = logging.getLogger('gajim.speller') |
270 |
gi.require_version('Gspell', '1') |
271 |
from gi.repository import Gspell |
272 |
langs = Gspell.language_get_available() |
273 |
for lang in langs: |
274 |
spell_log.info('%s (%s) dict available', |
275 |
lang.get_name(), lang.get_code()) |
276 |
if langs: |
277 |
HAVE_SPELL = True |
278 |
else: |
279 |
spell_log.info('No dicts available') |
280 |
except (ImportError, ValueError): |
281 |
pass |
282 |
|
268 |
|
283 |
gajim_identity = {'type': 'pc', 'category': 'client', 'name': 'Gajim'} |
269 |
gajim_identity = {'type': 'pc', 'category': 'client', 'name': 'Gajim'} |
284 |
gajim_common_features = [nbxmpp.NS_BYTESTREAM, nbxmpp.NS_SI, nbxmpp.NS_FILE, |
270 |
gajim_common_features = [nbxmpp.NS_BYTESTREAM, nbxmpp.NS_SI, nbxmpp.NS_FILE, |