1#
2# language.py <Peter.Bienstman@UGent.be>
3#
4
5from mnemosyne.libmnemosyne.component import Component
6
7
8class Language(Component):
9
10    """Interface class describing the functions to be implemented by the
11    actual language classes.
12
13    Contains all language-specific calls related to parsing, stemming,
14    dictionary lookup, text-to-speech, ... .
15
16    The link between languages and card types is stored in config.db, so that
17    it easily fits with the syncing logic and also works for built-in uncloned
18    card types.
19
20    """
21
22    component_type = "language"
23    name = None
24    used_for = None  # ISO 639-1 code
25    sublanguages = {} # {"en_GB": "English (UK)", "en_US": "English (US")}.
26    feature_description = None
27