temporary fix for javascript translation

This commit is contained in:
vabene1111 2020-12-30 17:00:38 +01:00
parent f69d7898d5
commit 7d1f47edc5
2 changed files with 4 additions and 1 deletions

View File

@ -1,2 +1,3 @@
CALL venv\Scripts\activate.bat
python manage.py makemessages -i venv -l de -l nl -l rn -l fr -l tr -l pt -l en -l it -l ca -l es -l zh_CN -l hu_HU
python manage.py makemessages -i venv -a
python manage.py makemessages -i venv -a -l de -d djangojs

View File

@ -18,6 +18,7 @@ from django.conf.urls import url
from django.conf.urls.static import static
from django.urls import include, path
from django.contrib import admin
from django.views.i18n import JavaScriptCatalog
from django.views.static import serve
urlpatterns = [
@ -25,6 +26,7 @@ urlpatterns = [
path('admin/', admin.site.urls),
path('accounts/', include('django.contrib.auth.urls')),
path('i18n/', include('django.conf.urls.i18n')),
path('jsi18n/', JavaScriptCatalog.as_view(domain='django'), name='javascript-catalog'),
]
if settings.GUNICORN_MEDIA or settings.DEBUG: