from django.conf import settings
from django.utils.translation import ugettext_lazy as _

ALLOW_COMMENTS_DEFAULT = 1
ALLOW_COMMENTS_TRUE = 2
ALLOW_COMMENTS_FALSE = 3
ALLOW_COMMENTS_CHOICES = (
    (ALLOW_COMMENTS_DEFAULT, _(u"Default")),
    (ALLOW_COMMENTS_TRUE, _(u"Yes")),
    (ALLOW_COMMENTS_FALSE, _(u"No")),
)

LANGUAGE_CHOICES = [("0", _(u"Neutral"),)]
LANGUAGE_CHOICES.extend(settings.LANGUAGES)

LANGUAGES_DICT = []
for language in settings.LANGUAGES:
    LANGUAGES_DICT.append({
        "code": language[0],
        "name": language[1],
    })

LFC_LANGUAGE_IDS = [l[0] for l in settings.LANGUAGES]

COPY = 1
CUT = 2

ORDER_BY_CHOICES = (
    ("position", _(u"Position ascending")),
    ("-position", _(u"Position descending")),
    ("publication_date", _(u"Publication date ascending")),
    ("-publication_date", _(u"Publication date descending")),
)

IMAGE_SIZES = ((60, 60), (100, 100), (200, 200), (400, 400), (600, 600), (800, 800))
