mdbook-i18n-helpers
mdbook-i18n-helpers copied to clipboard
Let `mdbook-xgettext` generate a file in the same format as `msgmerge`
Today, mdbook-xgettext outputs a PO file which looks different from what msgmerge outputs. The result is that translators get a huge diff the first time they run msgmerge. This is confusing, e.g., see the question in https://github.com/google/comprehensive-rust/pull/743#issuecomment-1571732966. It is also annoying since it prevents people from reviewing the changes.
The changes for this should ideally be made in polib: https://github.com/BrettDong/polib/issues/8.