feat(translationtool): add Python support for translations
As the Python language is mostly used in ExApps (AppAPI) for now - introduce support for it in translationtool.
Do this apps need the other bits as well (info.xml, php, js, vue), or are they Python only and could be translated directly from Python to Transifex?
Do this apps need the other bits as well (info.xml, php, js, vue)
info.xml, js and vue are also present in Python apps (see boilerplate), basically only Python backend differs.
The only thing I forgot is that we need to adjust CI for such apps on what is committed to repository from transifex, in particular keep .po and .mo files with translations too, how could we do this in better way?
The only thing I forgot is that we need to adjust CI for such apps on what is committed to repository from transifex, in particular keep .po and .mo files with translations too, how could we do this in better way?
We definitely don't want this for the other apps. Is python reading it directly from there?
Maybe we need to add a new "category"/"type" then which simply runs a bit of another workflow. Any file which we can check existance for?
Is python reading it directly from there?
Yes. For sure you can implement it in different way, but it would be similar to how it's done in Nextcloud, by converting translations into needed format from .po files, so that's why they might be needed for ExApps, developers can decide on their own how to handle these translation files in their app.
Any file which we can check existance for?
Any file to check to detect this "ExApps category"? Well, for example ExApp's appinfo/info.xml should contain external-app section.
Well, for example ExApp's appinfo/info.xml should contain external-app section.
Should be able to get that yeah, similar to https://github.com/nextcloud/docker-ci/blob/master/translations-app/handleAppTranslations.sh#L19