I’ve launched the latest version of Tutor locally. I set the language to Polish during the installation (and later manually via the CLI), and I also changed the language preferences through the GUI.
Unfortunately, none of that worked. I read somewhere in the documentation/forum that I should try using atlas pull and then rebuild the MFE and Tutor Docker images. While rebuilding the MFEs, I managed to blow up my VM!
In any case, I was wondering if this atlas pull and rebuild even make sense, and if these actions will actually make the translation appear. From what I can see on Transifex, the Polish translation is at 98%.
I would appreciate any help or guidance on what I can do to successfully implement the Polish language.
Hi @TomaszCh - I’ve recategorized this to “Site Operators” to try to get the right eyes on it. I also cross posted this thread to the #wg-translations room in the Open edX slack.
If you are looking to add custom translations or fill the missing ones I suggest the following approach:
Fork/Clone the existing openedx-translations repo
Add new translation files based on the existing english ones where needed
Change the ATLAS_REPOSITORY and ATLAS_REVISION tutor environment variables (either via editing *tutor config edit *or using tutor config save --set ATLAS_REPOSITORY=YOUR_REPOand tutor confg save--set ATLAS_REVISION=YOUR_BRANCH
then rebuilding the images.
Make sure the repos are public and you should be good!
If you want to see the changes live, verify you’ve linked the repos correctly and not wait for rebuilding the images:
Clone desired MFE to see the changes in
Mount it tutor mounts add path_to_cloned_mfe
Check the mount tutor mounts list (it should be automatically recognized as an MFE)
Inside the MFE catalog
Modify the Makefile by adding the ATLAS_REPOSITORY and ATLAS_REVISION values at the top in an ATLAS_OPTIONS config variable like so: ATLAS_OPTIONS= --repository YOUR_REPO --revision YOUR_BRANCH.
Then run: make pull_translations → now your src/i18n catalog should get populated with all translations for that specific MFE from your translations repo nvm use npm install npm run dev (if not available then npm run start) - platform has to be off since otherwise there will be a port clash. First run this then the platform