Merge pull request #56 from Clement-Jean/master

Translation of addons21 + translation according to lang.py
This commit is contained in:
sthoo 2018-09-18 14:36:14 +08:00 committed by GitHub
commit 7d2e14ab7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -39,13 +39,13 @@ class ICIBA(WebService):
# return resp # return resp
@ignore_exception @ignore_exception
@export([u'美式音标', u'American phonetic']) @export([u'美式音标', u'Phonetic symbols (US)'])
def fld_phonetic_us(self): def fld_phonetic_us(self):
seg = self._get_field('baesInfo') seg = self._get_field('baesInfo')
return '/' + seg['symbols'][0]['ph_am'] + '/' return '/' + seg['symbols'][0]['ph_am'] + '/'
@ignore_exception @ignore_exception
@export([u'英式音标', u'British phonetic']) @export([u'英式音标', u'Phonetic symbols (UK)'])
def fld_phonetic_uk(self): def fld_phonetic_uk(self):
seg = self._get_field('baesInfo') seg = self._get_field('baesInfo')
return '/' + seg['symbols'][0]['ph_en'] + '/' return '/' + seg['symbols'][0]['ph_en'] + '/'

View File

@ -39,13 +39,13 @@ class ICIBA(WebService):
# return resp # return resp
@ignore_exception @ignore_exception
@export([u'美式音标', u'American phonetic']) @export([u'美式音标', u'Phonetic symbols (US)'])
def fld_phonetic_us(self): def fld_phonetic_us(self):
seg = self._get_field('baesInfo') seg = self._get_field('baesInfo')
return '/' + seg['symbols'][0]['ph_am'] + '/' return '/' + seg['symbols'][0]['ph_am'] + '/'
@ignore_exception @ignore_exception
@export([u'英式音标', u'British phonetic']) @export([u'英式音标', u'Phonetic symbols (UK)'])
def fld_phonetic_uk(self): def fld_phonetic_uk(self):
seg = self._get_field('baesInfo') seg = self._get_field('baesInfo')
return '/' + seg['symbols'][0]['ph_en'] + '/' return '/' + seg['symbols'][0]['ph_en'] + '/'
@ -77,7 +77,7 @@ class ICIBA(WebService):
return audio_url return audio_url
@ignore_exception @ignore_exception
@export([u'释义', u'Translation']) @export([u'释义', u'Basic definition'])
def fld_definition(self): def fld_definition(self):
seg = self._get_field('baesInfo') seg = self._get_field('baesInfo')
parts = seg['symbols'][0]['parts'] parts = seg['symbols'][0]['parts']