Research how to isolate the [[!meta directives that need translation in PO files
From this thread on tails-l10n: http://lists.autistici.org/message/20181118.155100.286e6cc2.en.html
Translators have a hard time (and make mistakes) when translating big blobs of ‘[[!meta’ directives in a single PO string.
This only happens on HTML files, like /install.html:
https://git.tails.boum.org/tails/tree/wiki/src/install.fr.po
And not on Markdown files, like /news/version_3.11.mdwn:
https://git.tails.boum.org/tails/tree/wiki/src/news/version_3.11.fr.po
We are using the following ‘[[!meta’ directives:
- All over the place
- date
- title
- Sometimes
- script
- stylesheet
- In very rare occasions
- google-site-verification
- redir
- robots
From these, it only makes sense to translate the ‘title’ directives.
The rest are actually harmful to translate, so ideally they shouldn’t even appear in PO files. For example, translators sometimes translate dates.
How can we make these easier to translate and less error prone?
* Wrapping ‘title’ into a ’
’ seems to work remarkably well. See commit in attachment.
- Is it realistic to patch ikiwiki/PO plugin/po4a/whoever to skip other directives? If we do this, then we would also solve the problem of isolating ‘title’ directives because they would be the only ones left.
- Any other option?
Attachments
Related issues
- Related to #16221
- Related to #16367 (closed)
- Related to #16366
- Blocks #15941 (closed)
Original created by @sajolida on 16279 (Redmine)