gristlabs / grist-help

Grist documentation and help center articles
https://support.getgrist.com
Other
13 stars 17 forks source link

Allow marking translations reviewed #392

Open fflorent opened 2 weeks ago

fflorent commented 2 weeks ago

When machine translations have been modified and reviewed, there is no need anymore to show this warning:

https://github.com/gristlabs/grist-help/blob/master/help/fr/MACHINE-TRANSLATION.md

I propose to add to the mkdocs.yml an extra config to mark translations as being reviewed.

netlify[bot] commented 2 weeks ago

Deploy Preview for grist-help-preview ready!

Name Link
Latest commit b7ba971ffe45e317732492b8d37683c453d3866b
Latest deploy log https://app.netlify.com/sites/grist-help-preview/deploys/66cda3da628dab00084dae1a
Deploy Preview https://deploy-preview-392--grist-help-preview.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

dsagal commented 2 weeks ago

Might it be better to put such a marker into each page's meta data (https://www.mkdocs.org/user-guide/writing-your-docs/#yaml-style-meta-data)?

fflorent commented 2 weeks ago

@dsagal I originally abandoned this idea: Git localize detects these metadata, so it would be expected that this property appears in both English and French (or any other language). I thought it would not be convenient, as the original writers (of the English version) have to keep in mind adding this property in the metadata.

But thinking again, what do you think of introducing a new command that does the following?

We could make this run in Github actions every 24h, and/or on push on master, and/or when triggered manually (with a PR if some files have been updated).

The advantages are that:

The tricky part is that translators should keep track of the changes made in the English documentation (unless we find a way to tell GPT to only detect and translate parts of the documents that have been changed without overriding the existing reviewed translations). Something I still need to think of.

For the scope of this PR, I suggest that I put aside the machine translation and only make this command add the translation_reviewed marker, and use it in some Github action.

fflorent commented 2 weeks ago

Working on an idea, for now changing it to draft.

fflorent commented 1 week ago

Waiting for #396 to be merged before reopening and working again on this PR