Hi there, if I want to change translation in file
/edx/app/edxapp/edx-platform/conf/locale/ru/LC_MESSAGES/django.po
.
How I can see updates in site?
If I am not mistaken, this particular file (django.po) is automatically created from the other .po files that are noted in your config.yaml file here:
/edx/app/edxapp/edx-platform/conf/locale/config.yaml
If you want to make changes locally and not in Transifex, you must make the appropriate translations to the .po files (probably ‘django-partial.po’ and ‘django-studio.po’ or ‘djangojs-partial.po’, ‘djangojs-studio.po’ ) that are mentioned in the config.yaml (as “edxapp” user) and after that, you must go to the following directory:
/edx/app/edxapp/edx-platform
and run first the following:
paver i18n_extract
And then:
paver i18n_generate
After that if there is no error the translations will be applied to your platform.
Just don’t forget before running the above commands to load the edxapp user’s virtual environment by running this:
source /edx/app/edxapp/edxapp_env
You can find all these information and much more here:
https://github.com/edx/edx-platform/wiki/Internationalization-and-localization
In the above link you can also find information about making the translation changes to Transifex and then downloading them to your platform.
hi @Chack
run below lines to create .mo file from .po file
python manage.py lms compilemessages
python manage.py cms compilemessages
then run restart
sudo /edx/bin/supervisorctl restart lms
sudo /edx/bin/supervisorctl restart cms