[MPlayer-dev-eng] Sample translation lookup implementation
Uoti Urpala
uoti.urpala at pp1.inet.fi
Wed Dec 6 17:21:35 CET 2006
The patch implements a simple string-based translation lookup function.
The purpose is mainly to prove wrong the "complexity" claims about
string lookup and demonstrate that a simple implementation is enough to
give functionality superior to catgets or other integer-based lookup
schemes. The patch adds a simple translation lookup function and
demonstrates the functionality by trying to translate mp_msg() messages.
The translation file format used is safe against problems caused by
outdated translation files but not incorrect/malicious ones. It's not
completely platform-independent (depends on values of PRI* macros) but
should work enough to test on any platform.
To test unpack transl_de.bz2 and run patched mplayer with
"-translation-file /path/transl_de".
-------------- next part --------------
A non-text attachment was scrubbed...
Name: translate.diff
Type: text/x-patch
Size: 5199 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20061206/79d10eed/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: transl_de.bz2
Type: application/x-bzip
Size: 38018 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20061206/79d10eed/attachment-0001.bin>
More information about the MPlayer-dev-eng
mailing list