Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Explore Transifex/GitHub integration for automatic translation updates #103

Open
schlos opened this issue Oct 28, 2020 · 3 comments
Open

Comments

@schlos
Copy link
Member

schlos commented Oct 28, 2020

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 theme 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


CONSOLE

See also text management from theme directory:
https://docs.transifex.com/client/introduction
https://github.com/mysociety/alaveteli/wiki/Generate-theme-translations

@schlos schlos self-assigned this Oct 28, 2020
@schlos
Copy link
Member Author

schlos commented Oct 28, 2020

CONSOLE

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

sudo su alaveteli
cd /var/www/imamopravoznati.org/alaveteli/lib/themes/imamopravoznati-theme
less .tx/config

[main]
file_filter = locale-theme/<lang>/app.po
host = https://www.transifex.com

[imamo-pravo-znati.theme-latest]
file_filter = locale-theme/<lang>/app.po
source_lang = en
source_file = locale-theme/app.pot
type = PO
imamopravoznati-theme/.tx/config (END)

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

tx pull -l hr

in case of errors, force:

tx pull -f

@schlos
Copy link
Member Author

schlos commented Oct 28, 2020

AUTOMATIC TRANSIFEX SYNC TO GITHUB

Configuration page:
https://www.transifex.com/code-for-croatia/imamo-pravo-znati/settings/integrations/

Screenshot 2020-10-28 at 22 18 53

Detailed steps:
https://docs.transifex.com/transifex-github-integrations/github-tx-ui

Before enabling this:

  1. Move middleware translations to a separate project (or upstream) --> see Explore Transifex/GitHub integration for automatic translation updates imamopravoznati#85
  2. Remove versioned theme translation files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant