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',
|
'es': u'Spanish; Castilian',
|
||||||
'fi': u'Finnish',
|
'fi': u'Finnish',
|
||||||
'fr': u'French',
|
'fr': u'French',
|
||||||
|
'it': u'Italian',
|
||||||
|
'ja': u'Japanese',
|
||||||
|
'pt': u'Portuguese',
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,9 +11,9 @@ import sys
|
||||||
import codecs
|
import codecs
|
||||||
|
|
||||||
basepath = os.path.dirname(os.path.dirname(__file__))
|
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():
|
def main():
|
||||||
|
@ -30,10 +30,10 @@ def main():
|
||||||
|
|
||||||
def get_used_languages():
|
def get_used_languages():
|
||||||
lang = {}
|
lang = {}
|
||||||
for scraperclass in get_scraperclasses():
|
for scraperobj in get_scrapers():
|
||||||
l = scraperclass.lang
|
l = scraperobj.lang
|
||||||
if l not in lang:
|
if l not in lang:
|
||||||
lang[l] = scraperclass.language()
|
lang[l] = scraperobj.language()
|
||||||
return lang
|
return lang
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue