Weblate has an add-on called "Update PO files to match POT (msgmerge)". I want to delegate the creation of .po
files to Weblate and only use manage.py makemessages
to create the .pot
file(s).
manage.py makemessages
has a --keep-pot
option, which adds .pot
files to the output. Unfortunately there is no option to only keep the .pot
files.
It is possible to skip the creation of
.po
files by overwriting thewrite_po_file
method of themakemessages
command. To do so, create amakemessages.py
file inmanagement/commands
(as described in the Django docs):