Re: [ANNOUNCE] VDR developer version 1.5.7

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



En/na Klaus Schmidinger ha escrit:

> Isn't there perhaps a way to tell gettext *explicitly* which files
> to use, completely bypassing this whole broken setlocale stuff?
> In that case VDR could collect it's list of *.mo files and decide
> by itself which one to use.

freepascal bypasses gettext altogether by using an own implementation 
that reads mo files directly.
Though it's in pascal, the implementation seems simple enough for a C++ 
wizard like you to replicate it with half the effort you'd need to 
workaround the issues we've seen so far.
Here's the documentation of the class:
http://community.freepascal.org:10000/docs-html/fcl/gettext/tmofile.html

and here's the implementation:
http://svn.freepascal.org/svn/fpc/trunk/packages/fcl-base/src/inc/gettext.pp
(just ignore the "Resourcestring translation procedures" that hooks into 
the native resourcestring mechanism of pascal).

Bye
-- 
Luca


_______________________________________________
vdr mailing list
vdr@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/vdr

[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux