[MPlayer-dev-eng] mplayer and gettext

Nicolás Lichtmaier nick at technisys.com.ar
Wed Nov 20 21:42:13 CET 2002


This is what I have:

A script which converts all the help_mp*.h files into .mo files. It
includes config.h, so that the .mo files have all the right messages.

I've tried an unmodified copy of mplayer against my automatically
generated .mo file and now most messages are translated to Spanish! This
is so because mp_msg already passes its strings to gettext. (But there
are lots of strings which doesn't go through mp_msg (and they probably
shouldn't).)

This can be included in mplayer's build process *now* to have runtime
translations. The translations would be read from the normal .h files as
always.

I have also a script wich replaces all MSGTR_* defines with the English
text, marked with _() . The output of this script is stored in a new
dir, and I've created a gcc wrapper which replaces the file with the
corrected path (adding a -I for the old path).

This can be used to create a fully gettext enhanced mplayer, and to take
advantage of all gettext translating features.




More information about the MPlayer-dev-eng mailing list