[MPlayer-dev-eng] Dutch Translation
Anders Rune Jensen
anders at gnulinux.dk
Sat May 4 22:21:10 CEST 2002
Arpi <arpi at thot.banki.hu> writes:
> Hi,
>
> > I wouldn't think so. It's implemention is very very simple. It can
> > only get this kind of strings: something("translate_me");
> >
> > Perl is much better to match strings. It should be possible to build a
> > script that works with our mp_msg system.
>
> it won't be easy, as there are many MSGTR_* constanst used...
It's allready done, excluding all the debug statements which we don't
want to translate :)
>
> > Arpi: The problem is matching the strings inside the c source not in
> > the mp_msg, so that xgettext can generate a master file. This
> > masterfile is then used to generate translations.
>
> Hmm. Imho it's easy to solve...
> just make a special mp_msg() _macro_ which prints out messages with a
> #warning or maybe there are other ways to print messages from macro at
> _compiletime_ .
> then you have to parse teh compiler output for tehse strings, shouldn't be
> hard, even grep+cut can do that...
Yes, the problem is when you have strings like this:
"something" var "something_else"
and var's that span several lines.
Also that output have to be parsed somewhere to check to doubles and
linenumbers...
That is where I'm stuck right now. Maybe you have some hints...
> A'rpi / Astral & ESP-team
--
Anders Rune Jensen
jabber: superduck at myjabber.net | email : anders at gnulinux.dk
More information about the MPlayer-dev-eng
mailing list