Change depending on lang.py

This commit is contained in:
Clement-Jean 2018-09-18 14:31:49 +08:00
parent cccb1f818e
commit 70434e26c4
2 changed files with 5 additions and 5 deletions

View File

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

View File

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