So I have been trialling Weblate using Docker, and pointing it at a Git repo with some .md
files I want to localize. I believe a good way of doing this is to use po4a
to first convert the .md
(basically text) files to a Gettext .pot
file then import these as individual components.
My main aim is to make the process as automated as possible but so far it looks like the steps will be something like this:
.md
to .pot
using po4a-getextize
.pot
file to .en.po
file.po
files po4a-translate
Feels like I'm missing something with the way Weblate creates components... or how the .pot
& .po
files work together... ideally I'd like to automatically pick up and create Components when .pot
file appear in the repo, then just set up some scripts outside Weblate to automate the conversion to/from the different file formats.
You can use component discovery or API to automatically create the components.