homepage Welcome to WebmasterWorld Guest from 54.167.144.4
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Funky JS idea for Multilingual stuff
Is it doable?
dcheney




msg:1481170
 9:16 pm on Jun 4, 2002 (gmt 0)

Howdy,
I've got a largish site which is about 90-95% proper names. Most fits into a series of proper titles. So with that background, I'm experimenting with a JS mess to allow the titles to adjust to the user's requested language.
If you want to see a quick test of how the scheme might work look on my site at /test/langsys1/test3.html
The various JS files are in that same directory. (Beware this is obviously a pretty early test!)
One problem I seem to be hitting is detecting the user's preferred language. The document.language or document.userLanguage seem to always return what en (or en-us) regardless of the values I set in the browser's preferences. Is there a way to obtain the preferred list?
In the end I expect I'll provide a cookie method to override it the setting anyway, but it would be nice to have it a bit more user friendly.
(I'd be happy to outline the general scheme of the routines if that would be helpful. :-)

Peace,
David

 

Eric_Jarvis




msg:1481171
 4:08 pm on Jun 5, 2002 (gmt 0)

there are some difficulties with any form of content-negotiation to choose a language, whether it be server side or javascript

you are assuming monolingual users who only ever use their own computer...for a lot of international, multilingual, organisations sucha s ours that simply isn't the case all the time

I work with over 20 languages...most of which I don't speak...the "guest" workstation in our office has been used over the last couple of months by speakers of Spanish, Japanese, Chinese, Lithuanian, French and Italian

so...however you end up doing it...don't do it in such a way as to enforce an automatic choice on users

dcheney




msg:1481172
 6:48 pm on Jun 5, 2002 (gmt 0)

Do you think that requiring them to allow a cookie is too much to ask? (in my current scheme that would be the worst case, I think)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved