Make the ikiwiki PO plugin able to update PO files for languages that are disabled on the website
It might happen that we have po files of languages that we do not want
to activate yet. In that case, ikiwiki will interpret these po files as
mdwn and this breaks the wiki.
We might actually want to carry such translations after all, and not have them only in weblate. But we want ikiwiki on our production and local websites to ignore these language files while our staging website should render them.
Upstream todo/MR: https://ikiwiki.info/todo/_Add_ikiwiki_PO-Plugin_to_ignore_languages/
Another option is to add \.ru\.po$ (to disable Russian) to the exclude
config variable in ikiwiki.setup.
But even if it works it’s a bit lower-level and much harder to query/reconfigure programmatically. which I assume we may want to do both in tails.git and on the production ikiwiki.setup if the list of languages for which we carry PO files in tails.git changes often or without much coordination.
If the po_disabled_languages thing is easy it’s much better. better semantics. Can be used elsewhere in the PO plugin if needed.
Also e.g. the staging website build script could simply empty po_disabled_languages, that can be done on the ikiwiki cmdline contrary to tweaking “excludes”.