MCPcopy
hub / github.com/skywind3000/ECDICT / get_translation

Method get_translation

dictutils.py:778–782  ·  view source on GitHub ↗
(self, data, plain = False)

Source from the content-addressed store, hash-verified

776 return self.define_html(definition, plain)
777
778 def get_translation (self, data, plain = False):
779 translation = data['translation']
780 if not translation:
781 return None
782 return self.define_html(translation, plain)
783
784 def get_phonetic (self, data):
785 phonetic = data['phonetic']

Callers 1

generate_backMethod · 0.95

Calls 1

define_htmlMethod · 0.95

Tested by

no test coverage detected