[MPlayer-dev-eng] New translation system
Torinthiel
torinthiel at megapolis.pl
Thu Nov 30 23:14:23 CET 2006
On Thu, Nov 30, 2006 at 07:01:21PM +0100, Michael Niedermayer wrote:
> and what for example about something like
> printing the translated message with the untranslated in () when --debug or
> --bugreport is used? with my suggestion it would be trivial to change
> the strings from C, with catgets this doesnt seem possible, a macro and
> a complete recompile would be needed ...
With catgets it looks even easier. See, catgets uses last argument, the
untranslated string. Put catgets in mp_msg (and it's the only reasnable
place IMHO, not altering too much of sources, and not having many places
to make a mistake), and you can control in mp_msg if you want to also
use this last argument by itself. Like:
trans=catgets(...,orig);
printf(trans,...);
if (debug)
printf(orig,...);
But if something even better can be invented, I'm in favor of it.
Torinthiel
--
Waclaw "Torinthiel" Schiller GG#: 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/20061130/e6f14fb4/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list