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

Torinthiel torinthiel at megapolis.pl
Wed Feb 22 01:23:18 CET 2006


On Tue, Feb 21, 2006 at 05:36:09PM -0500, Rich Felker wrote:
> > 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.

Point taken. But who's gonna maintain them? And it still makes
help_mp-en.h look ugly. And this is the most probable file every
translator will look at, and TRY to guess translation format from it.
How about we leave help/* as-is, add another file (say
help/help_numbers) that keeps only the id's of messages (say # MSG* id)
and make help_mp.h from these? It still takes some effort to maintain,
but IMHO less, as text and id's can be maintained separately. Problem is
that anyone adding a message should add it to both files, but probably
compilation will enforce this. And it will be easier to choose if we
fall back to English or translated messages (this way
#define catgets(a,b,c,d) (d)
works as previous behaviour).


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

And it even describes format for us ;)
Quick test shows that getcat issues a warning if it it finds duplicate
definitions, but no errors.
It should also be possible to convert pogen.c to generate message files.
I'll probably can get to it, but probably not before end of March.
Torinthiel

-- 
 Waclaw "Torinthiel" Schiller       GG#: 542916, 3073512
   torinthiel(at)megapolis(dot)pl
   gpg: 0906A2CE fpr: EE3E DFB4 C4D6 E22E 8999  D714 7CEB CDDC 0906 A2CE
 "No classmates may be used during this examination"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20060222/253f3029/attachment.pgp>


More information about the MPlayer-dev-eng mailing list