Skip to content

Commit

Permalink
Fix generation of JS translations by dropping old locale folder
Browse files Browse the repository at this point in the history
  • Loading branch information
hansegucker committed Nov 20, 2023
1 parent 431077a commit f905658
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
4 changes: 4 additions & 0 deletions evap/development/management/commands/translate.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ class Command(BaseCommand):
def handle(self, *args, **options):
self.stdout.write('Executing "manage.py makemessages --locale=de --ignore=node_modules/*"')
call_command("makemessages", "--locale=de", "--ignore=node_modules/*")
self.stdout.write(
'Executing ""makemessages --domain=djangojs --extension=js,ts "'
'"--locale=de --ignore=node_modules/* --ignore=evap/static/js/*.min.js",'
)
call_command(
"makemessages",
"--domain=djangojs",
Expand Down
2 changes: 1 addition & 1 deletion evap/evaluation/templates/bootstrap_datetimepicker.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
{% get_current_language as LANGUAGE_CODE %}

<script type="text/javascript" src="{% static 'js/moment.min.js' %}"></script>
<script type="text/javascript" src="{% static 'js/locale/moment_de.js' %}"></script>
<script type="text/javascript" src="{% static 'js/moment_de.js' %}"></script>
<script type="text/javascript" src="{% static 'js/bootstrap-datetimepicker.min.js' %}"></script>

<script type="text/javascript">
Expand Down
2 changes: 1 addition & 1 deletion evap/locale/de/LC_MESSAGES/djangojs.po
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ msgid ""
msgstr ""
"Project-Id-Version: EvaP\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-10-30 17:26+0100\n"
"POT-Creation-Date: 2023-11-20 21:26+0100\n"
"PO-Revision-Date: 2023-10-30 17:26+0100\n"
"Last-Translator: Johannes Wolf <[email protected]>\n"
"Language-Team: Johannes Wolf (janno42)\n"
Expand Down
1 change: 1 addition & 0 deletions evap/static/js/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
*.js
!*.min.js
!sortable_form.js
!moment_de.js
3 changes: 0 additions & 3 deletions evap/static/js/locale/select2_de.js

This file was deleted.

3 changes: 0 additions & 3 deletions evap/static/js/locale/select2_en.js

This file was deleted.

File renamed without changes.

0 comments on commit f905658

Please sign in to comment.