Translator

class mnemosyne.libmnemosyne.translator.Translator(component_manager, **kwds)

Generic translation service for words and sentences. Not to be confused the GuiTranslator, which is for translating the user interface.

Note that a single component can handle multiple languages (e.g. Google TTS) and the language to be used will be determined through the language_id property of the card_type argument.

component_type = 'translator'
popup_menu_text = None
show_dialog(card_type, foreign_text)

Returns translated text to insert. The user can set the target language in the dialog.

translate(card_type, foreign_text, dest_language_id)

Returns translated text.

used_for = None