Migrate all document languages and use the 'terminology' language abbreviation. gh-issue #211

This commit is contained in:
Roberto Rosario
2015-07-18 03:56:09 -04:00
parent ea3756162b
commit 68e450a3c7
2 changed files with 27 additions and 1 deletions
+1 -1
View File
@@ -10,7 +10,7 @@ from smart_settings import Namespace
# TODO: Findout method to make languages names' translatable.
# YAML fails to serialize ugettext_lazy and ugettext is not allowed at this level
LANGUAGE_CHOICES = [(i.bibliographic, i.name) for i in list(pycountry.languages)]
LANGUAGE_CHOICES = [(i.terminology, i.name) for i in list(pycountry.languages)]
namespace = Namespace(name='documents', label=_('Documents'))
setting_storage_backend = namespace.add_setting(global_name='DOCUMENTS_STORAGE_BACKEND', default='storage.backends.filebasedstorage.FileBasedStorage')