[Mplayer-dev-eng] mplayer & NLS

Arpi arpi at thot.banki.hu
Wed Aug 22 12:35:02 CEST 2001


Hi,

> I think that NLS in mplayer should be slightly modified.
> 1. If someone will want to add new messages in help files
> we will have a lot of problem since they will not be defined in
> transalted files
> 2. If they will be changed in the future we will have the same problems
> 
> I guess mplayer should contain something like:
> 
> #include "help_mp-XX.h"
> #include "help_mp-en.h"
> 
> The help_np-en.h should be rewritten as:
> #ifndef MSGTR_YYYY
> #define MSGTR_YYYY "yyyy"
> #endif
> 
> It could solve those problems
Yes, it solves. But it's ugly :)
I think we should change to run-time loaded language files later.
So, reference messages by a key, and if mp_msg code can't find
the message in language file, it can use built-in english version.
Maybe the keys can be created from HASH/CRC value of english message
for faster lookup.

Another idea is changing those #defines to numbers (or special codes)
and allow mp_msg code to lookup the right message from language files.

The current -hu version was a fast temporary hack (we didn't ask
people to begin translate it to other languagaes) because we should
present a working hungarian demo version at the end of this week. :(
(for the sponsor company, who donated us DVD drives and the MPHQ server)


A'rpi / Astral & ESP-team

--
mailto:arpi at thot.banki.hu
http://esp-team.scene.hu

_______________________________________________
Mplayer-dev-eng mailing list
Mplayer-dev-eng at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-dev-eng



More information about the MPlayer-dev-eng mailing list