'Download a translation having `language_code` and containing `text_to_search`
Arguments:
language_code (str): language code
text_to_search (str): text to search in translation
Returns:
bool: whether download was successful'

def download_translation(self, language_code, text_to_search):

    mime_type = 'application/x-subrip'
    lang_code = '/{}?'.format(language_code)
    link = [link for link in self.q(css='.download-action').attrs('href') if (lang_code in link)]
    (result, headers, content) = self._get_transcript(link[0])
    return ((result is True) and (mime_type in headers['content-type']) and (text_to_search in content.decode('utf-8')))
