Hi Clytie /and/ all those who know more about JavaScript and/or Sourcecast than me,

There is a need for some basic content negotiation. I have implemented a very simple bit of content negotiation in the download page [1], but it depends on the browser language, not on the browser preferred language settings. Somehow I am not able to retrieve these settings using Javascript. I can only confirm that it works on browser language for Dutch in Opera at this moment (which is the only browser I have in a language other than English)), but it should work on other browsers as well... though that might not include IE6...

Maybe someone else knows how to improve the javascript (I actually looked at the code mozilla.com uses for their download offerings), or knows how to accomplish something like this in Sourcecast scripting system... (there must be a manual somewhere, right?)...

I've left the thread with Clytie below.

g.,


Maarten

[1] The script on the download page is here: http://download.openoffice.org/2.1.0/download_bouncer.js If the browser language is different from English, it searches ( informNativeLanguage() ) for a reference in the array named 'languages' for a better suiting language.

Though sourcecast does support some scripting (it is e.g. used for displaying either search or login at pages), no-one seems to be able to deliver us a good guide to what functions it supports (i've been requesting it a couple of times). That's why we HAVE to rely on Javascript... which can do a little bit of content negotiation... Do you use your browser in Vietnamese? If so, would you be able to check whether the script I made works for you at http://download.openoffice.org/2.1.0/index.html ?
No. :(

My browser (Omniweb 5.5 on Mac OSX) is not translated into Vietnamese, but I have set my global browser prefs to show me pages in Vietnamese if available.

This works for Google.
I am not so sure whether Google uses content negotiation, or something more IP related...
Omniweb has site-specific prefs, so I can choose my preferred language per site, if necessary.

What is sourcecast's capabilty in content negotiation?

from Clytie (vi-VN, Vietnamese free-software translation team / nhóm Việt hóa phần mềm tự do)
http://groups-beta.google.com/group/vi-VN




--
Maarten Brouwers (murb)
http://www.murb.nl

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to