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

Add automated workflow for transifex updates #386

Closed
wants to merge 4 commits into from

Conversation

m52go
Copy link
Contributor

@m52go m52go commented Aug 9, 2020

This PR adds a much-needed automated workflow for integrating updates on Transifex to this Jekyll website, building on groundwork pushed earlier this week (e.g., consolidated yml files).

NOTE: this workflow will only work once the updated XML attributes from #385 are also merged. To test this PR, you'll need to merge that PR with this one (and obtain a Transifex API key for the bisq-website project). I may just merge this PR after that one is merged since (1) it is unlikely that anyone will actually be able to test this PR and (2) nothing in this PR affects the rendering of the website. Still, I will leave it open for a few days for feedback.

The workflow:

  • translators update Transifex
  • shell script gets updates from Transifex
  • shell script applies updates to yml files in _data/<lang>.yml
  • node script updates svg images (currently all such images are only those that appear on the DAO page)

As a result of this update, all translation work for the website must only occur on Transifex. Anyone with a Transifex API key (i.e., Transifex admin) can apply updates by running .tx/update-translations.sh.

This PR finally makes it feasible to document the localization process (#244), specifically:

  • how existing translations should be maintained using this new workflow
  • how to add new languages

When complete, I'll post the relevant wiki links in #244.

Review Guidance

As mentioned above, reviewing this pull request fully is difficult because of limited access to Transifex.

With that said, for anyone who is interested in testing the proposed scripts, I can send a raw dump of Transifex files to get around that issue. It's the scripts we want to test anyway, not Transifex's API :)

m52go added 3 commits August 9, 2020 11:51
Scripts in .tx/ fetch translations from Transifex,
update _data/<lang>.yml files, and update SVG files.
@Bayernatoor
Copy link

Would be willing to test scripts. But I won't be able to review until sometime next week.

Doesn't work with new SVGs. Was janky anyway, so don't see point in
re-doing it.
@m52go
Copy link
Contributor Author

m52go commented Sep 11, 2020

@Bayernatoor thanks for the offer. I had to remove the SVG update script, so there isn't much left to test that isn't closely tied to Transifex.

I'll merge this PR upon testing it with a real update from Transifex.

m52go added a commit to m52go/bisq-website that referenced this pull request Jul 29, 2021
These were used in a script written last year (see bisq-network#386) to
automate translations updates, but the image update part
didn't turn out well. Therefore these strings are no longer
necessary.
@gabernard
Copy link
Contributor

I'm closing this PR for now. You can re-open it when it's ready.

@gabernard gabernard closed this May 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants