codeforcroatia / imamopravoznati

Provide a Freedom of Information request system for your jurisdiction
http://alaveteli.org
Other
3 stars 1 forks source link

Explore Transifex/GitHub integration for automatic translation updates #85

Closed schlos closed 3 years ago

schlos commented 3 years ago

Transifex now supports automatic GitHub integration for individual repos: https://docs.transifex.com/transifex-github-integrations/github-tx-ui. We should test this for one of our repos currently using Transifex to see how it might improve our app middleware translation processes.

Or

We can also choose to send localized content to GitHub manually: https://docs.transifex.com/transifex-github-integrations/github-tx-ui#manual-sync

Or

Via console. See https://docs.transifex.com/client/introduction for more info.


See also text management for theme: https://github.com/codeforcroatia/imamopravoznati-theme/issues/103

schlos commented 3 years ago

CONSOLE

Transifex configuration and api key is in "alaveteli" user directory.

sudo su alaveteli cd /var/www/imamopravoznati.org/alaveteli less .tx/config

[imamo-pravo-znati.app-latest]
file_filter = locale/<lang>/app.po
source_file = locale/en/app.po
source_lang = en

[alaveteli.alaveteli-pro]
file_filter = locale_alaveteli_pro/<lang>/app.po
source_file = locale_alaveteli_pro/en/app.po
source_lang = en

[main]
host = https://www.transifex.com

.tx/config (END)

Pull only Croatian translation (for info look at https://docs.transifex.com/client/pull):

tx pull -l hr