[MPlayer-dev-eng] liabf/af.c translatables to help_mp

Rich Felker dalias at aerifal.cx
Thu Mar 16 17:50:37 CET 2006


On Thu, Mar 16, 2006 at 12:41:01PM +0100, Alex Beregszaszi wrote:
> Hi,
> 
> > > > mp_msg and translated messaging residing in help_*.h. Why not using
> > > > gettext for that translation matter as any other sane project?
> > > 
> > > Because it seems to need setlocale, which in turn breaks MPlayer all oer
> > > the place. Or in other words: gettext: broken as designed.
> > 
> > What about designing a similar system? Code is better than just ideas, I
> > will send a small implementation.
> 
> Attached is a lame implementation.

Because a good system that's completely compatible with MPlayer's
existing method of using #defines for messages (rather than including
the literal strings in the source files) already exists and is part of
posix and is available on every system that has gettext. It's called
catgets. Support for it has already been discussed and is planned for
the not-so-distant future.

(catgets also does not have the performance penalty of hashing strings
or strcmp'ing them to find the translated message like gettext and
your system do)

Rich




More information about the MPlayer-dev-eng mailing list