Re: any suggestions for creating a multi-lingual site?

This WebDNA talk-list message is from

1999


It keeps the original formatting.
numero = 25729
interpreted = N
texte = Nicolas & Christer, Thank you! I should probably do this checking for a cookie and setting the mime headers in an include on each page as many people bookmark a lot of the pages on this site. And if the person does not allow cookies to be set (I guess I would test for cookies by setting a cookie then trying to read it right back? If no cookie then they don't allow them?), then the site will work, they just won't be able to customize anything on the site. Of course exactly how much and whyt features will be allowed to be customized is still being worked out. Thanks again! Dale> -----Original Message----- > From: Christer Olsson [SMTP:christer@ljusaideer.se] > Sent: Tuesday, December 21, 1999 17:39 > To: WebDNA-Talk@talk.smithmicro.com > Subject: Re: any suggestions for creating a multi-lingual site? > > > > As I would prefer not to pass the langauge choice in the URL > >(trying to keep > > > the URLs as clean as possible) it would seem that I need to read the > cookie > > > on each page. Having never worked with cookies before, is there a > > > performance penalty to doing this? Or is the cookie in memory once it > is > > > read the first time? > > > >Use the headers. You have 40 of them and you can even stock more than one > >variable in each of them, if you have the technique (that is not that > hard). > > > >You can stock the cart value in a cookie. You can also stock other > variables > >in different cookie. Cookies are usually retrieved by the browsers at > >startup and there should be no performance penalty. Only problem: what if > >somebody does not allow cookies to be set? > > A cool way to pass things is to use the MIME headers, which you can do > with a combo of [SETMIMEHEADER] and [LISTMIMEHEADERS]. > > On page one (where you would set your cookie), set a MIME header: > > [SETMIMEHEADER name=myCoolName&value=myValue] > > On the next page read your value with: > > [ListMIMEHeaders name=myCoolName&exact=T] > > ************************************************************* > Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 > Ljusa Idéer AB S-211 37 Malmoe Fax +46 40 97 99 77 > Sweden http://www.ljusaideer.se > > ------------------------------------------------------------- > Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging > Server. > To end your Mail problems go to . > > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Associated Messages, from the most recent to the oldest:

    
  1. Re: any suggestions for creating a multi-lingual site? (Therio, Dale 1999)
  2. Re: any suggestions for creating a multi-lingual site? (Christer Olsson 1999)
  3. Re: any suggestions for creating a multi-lingual site? (Nicolas Verhaeghe 1999)
  4. Re: any suggestions for creating a multi-lingual site? (Michael O Shea 1999)
  5. Re: any suggestions for creating a multi-lingual site? (Therio, Dale 1999)
  6. Re: any suggestions for creating a multi-lingual site? (Michael O Shea 1999)
  7. Re: any suggestions for creating a multi-lingual site? (Therio, Dale 1999)
  8. any suggestions for creating a multi-lingual site? (Therio, Dale 1999)
  9. Re: any suggestions for creating a multi-lingual site? (Jesse Williams Proudman 1999)
Nicolas & Christer, Thank you! I should probably do this checking for a cookie and setting the mime headers in an include on each page as many people bookmark a lot of the pages on this site. And if the person does not allow cookies to be set (I guess I would test for cookies by setting a cookie then trying to read it right back? If no cookie then they don't allow them?), then the site will work, they just won't be able to customize anything on the site. Of course exactly how much and whyt features will be allowed to be customized is still being worked out. Thanks again! Dale> -----Original Message----- > From: Christer Olsson [SMTP:christer@ljusaideer.se] > Sent: Tuesday, December 21, 1999 17:39 > To: WebDNA-Talk@talk.smithmicro.com > Subject: Re: any suggestions for creating a multi-lingual site? > > > > As I would prefer not to pass the langauge choice in the URL > >(trying to keep > > > the URLs as clean as possible) it would seem that I need to read the > cookie > > > on each page. Having never worked with cookies before, is there a > > > performance penalty to doing this? Or is the cookie in memory once it > is > > > read the first time? > > > >Use the headers. You have 40 of them and you can even stock more than one > >variable in each of them, if you have the technique (that is not that > hard). > > > >You can stock the cart value in a cookie. You can also stock other > variables > >in different cookie. Cookies are usually retrieved by the browsers at > >startup and there should be no performance penalty. Only problem: what if > >somebody does not allow cookies to be set? > > A cool way to pass things is to use the MIME headers, which you can do > with a combo of [setmimeheader] and [listmimeheaders]. > > On page one (where you would set your cookie), set a MIME header: > > [SETMIMEHEADER name=myCoolName&value=myValue] > > On the next page read your value with: > > [ListMIMEHeaders name=myCoolName&exact=T] > > ************************************************************* > Christer Olsson Stora Nygatan 21 Phone +46 40 791 50 > Ljusa Idéer AB S-211 37 Malmoe Fax +46 40 97 99 77 > Sweden http://www.ljusaideer.se > > ------------------------------------------------------------- > Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging > Server. > To end your Mail problems go to . > > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Therio, Dale

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

So what ya working on? (or have you completed?) (2004) [searchString] (1997) EIMS Problems (1997) Running _every_ page through WebCat ? (1997) [WebDNA] Databases not staying open (2010) Posting XML data to SSL site (2002) Webstar 1.3.1 PPC (1997) WebDelivery downloads alias, not original ? (1997) [Lookup] on secure page not returning anything (2000) Re[2]: New syntax feedback for 4.0 (2000) WebCat B13 Mac CGI -- Frames question (1997) redirect with frames (1997) Help formatting search results w/ table (1997) Separate SSL Server (1997) A few questions. . . (1997) Price Hacking (1998) autosensing lanague selection (1997) Error (1997) Country & Ship-to address & other fields ? (1997) webcat 4.5 (2003)