Update languages.
This commit is contained in:
parent
3329027e4b
commit
b0481a01f7
2 changed files with 8 additions and 5 deletions
|
@ -7,4 +7,7 @@ Languages = {
|
|||
'es': u'Spanish; Castilian',
|
||||
'fi': u'Finnish',
|
||||
'fr': u'French',
|
||||
'it': u'Italian',
|
||||
'ja': u'Japanese',
|
||||
'pt': u'Portuguese',
|
||||
}
|
||||
|
|
|
@ -11,9 +11,9 @@ import sys
|
|||
import codecs
|
||||
|
||||
basepath = os.path.dirname(os.path.dirname(__file__))
|
||||
sys.path.append(basepath)
|
||||
sys.path.insert(0, basepath)
|
||||
|
||||
from dosagelib.scraper import get_scraperclasses # noqa
|
||||
from dosagelib.scraper import get_scrapers # noqa
|
||||
|
||||
|
||||
def main():
|
||||
|
@ -30,10 +30,10 @@ def main():
|
|||
|
||||
def get_used_languages():
|
||||
lang = {}
|
||||
for scraperclass in get_scraperclasses():
|
||||
l = scraperclass.lang
|
||||
for scraperobj in get_scrapers():
|
||||
l = scraperobj.lang
|
||||
if l not in lang:
|
||||
lang[l] = scraperclass.language()
|
||||
lang[l] = scraperobj.language()
|
||||
return lang
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue