diff --git a/src/application.py b/src/application.py index ec809646..c4950c4e 100644 --- a/src/application.py +++ b/src/application.py @@ -15,4 +15,5 @@ copyright = u"Copyright (C) 2013-2017, Manuel cortéz." description = unicode(name+" is an app designed to use Twitter simply and efficiently while using minimal system resources. This app provides access to most Twitter features.") translators = [u"Manuel Cortéz (English)", u"Mohammed Al Shara, Hatoun Felemban (Arabic)", u"Francisco Torres (Catalan)", u"Manuel cortéz (Spanish)", u"Sukil Etxenike Arizaleta (Basque)", u"Jani Kinnunen (finnish)", u"Rémy Ruiz (French)", u"Juan Buño (Galician)", u"Steffen Schultz (German)", u"Zvonimir Stanečić (Croatian)", u"Robert Osztolykan (Hungarian)", u"Christian Leo Mameli (Italian)", u"Riku (Japanese)", u"Paweł Masarczyk (Polish)", u"Odenilton Júnior Santos (Portuguese)", u"Florian Ionașcu, Nicușor Untilă (Romanian)", u"Natalia Hedlund, Valeria Kuznetsova (Russian)", u"Aleksandar Đurić (Serbian)", u"Burak Yüksek (Turkish)"] url = u"https://twblue.es" -report_bugs_url = "https://github.com/manuelcortez/twblue/issues" \ No newline at end of file +report_bugs_url = "https://github.com/manuelcortez/twblue/issues" +supported_languages = [] \ No newline at end of file diff --git a/src/controller/filters.py b/src/controller/filters.py deleted file mode 100644 index 28777e49..00000000 --- a/src/controller/filters.py +++ /dev/null @@ -1,7 +0,0 @@ -# -*- coding: utf-8 -*- -from wxUI.dialogs import filters - -class filterController(object): - def __init__(self): - self.dialog = filters.filterDialog() - self.dialog.get_response() \ No newline at end of file diff --git a/src/sessionmanager/session.py b/src/sessionmanager/session.py index 690b8cd0..964b560e 100644 --- a/src/sessionmanager/session.py +++ b/src/sessionmanager/session.py @@ -277,6 +277,11 @@ class Session(object): self.db["utc_offset"] = f["time_zone"]["utc_offset"] except KeyError: self.db["utc_offset"] = -time.timezone + # Get twitter's supported languages and save them in a global variable + #so we won't call to this method once per session. + if len(application.supported_languages) == 0: + application.supported_languages = self.twitter.twitter.get_supported_languages() + print application.supported_languages self.get_lists() self.get_muted_users() self.settings.write()