mquinson / po4a-website

Source code of https://po4a.org/
GNU General Public License v2.0
6 stars 5 forks source link

Weblate workflow broken ? #13

Open silopolis opened 1 year ago

silopolis commented 1 year ago

Hello friends :)

Could there be a cork in the pipe to Weblate? Browsing French version, I was surprise to see untranslated paragraphs whereas the project is 100% translated in Weblate!?

mquinson commented 1 year ago

Hello,

you are right in some sense. It's not exactly broken because there is no automatic workflow. I have to rebuild and sync the page when something changes. I usually monitor the git manually short after the release, but I forgot this time.

One should come up with a new workflow to automatize this, but the pb is that I'm not sure of how to share my credential to the VM hosting the po4a.org domain, which is contributed by Red Hat and Fedora. I'll try to investigate.

Thanks for reporting (it's synced now).

rffontenelle commented 2 months ago

How about a workflow to notify of new translations from time to time whenever there is a new translation?

For instance: 1- 02-update.sh store the current commit hash somewhere e.g. hash.txt 2- a CI workflow scheduled weekly reads this hash.txt and if hash.txt != current hash, do:

This is just a suggestion that doesn't require putting your credentials. (Although there is GitHub Actions secrets for this reasons).

mquinson commented 2 months ago

This would be a very good workflow, well integrated in my current habits. The ping could be as simple as an email. I would definitely handle one extra email triggering a micro task per week, or even ever day.

Thanks for the suggestion. I'd love if you could provide a first implementation of that workflow, please.