Bug#696833: ITP: i18nspector -- checking tool for gettext POT, PO and MO files
> How does it compare with msgfmt? Translators usually use msgfmt to
> check for errors right now.
Indeed,... and a run of i18nspector over po files in the archive shows lots of
problems. i18nspector tests much more than msgfmt -- it simply catches lots of
problems that msgfmt misses. Perhaps the easiest thing to do is to show what
the two tools say about a couple of random .po files I have here from another
project:
$ msgfmt -c reports.po
reports.po:7: header field `Project-Id-Version' still has the initial default
value
$ i18nspector reports.po
W: reports.po: boilerplate-in-project-id-version 'PACKAGE VERSION'
W: reports.po: invalid-last-translator 'Automatic <>'
W: reports.po: boilerplate-in-language-team 'LANGUAGE <LL@li.org>'
W: reports.po: unusual-character-in-translation U+009F control character APC:
'Ã\x9f'
(where reports.po was UTF-8 encoded but the header claimed it to be
ISO-8859-1)
cheers
Stuart
--
Stuart Prescott http://www.nanonanonano.net/ stuart@nanonanonano.net
Debian Developer http://www.debian.org/ stuart@debian.org
GPG fingerprint BE65 FD1E F4EA 08F3 23D4 3C6D 9FE8 B8CD 71C5 D1A8
GPG fingerprint 90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7
Reply to: