Skip to content

Commit

Permalink
Add zh-hans language to modeltranslation
Browse files Browse the repository at this point in the history
  • Loading branch information
albertas-jn committed Dec 14, 2024
1 parent d713120 commit 57e0d48
Show file tree
Hide file tree
Showing 8 changed files with 4,247 additions and 19 deletions.
2 changes: 1 addition & 1 deletion backend/aml/base_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@

USE_TZ = True

MODELTRANSLATION_LANGUAGES = ('en', 'nl', 'pt')
MODELTRANSLATION_LANGUAGES = ('en', 'nl', 'pt','zh-hans')

# Increase django limits for large data sets
# A request timeout should be set in the webserver
Expand Down
1 change: 0 additions & 1 deletion backend/experiment/management/commands/bootstrap.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class Command(BaseCommand):

def handle(self, *args, **options):
create_default_questions()
management.call_command('update_translation_fields') # needed for django-modeltranslation migrations

if User.objects.count() == 0:
management.call_command("createsuperuser", "--no-input")
Expand Down
Binary file added backend/locale/zh-hans/LC_MESSAGES/django.mo
Binary file not shown.
Loading

0 comments on commit 57e0d48

Please sign in to comment.