[MPlayer-dev-eng] [PATCH] Message translation
Ötvös Attila
oattila at chello.hu
Mon Dec 4 01:59:29 CET 2006
Hi All!
I created translation patch:
help/genmtm:
convert from help_mp-??.h and help_mp-en.h to ??.mtm
localized message binary file
??.mtm files install to DATADIR/locale
in mp_msg:
char* mp_trans_msg(char *text)
translate text to localized messages
Example load translated files:
set_trans_lang(getenv("LANG"));
or
set_trans_lang("hu");
or
set_trans_lang("hu_HU");
open (param: -lang-path)/hu.mtm
or
open MPLAYER_DATADIR/locale/hu.mtm
or
open MPLAYER_CONFDIR/hu.mtm
set_trans_lang(NULL); clear and set english
Comment?
Best regards!
Attila
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-translation-patch.tar.gz
Type: application/x-tgz
Size: 35867 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20061204/833fed82/attachment.bin>
More information about the MPlayer-dev-eng
mailing list