How to change the text message in English?

I want to update a text message that appears in Learning MFE and is sent from the Django backend. I want to change this message in English and update the corresponding translations as well.

I have updated the relevant text in all the conf/locale/{lan_code}/LC_MESSAGES/django.po files.

For the English text, I modified the conf/locale/en/LC_MESSAGES/django.po file as follows:

#: lms/djangoapps/courseware/date_summary.py
msgid ""
"After the course ends, the course content will be archived and no longer "
"active."
msgstr "Updated message text"

After this, I ran the compilemessages command to regenerate the .mo files.

As a result, all the translations are showing correctly on my local environment as well as the production server. However, the updated English text message is only being reflected on my local environment, and not on the production server.

Are there any additional steps I need to perform in order to update the English text message in the production environment?

I am using palm.4 version in local as well as server.
@regis @Andres.Aulasneo @arbrandes

Hi @Yogesh,

We’ve recently made updates to the translation functionality in our Open edX platform. To implement translations in your production environment, you’ll need to fork the openedx-translations repository from GitHub - openedx/openedx-translations: Open edX Translation files in sync with Transifex into your GitHub organization. This repository contains separate translation files for each Micro-Frontend (MFE), XBlock, and legacy page, allowing you to customize them as needed.

Once you’ve made your modifications, configure the ATLAS_REVISION and ATLAS_REPOSITORY parameters by running the following commands, replacing the placeholders with your specific branch and organization details:

tutor config save --set ATLAS_REVISION=<your-branch-name>
tutor config save --set ATLAS_REPOSITORY=<your-organization>/openedx-translations

Afterward, rebuild the Open edX and MFE images to apply your changes by executing:

tutor images build openedx --no-cache
tutor images build mfe --no-cache

This process ensures your custom translations are properly integrated. Let us know if you encounter any issues or need further assistance!

1 Like

Hi @Mahendra

Thanks for your reply.

I am using currently on palm.4 version.

All the translations are already working perfectly, I am not facing any issue in that.

I am hoping to change the text that is in English by making modification in the conf/locale/en/LC_MESSAGES/django.po file.

@Yogesh I’m not sure you can do that. the English po file is scraped from the strings in the codebase, not generated. I think you’d need to fork the repo(s) and make your changes directly in the code.

1 Like

Hi @sarina

Thanks for your input. It is very helpful.

I will make direct change in the codebase to update the English text.

I’ll note that doing this will make upgrades much more difficult. We encourage you to have a continual schedule of upgrades as the older your release, the more problems may arise (security issues, deprecation of upstream dependencies)