To override the default list of 600+ languages add a configuration entry to your settings/local.py like so:
DOCUMENTS_LANGUAGE_CHOICES = [('eng', 'English'), ('deu', 'German')]
to make the list translatable import ugettext_lazy and enclose the language name with _():
from django.utils.translation import ugettext_lazy as _
DOCUMENTS_LANGUAGE_CHOICES = [('eng', _('English')), ('deu', _('German'))]
9 lines
273 B
Python
9 lines
273 B
Python
PICTURE_ERROR_SMALL = u'picture_error.png'
|
|
PICTURE_ERROR_MEDIUM = u'1297211435_error.png'
|
|
PICTURE_UNKNOWN_SMALL = u'1299549572_unknown2.png'
|
|
PICTURE_UNKNOWN_MEDIUM = u'1299549805_unknown.png'
|
|
|
|
DEFAULT_ZIP_FILENAME = u'document_bundle.zip'
|
|
|
|
DOCUMENT_IMAGE_TASK_TIMEOUT = 20
|