From df74239e85f1fce8005347419a12c88a7102ece1 Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Mon, 27 Oct 2014 04:46:31 -0400 Subject: [PATCH] Move language choices to the literals module --- mayan/apps/documents/literals.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mayan/apps/documents/literals.py b/mayan/apps/documents/literals.py index 9e1f2a2aef..b822089869 100644 --- a/mayan/apps/documents/literals.py +++ b/mayan/apps/documents/literals.py @@ -1,3 +1,5 @@ +import pycountry + PICTURE_ERROR_SMALL = u'picture_error.png' PICTURE_ERROR_MEDIUM = u'1297211435_error.png' PICTURE_UNKNOWN_SMALL = u'1299549572_unknown2.png' @@ -8,3 +10,6 @@ VERSION_UPDATE_MINOR = u'minor' VERSION_UPDATE_MICRO = u'micro' DEFAULT_ZIP_FILENAME = u'document_bundle.zip' + +LANGUAGE_CHOICES = [(i.bibliographic, i.name) for i in list(pycountry.languages)] +