# -*- coding: UTF-8 -*-
# Copyright 2011-2019 Luc Saffre
# License: GNU Affero General Public License v3 (see file COPYING for details)


from django.utils.translation import gettext as _

from lino.utils.instantiator import Instantiator
from lino.api import dd
from lino_xl.lib.properties.choicelists import HowWell


def objects():
    ptype = Instantiator('properties.PropType').build
    properties = dd.resolve_app('properties')
    yield ptype(id=1, **dd.babel_values('name', **dict(
        en="Present or not",
        de=u"Vorhanden oder nicht",
        fr=u"Présent ou pas",
        et=u"Olemas või mitte",
        nl=u"Ja of niet",
    )))
    yield ptype(id=2,
                choicelist=HowWell.actor_id,
                default_value=HowWell.default.value,
                **dd.babel_values('name', **dict(
                    en="Rating",
                    de=u"Bewertung",
                    et=u"Hinnang",
                    fr=u"Appréciation(?)",
                    nl=u"Hoe goed",
                )))
