Language localization problem

55 views
Skip to first unread message

kos giannop

unread,
Nov 19, 2018, 10:10:19 AM11/19/18
to General Open edX discussion
Why I need to edit manually the /edx/app/edxapp/edx-platform/lms/static/js/i18n/el/djangojs.js
Since I already have the next files translated?
/edx/app/edxapp/edx-platform/conf/locale/el/LC_MESSAGES/django.po
/edx/app/edxapp/edx-platform/conf/locale/el/LC_MESSAGES/django.mo
/edx/app/edxapp/edx-platform/conf/locale/el/LC_MESSAGES/djangojs.po
/edx/app/edxapp/edx-platform/conf/locale/el/LC_MESSAGES/djangojs.mo

How can I embed the djangojs.mo instead of having to manually translate the /edx/app/edxapp/edx-platform/lms/static/js/i18n/el/djangojs.js ?

Lupus Furyo

unread,
Nov 19, 2018, 4:53:47 PM11/19/18
to edx-...@googlegroups.com
Hai, as suggested in the official documentation, to compile the java script assets you need to use the last two commands. did you run them for your Greek translations?

Compile assets manually

To compile javascript and css outside of the update script run the following commands:

  • sudo -H -u edxapp bash
  • source /edx/app/edxapp/edxapp_env
  • cd /edx/app/edxapp/edx-platform
  • paver update_assets cms --settings=aws
  • paver update_assets lms --settings=aws

Suggest issuing the following to debug issues with r.js optimizer issues

  • python manage.py cms --settings=aws collectstatic --noinput
  • python manage.py lms --settings=aws collectstatic --noinput

--
You received this message because you are subscribed to the Google Groups "General Open edX discussion" group.
To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/46ed3f14-e720-4d4e-aa33-20f443cffa8a%40googlegroups.com.

Lupus Furyo

unread,
Nov 19, 2018, 4:55:55 PM11/19/18
to edx-...@googlegroups.com
P.S. sorry, I meant these two commands
python manage.py cms compilejsi18n --settings=aws
python manage.py lms compilejsi18n --settings=aws

kos giannop

unread,
Nov 20, 2018, 3:12:18 AM11/20/18
to General Open edX discussion
Thanks, you are right!
I first had to 

  • python manage.py cms --settings=aws collectstatic --noinput
  • python manage.py lms --settings=aws collectstatic --noinput
then
  • paver update_assets cms --settings=aws
  • paver update_assets lms --settings=aws
then

/edx/bin/supervisorctl restart lms
/edx/bin/supervisorctl restart cms


kos giannop

unread,
Nov 22, 2018, 3:14:00 AM11/22/18
to General Open edX discussion
In Hawthorn, in the file /edx/app/edxapp/edx-platform/lms/static/js/student_account/views/account_settings_factory.js

There are some strings that refer to the account settings (social media links).
How can these strings be translated?
I tried to alter the file to translate them and then the update_assets command can not finish successfully.
Reply all
Reply to author
Forward
0 new messages