How to safely update/extend translation?


(Florian Bender) #1

So I updated some translations in Transifex. The new strings will be included in Discourse 1.5 (judging by the commit history). However, I’d like to update the strings on my current v1.4 installation.

Is there a safe way to do that, i.e. that updates are not broken? I assume updating uses git pull which will result in merge conflicts – I’d like to avoid that and still have updated strings.

Thanks in advance!


(Arpit Jalan) #2

You might want to have a look at discourse-locale-override plugin by @lidel.


(Florian Bender) #3

Awesome, thanks a lot for the quick reply! Works perfectly!

Edit: Whoever looks for an up-to-date German translation (grabbed from Transifex a couple of hours ago), you can use GitHub - fbender/discourse-locale-override-de: Simple hack to override official translations files in Discourse and persist them between Docker rebuilds. – includes unreviewed strings! I did do a Diff, however, to check whether the changes are compatible with Discourse v1.4.2.


(Robin Ward) #4

I should let you know that Discourse will have built in support for this shortly. I’ve already completed the APIs for it – we just need an interface to support it.


(Florian Bender) #5

Cool! Keep it up with your awesome work!