[MPlayer-dev-eng] [PATCH] GTK2 support

Rich Felker dalias at aerifal.cx
Tue Feb 21 23:36:09 CET 2006


On Tue, Feb 21, 2006 at 10:12:27PM +0100, Torinthiel wrote:
> On Tue, Feb 21, 2006 at 01:38:56PM -0500, Rich Felker wrote:
> [cut]
> > IMO we put the above style #defines in help_mp-en.h, and define
> > catgets away if catgets if it's not desired by the user. Then we leave
> > the other language files as-is, and make a script to convert them into
> > message catalogs, taking the message numbers from the corresponding
> > English messages (message with same MSGTR_ name).
> 
> How about we leave /help/* files as they are, and instead generate
> help_mp.h from them? Has the advantage of:
> 1. Less bloat in CVS (no repeated "catgets(mp_catalog, SET_NUMBER, ")

This could be done with a simple #define to lessen the repetition.

> 2. Automatic MSG_NUMBER generation

This is bad, since message numbers might change across MPlayer version
and lead to printing nonsense (or even crashing) if the wrong message
files are used. That's why I want them to be defined once and
permanently in a help file.

> Now what is the format of catalogs or tools to create them and their
> source format?

This I don't actually know. :) It's implementation-defined. Let's
see...

http://www.opengroup.org/onlinepubs/009695399/utilities/gencat.html

The 'gencat' program will generate the system-specific compiled
catalog files from a simple text format, which we could in turn
generate from the help files.

Rich




More information about the MPlayer-dev-eng mailing list