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
What good news! I can’t wait to test these new features. Thank you
Nice, thank you so much
And to update to this version, all we have to do is
tutor local pullimages
After that, check tutor version by running
Is this correct?
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?
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.
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!
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:
thanks a lot! I didn’t know that I needed to fork that repo.