How to use latest translations on my own discourse


(Eric Vantillard) #1

I would like to use the latest translation avaible on my discourse site.

How can I extract it from transifex ? and how to use it on my docker image ?


(Eric Vantillard) #2

I will check if I can customize my docker image using this script

To get new translations, we run a script6 that uses the client and does some post-processing to make sure everything is in a format that works.

ruby script/pull_translations.rb

extract from the HOWTO


(Eric Vantillard) #3

Maybe creating a new templates/translator.template.yml in the docker image and using an after_code hook ?


(Ilya Kuchaev) #4

What translations it’s pulling? I see the following strings in output

Skipping 'ru' translation (file: config/locales/client.ru.yml).

Thanks!


(Eric Vantillard) #5

Skipping means already up-to-date.

to use latest translations (even unreviewed) you need to change the command line used in the pull_translations.rb script:

command = "tx pull --mode=translator -a #{ARGV.include?('force') ? '-f' : ''}"

see transifex client doc http://docs.transifex.com/developer/client/pull