Add Arabic and Vietnamese to the list of supported languages
This commit is contained in:
@@ -10,7 +10,7 @@ APP_LIST = ('acls', 'checkouts', 'common', 'converter', 'django_gpg', 'documents
|
||||
'folders', 'history', 'installation', 'linking', 'main', 'metadata', 'navigation',
|
||||
'ocr', 'permissions', 'project_setup', 'project_tools', 'scheduler', 'smart_settings',
|
||||
'sources', 'tags', 'user_management', 'web_theme', 'bootstrap', 'registration')
|
||||
LANGUAGE_LIST = ('bg', 'de_DE', 'en', 'es', 'fr', 'it', 'nl_NL', 'pl', 'pt', 'pt_BR', 'ru')
|
||||
LANGUAGE_LIST = ('ar', 'bg', 'de_DE', 'en', 'es', 'fr', 'it', 'nl_NL', 'pl', 'pt', 'pt_BR', 'ru', 'vi_VN')
|
||||
|
||||
makemessages = pbs.Command('django-admin.py')
|
||||
makemessages = makemessages.bake('makemessages')
|
||||
@@ -20,7 +20,7 @@ compilemessages = compilemessages.bake('compilemessages')
|
||||
|
||||
if hasattr(sys, 'real_prefix'):
|
||||
# We are inside a virtual env
|
||||
BASE_DIR = os.path.join(os.environ['VIRTUAL_ENV'], 'mayan')
|
||||
BASE_DIR = os.path.join(os.environ['VIRTUAL_ENV'], '..')
|
||||
else:
|
||||
BASE_DIR = os.getcwd()
|
||||
|
||||
|
||||
14
settings.py
14
settings.py
@@ -52,17 +52,19 @@ TIME_ZONE = 'America/Puerto_Rico'
|
||||
LANGUAGE_CODE = 'en'
|
||||
|
||||
LANGUAGES = (
|
||||
('ar', ugettext('Arabic')),
|
||||
('bg', ugettext('Bulgarian')),
|
||||
('de', ugettext('German (Germany)')),
|
||||
('en', ugettext('English')),
|
||||
('es', ugettext('Spanish')),
|
||||
('fr', ugettext('French')),
|
||||
('it', ugettext('Italian')),
|
||||
('nl', ugettext('Dutch')),
|
||||
('pl', ugettext('Polish')),
|
||||
('pt', ugettext('Portuguese')),
|
||||
('pt-br', ugettext('Portuguese (Brazil)')),
|
||||
('ru', ugettext('Russian')),
|
||||
('it', ugettext('Italian')),
|
||||
('pl', ugettext('Polish')),
|
||||
('de', ugettext('German (Germany)')),
|
||||
('fr', ugettext('French')),
|
||||
('bg', ugettext('Bulgarian')),
|
||||
('nl', ugettext('Dutch')),
|
||||
('vi', ugettext('Vietnamese (Viet Nam)')),
|
||||
)
|
||||
|
||||
SITE_ID = 1
|
||||
|
||||
Reference in New Issue
Block a user