Marguerite Su writes:
my po files here:
http://svn.opensuse.org/svn/opensuse-doc/trunk/documents/distribution/zh_CN/...
And I wanted to extract from eg: systemd.xml.zh_CN.po
msgid "translator-credits" msgstr "2013, 玛格丽特 · 苏
" to
2013, 玛格丽特 · 苏 <ulink url="mailto:marguerite@opensuse.org"/>
Currently I'm using shell script to do this:
http://svn.opensuse.org/svn/opensuse-doc/trunk/documents/distribution/zh_CN/...
But because I use `tail -1`, so my script can only extract the last one who added his name to the msgstr...so I think other powerful scripting language may do a lot better but it's out of my ability...
I think with using gettext runtime tools this pipe would do the trick:
msggrep -K -e translator-credits FILE.po \
| msgexec cat \
| sed -n '/^[[:digit:]]\+/p' \
| sed 's/<\(.*\)>/