Re: gettext



that wouldnt work. since the objects are corba, it would be dificult to
make sure they were on the client. It would also take alot more cpu time
to do. since the string that the object returns might be a variable
message, you would have to somehow parse it out on the client and then run
each part through gettext.

On Fri, 19 Nov 1999, James Henstridge wrote:

> Maybe the best way of doing this would be for the server object to pass
> back untranslated strings, and make sure all the clients have access to
> the message catalog.  They can then use dgettext(domain, msg) to translate
> the string with their preferred language (domain is the translation
> domain of the server -- if it is the same as for the clients, you can use 
> straight gettext() or _()).  
> 
> James.
> 
> --
> Email: james@daa.com.au
> WWW:   http://www.daa.com.au/~james/
> 
> 
> On Thu, 18 Nov 1999 bob@cs.csoft.net wrote:
> 
> > gettext question.
> > Say I have a corba object acting as a shared server. Multiple clients can
> > be hitting this object. Each client can have a different language set. I
> > would like to be able to pass the LANGUAGE variable from the client to the
> > server as one of its arguments, and the server should then return data in
> > that language. is there a function that would work like
> > gettext("some text to translate", "en:fr") ?
> > 
> > Thanks,
> > Bob
> > 
> > 
> > 
> > 
> > -- 
> > To unsubscribe: mail gnome-devel-list-request@gnome.org with "unsubscribe"
> > as the Subject.
> > 
> 



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