Skip to navigation
How to create a Django po file from my language strings what can be found in the templates
05.04.24
## find translation string in the template ```console django-admin makemessages -l de django-admin makemessages -l th django-admin makemessages -l en django-admin makemessages -l es ## find translation string in javascript files ```console django-admin makemessages -d djangojs -l de django-admin makemessages -d djangojs -l th django-admin makemessages -d djangojs -l en django-admin makemessages -d djangojs -l es ``` ## after you can compile the po files to mo files ```console django-admin compilemessages ``` ## i could find my translation under ```console /locale/ . ├── de │ └── LC_MESSAGES │ ├── django.mo │ └── django.po ├── en │ └── LC_MESSAGES │ ├── django.mo │ └── django.po ├── es │ └── LC_MESSAGES │ ├── django.mo │ └── django.po └── th └── LC_MESSAGES ├── django.mo └── django.po ```
https://localizely.com/blog/django-i18n-tutorial/
Reply
Anonymous
Information Epoch 1731276729
Small is beautiful.
Home
Notebook
Contact us