jwilk / i18nspector

checking tool for gettext POT, PO and MO files
https://jwilk.net/software/i18nspector
MIT License
2 stars 4 forks source link

Please allow "markdown-text" gettext flag (used by Weblate and po4a) #11

Closed intrigeri closed 2 years ago

intrigeri commented 2 years ago

Current po4a and Weblate use the markdown-text gettext flag on relevant entries: https://github.com/mquinson/po4a/pull/208

Such PO files trigger a unknown-message-flag from i18nspector.

Could this flag be allowed?

Thanks in advance!

jwilk commented 2 years ago

Reproducer (with po4a ≥ 0.58):

$ echo 'Hello world!' > hello.md
$ po4a-gettextize -f text -o markdown -m hello.md > hello.pot
$ i18nspector hello.pot | grep -w flag
I: hello.pot: unknown-message-flag msgid 'Hello world!': markdown-text
jwilk commented 2 years ago

Fixed in 0.27.