Re: [gnome-summary] Some tasks



On Thu, 2004-02-19 at 21:51 -0800, Sri Ramkrishna wrote:

> So I'm looking for some volunteers to do the following:
> 

<...snipped>

> * We need a methodology on how to store the translated summaries and be
> able to display them based on the LANG variable.  So, someone needs to
> propose a sane methodology to do this.  Any volunteers for this?  It
> will require that you talk with Danilo Segan and working on how to
> arrange everything.

<from the armchair ;-) >

I think there is a feature in Apache which serves pages on the basis of
the Accept-language (or something similar - it should be in the HTTP/1.1
RFC) sent by the Web browsers. Sane web browsers send this info from the
locale in use. For example, if Apache detects that a browser request
index.html is in the bn locale, it will serve it index.html.bn
I am not sure if I am 100% right - I can look up the Apache manual if
you want.

Also, another possible method is to use Javascript - this code snippet
*may* work - though I am not very sure

if (navigator.appName == 'Netscape') 
	var language = navigator.language; 
else 
	var language = navigator.browserlanguage; 

//redirect user

<//from the armchair ;-) >

-sdg-


-sdg-





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