[neomutt-users] Translating NeoMutt

Richard Russon rich at flatcap.org
Sun Nov 13 20:51:26 CET 2016

Hi Guillaume,

> Using msgfmt, I can't seem to get it to tell me which messages it's
> having trouble with.

I don't know if it'll do that -- but I haven't experimented.

Much as I like the commandline, poedit is pretty simple to use.
The fuzzy strings are in bold, the missing strings are missing
and there are keyboard shortcuts for everything.

> how can I get a list of untranslated messages?

In the .po file, look for:
    msgstr ""

OK, I couldn't help myself.
I've attached an awk script to print the untranslated strings.

    awk -f translate.awk < fr.po

-------------- next part --------------
#!/usr/bin/awk -f

	# Record separator is a blank line

# Ignore msgstr with a string
/msgstr "[^"]/ { next; }

# Ignore msgstr with a string on the next line
/msgstr ""\n./ { next; }

	# Display the remainder
	print $0 "\n";

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://mailman.neomutt.org/pipermail/neomutt-users-neomutt.org/attachments/20161113/7ad00d85/attachment.sig>

More information about the neomutt-users mailing list