Hide keyboard shortcuts

Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

# Copyright 2008-2015 Luc Saffre 

# License: BSD (see file COPYING for details) 

 

"""Defines a list of languages (the :class:`Language 

<lino.modlib.langguages.models.Language>` model). 

 

It is used by :mod:`lino_xl.lib.cv`, whose :class:`LanguageKnowledge 

<lino_xl.lib.cv.models.LanguageKnowledge>` and :class:`Schooling 

<lino_xl.lib.cv.models.Schooling>` models have a `language` field 

which points to this the :class:`Language 

<lino.modlib.langguages.models.Language>` model. 

 

Note that this has nothing to do with the list of languages in your 

:attr:`languages <lino.core.site.Site.languages>` setting. 

 

 

.. autosummary:: 

   :toctree: 

 

    models 

    fixtures.few_languages 

    fixtures.all_languages 

 

""" 

from lino import ad, _ 

 

 

class Plugin(ad.Plugin): 

    "See :doc:`/dev/plugins`." 

 

    verbose_name = _("Boards") 

 

    def setup_config_menu(self, site, profile, m): 

        p = self.get_menu_group() 

        m = m.add_menu(p.app_label, p.verbose_name) 

        m.add_action('languages.Languages')