Translation

This commit is contained in:
St.Huang 2018-08-19 23:37:30 +08:00
parent 9045f8c6df
commit 1a932d3a08
2 changed files with 8 additions and 8 deletions

View File

@ -54,11 +54,11 @@ class Yahoo_Dict(WebService):
def _css(self, val):
return val
@export(u'音标')
@export('PHON')
def fld_pinyin(self):
return self._get_field('phon')
@export(u'发音')
@export('PRON')
def fld_pron(self):
audio_url = self._get_field('audio_url')
if yahoo_download_mp3 and audio_url:
@ -68,14 +68,14 @@ class Yahoo_Dict(WebService):
return ''
@export(u'中文释义')
@export('DEF')
def fld_basic(self):
val = self._get_field('def')
if val is None or val == '':
return ''
return self._css(val)
@export(u'详细释义')
@export([u'详细释义', u'Detailed Interpretation'])
def fld_detail(self):
val = self._get_field('detail')
if val is None or val == '':

View File

@ -54,11 +54,11 @@ class Yahoo_Dict(WebService):
def _css(self, val):
return val
@export(u'音标')
@export('PHON')
def fld_pinyin(self):
return self._get_field('phon')
@export(u'发音')
@export('PRON')
def fld_pron(self):
audio_url = self._get_field('audio_url')
if yahoo_download_mp3 and audio_url:
@ -68,14 +68,14 @@ class Yahoo_Dict(WebService):
return ''
@export(u'中文释义')
@export('DEF')
def fld_basic(self):
val = self._get_field('def')
if val is None or val == '':
return ''
return self._css(val)
@export(u'详细释义')
@export([u'详细释义', u'Detailed Interpretation'])
def fld_detail(self):
val = self._get_field('detail')
if val is None or val == '':