From 1a932d3a087372eeb8c07a9adb46bdd29a540e6e Mon Sep 17 00:00:00 2001 From: "St.Huang" Date: Sun, 19 Aug 2018 23:37:30 +0800 Subject: [PATCH] Translation --- addons/fastwq/service/dict/yahoo.py | 8 ++++---- addons21/fastwq/service/dict/yahoo.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/addons/fastwq/service/dict/yahoo.py b/addons/fastwq/service/dict/yahoo.py index 99c159d..01f9ebb 100644 --- a/addons/fastwq/service/dict/yahoo.py +++ b/addons/fastwq/service/dict/yahoo.py @@ -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 == '': diff --git a/addons21/fastwq/service/dict/yahoo.py b/addons21/fastwq/service/dict/yahoo.py index 0b51b73..d45dbc7 100644 --- a/addons21/fastwq/service/dict/yahoo.py +++ b/addons21/fastwq/service/dict/yahoo.py @@ -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 == '':