Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Amharic as a UI translation and change German language code #4419

Merged
merged 1 commit into from
Apr 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion kobo/settings/base.py
Expand Up @@ -484,9 +484,10 @@ def __init__(self, *args, **kwargs):
DJANGO_LANGUAGE_CODES = env.str(
'DJANGO_LANGUAGE_CODES',
default=(
'am ' # Amharic
'ar ' # Arabic
'cs ' # Czech
'de-DE ' # German
'de ' # German
'en ' # English
'es ' # Spanish
'fa ' # Persian/Farsi
Expand Down
6 changes: 6 additions & 0 deletions kobo/static_lists.py
Expand Up @@ -314,6 +314,12 @@
# information about the language here. This dictionary will be used to update
# `django.conf.locale.LANG_INFO`
EXTRA_LANG_INFO = {
'am': {
'bidi': False,
'code': 'am',
'name': 'Amharic',
'name_local': 'አማርኛ',
},
'ku': {
'bidi': True,
'code': 'ku',
Expand Down