In order be able to enable/disable languages easily, we should have one place to define the supported languages.
As master reference I want to use manifests/weblate/languages.pp (in puppet-tails).
But the languages are not used for the templates/weblate/settings.py.erb (puppet-tails). Even worse the LANGUAGES list differs a lot from the languages in languages.pp. Or is the LANGUAGES list in weblate settings the list of supported translations for the Weblate interface?
https://translate.tails.boum.org/languages/ in contrast output the list that we have in manifests/weblate/languages.pp.
The list at templates/weblate/settings.py.erb does indeed mark the languages for the translation interface. Translators can choose the interface language on their profile.
This is the procedure for adding a new language to translate in weblate:
But that will need the .pot files to be present, and our setup does not allow that.
So what I have done previously is:
- change the configuration for ikiwiki, adding a new language at ikiwiki.setup and ikiwiki-cgi.setup
- build the wiki
- commit the new language files
- run load_po in weblate shell