New feature in v3.11.12: custom translations

In v3.11.12, which was just released a few minutes ago, it’s now possible to add custom translation strings very simply to edx-platform. @ejklock @nhanquach @teruun @slillo I’m explicitely tagging you because you asked questions related to translations in the past, but this will interest other users as well.

As usual, all instructions are in the docs: https://docs.tutor.overhang.io/configuration.html#adding-custom-translations

5 Likes

What good news! I can’t wait to test these new features. Thank you

Nice, thank you so much :tada::tada::tada:

And to update to this version, all we have to do is
tutor local pullimages
After that, check tutor version by running
tutor --version

Is this correct?

This is how to upgrade: https://docs.tutor.overhang.io/install.html#upgrading

1 Like

Thanks a lot for this new feature! Really cool.

I’ve a question about it, if we add a new string to be translated in a custom fork, can we include that string in our custom local file without an extra step?

I read the documentation but I think that is doesn’t cover this case, in which I added a new string in a custom fork that is not present in django.po nor javascript code.

Thanks again for this release!

@cacciaresi if you add custom translations to a django.po file in your edx-platform fork, you need to generate the django.mo file yourself by running the compilemessages command.

1 Like

Oh, thanks for the reply, will test it!

Works like a charm!!

I compiled my strings and generated .mo files and put on the patch follow the instructions

@ejklock hi! Can you share which steps you follow? It would be really useful!

Thanks a lot!

Hi!

I created a fork of https://github.com/openedx/openedx-i18n

And make changes on string of my language (in the case Portuguese Brazil), compile the strings using commands of:

https://github.com/openedx/openedx-i18n (see MakeFile)

And copy (.mo and .po files) on folder follow instructions:

https://docs.tutor.overhang.io/configuration.html#adding-custom-translations

1 Like

thanks a lot! I didn’t know that I needed to fork that repo.