mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-30 14:59:34 +01:00
Update the languages we support to include Greek, Russian, and Dutch. Chinese
was changed to Chinese_simple and Chinese_traditional was added.
This commit is contained in:
parent
fdeae5c022
commit
9e4066fd95
@ -70,7 +70,8 @@ __where = [ re.compile(r'lang=..>([^<]*)</div'),
|
|||||||
]
|
]
|
||||||
|
|
||||||
__languages = { 'english' : 'en',
|
__languages = { 'english' : 'en',
|
||||||
'chinese' : 'zh',
|
'chinese_simple' : 'zh',
|
||||||
|
'chinese_traditional' : 'zt',
|
||||||
'french' : 'fr',
|
'french' : 'fr',
|
||||||
'german' : 'de',
|
'german' : 'de',
|
||||||
'italian' : 'it',
|
'italian' : 'it',
|
||||||
@ -78,6 +79,9 @@ __languages = { 'english' : 'en',
|
|||||||
'korean' : 'ko',
|
'korean' : 'ko',
|
||||||
'spanish' : 'es',
|
'spanish' : 'es',
|
||||||
'portuguese' : 'pt',
|
'portuguese' : 'pt',
|
||||||
|
'russian' : 'ru',
|
||||||
|
'greek' : 'el',
|
||||||
|
'dutch' : 'nl',
|
||||||
}
|
}
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
@ -67,14 +67,17 @@ conf.registerChannelValue(conf.supybot.plugins.Babelfish, 'languages',
|
|||||||
|
|
||||||
class Babelfish(callbacks.Privmsg):
|
class Babelfish(callbacks.Privmsg):
|
||||||
threaded = True
|
threaded = True
|
||||||
_abbrevs = utils.abbrev(imap(str.lower, babelfish.available_languages))
|
_abbrevs = utils.abbrev(map(str.lower, babelfish.available_languages))
|
||||||
_abbrevs['de'] = 'german'
|
_abbrevs['de'] = 'german'
|
||||||
_abbrevs['jp'] = 'japanese'
|
_abbrevs['jp'] = 'japanese'
|
||||||
_abbrevs['kr'] = 'korean'
|
_abbrevs['kr'] = 'korean'
|
||||||
_abbrevs['es'] = 'spanish'
|
_abbrevs['es'] = 'spanish'
|
||||||
_abbrevs['pt'] = 'portuguese'
|
_abbrevs['pt'] = 'portuguese'
|
||||||
_abbrevs['it'] = 'italian'
|
_abbrevs['it'] = 'italian'
|
||||||
_abbrevs['zh'] = 'chinese'
|
_abbrevs['zh'] = 'chinese_simple'
|
||||||
|
_abbrevs['zt'] = 'chinese_traditional'
|
||||||
|
_abbrevs['nl'] = 'dutch'
|
||||||
|
_abbrevs['el'] = 'greek'
|
||||||
for language in babelfish.available_languages:
|
for language in babelfish.available_languages:
|
||||||
_abbrevs[language] = language
|
_abbrevs[language] = language
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user