Is there a way to pull the most recent translations from Transifex?


#1

Is there a way to do this?

I have been making changes to the Albanian translation, and it would be handy to be able to run a command and pull them on my running production site.

I tried doing the following:

cd /var/discourse 
ruby script/pull_translations.rb

but I don’t have ruby installed. Is it simply a question of getting ruby installed?


#2

The script and description is built for development I believe. But you should be able to run it if you enter the app first:

cd /var/discourse
./launcher enter app
ruby script/pull_translations.rb

#3

Yes, it does look like that’s only for a development environment. I ran those three lines and the result is requires the transifex client, and the result is: The Transifex client needs to be installed to use this script.


(Miguel Amaral) #4

I managed to install the client (had to use apt to install python and python-pip), and used my credentials on transifex to configure the /root/.transifexrc file. It worked.