weblate
weblate copied to clipboard
Gettext addon: generate/update .pot file
Describe the problem
Weblate can update .po
files, but .pot
isn't updated
Describe the solution you would like
Weblate could run xgettext
- like it runs msgmerge
to update .po
files.
Conventionally, the list of inputs for xgettext
is kept in a file called POTFILES
, or POTFILES.in
. Build systems like Autotools and Meson expect that file, and most of the open-source projects you can find on GitHub do it this way. So there's no need to run the build system or custom scripts - only xgettext
command itself.
Describe alternatives you have considered
Currently I have a custom GitHub Actions workflow that runs xgettext
, commits and pushes the result.
Screenshots
No response
Additional context
I'm going to work on this feature myself. But before wasting time on it, I want a confirmation that the idea is acceptable overall.