How to fix the error of missing translations for any product?¶
If there are no translations for any product, you need to generate po-files, translate them, and then generate mo-files:
Go to the product directory where folder
locale
is located.Then we generate po-files for Russian language. To generate
django.po
we run the command:django-admin makemessages -d django -l ru
To generate
djangojs.po
we run the command:django-admin makemessages -d djangojs -l ru
Next, we translate po-files.
To generate mo-files for all po-files, run the command:
django-admin compilemessages
As result, we get files
*.mo
.