Commit f661d691 authored by Michal Čihař's avatar Michal Čihař

Add missing docs

parent 48d00a15
......@@ -30,7 +30,7 @@ class DummyTranslation(MachineTranslation):
def download_languages(self):
'''
Dummy translation supports just Czech languages.
Dummy translation supports just Czech language.
'''
return set(('cs',))
......
......@@ -50,7 +50,7 @@ class MyMemoryTranslation(MachineTranslation):
def download_translations(self, language, text):
'''
Downloads and processes translations.
Downloads list of possible translations from a service.
'''
response = self.json_status_req(
'http://mymemory.translated.net/api/get',
......
......@@ -30,6 +30,9 @@ class OpenTranTranslation(MachineTranslation):
verbose = 'Open-Tran'
def download_languages(self):
'''
Downloads list of supported languages from a service.
'''
return self.json_req('http://open-tran.eu/json/supported')
def format_match(self, match):
......@@ -43,7 +46,7 @@ class OpenTranTranslation(MachineTranslation):
def download_translations(self, language, text):
'''
Downloads and processes translations.
Downloads list of possible translations from a service.
'''
response = self.json_req(
'http://en.%s.open-tran.eu/json/suggest/%s' % (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment