<?xml version="1.0"?>
<rss version="2.0">
 <channel>
  <title>browser / user chooses display language? | WPDFD.com Forums</title>
  <link>http://www.wpdfd.com/forums/wpdfd/layout/browser__user_chooses_display_language/</link>
  <description>A Layout forum thread at WPDFD.com</description>
  <language>en-us</language>
  <pubDate>03/30/05, 089 38 2005 2005:%i:1112161081 00:38:01</pubDate>
  <lastBuildDate>06/07/13, 158 00 2013 2013:%i:1370588452 03:00:52</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>NineLabs Framework Feed Generator</generator>
  <managingEditor>sitemaster@wpdfd.com</managingEditor>
  <webMaster>sitemaster@wpdfd.com</webMaster>
     <item>
    <title>Bradanderson  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/browser__user_chooses_display_language/#p1855</link>
    <description><![CDATA[I write pages in both Japanese and English. I want to have the same basic content on each page (especially ones with photos, etc). Is it possible to write the page in both languages and through CSS have either the user or the browser select which language to display based on their defaults?<br />Currently I am just duplicating content and making individual pages.<br />Thanks in advance,<br />Brad<br />I Did That Photography - ididthat.biz<br />bridalsnap.com]]></description>
    <pubDate>03/30/05, 089 38 2005 2005:%i:1112161081 00:38:01</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/browser__user_chooses_display_language/#p1855</guid>
   </item>
     <item>
    <title>Baxter  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/browser__user_chooses_display_language/#p1856</link>
    <description><![CDATA[Yes, with some caveats.. the easy way to do it is to have all the text, place all english text in one box with an id, then all the foreign language text in a box with another id.<br /><br />If you have to have text here and text there (like for menus, for example) use classes instead of IDs.<br /><br />Then just use a simple javascript switch to hide one and display the other using display block and display none. Same basic concept as a stylesheet switcher. <br /><br />Then go one step further and save the preference to a cookie, and load the appropriate stylesheet dependent on the cookie value.<br /><br />The trick is getting the japanese characters to display, and working past text direction issues, but I'm assuming you've already sorted those out.]]></description>
    <pubDate>03/31/05, 090 02 2005 2005:%i:1112295722 14:02:02</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/browser__user_chooses_display_language/#p1856</guid>
   </item>
     <item>
    <title>Bradanderson  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/browser__user_chooses_display_language/#p1857</link>
    <description><![CDATA[Baxter, thank you for your reply. I had considered the idea of using classes or id's for this, but wasn't sure how to go about switching it for the appropriate language/browser.<br />You said javascript would be able to do that. Unfortunately, I am not very good at JS. Could you point me to a link or article on how to do this? I imagine it's difficult to make this?<br />Thanks in advance,<br />Brad]]></description>
    <pubDate>04/13/05, 103 55 2005 2005:%i:1113447331 22:55:31</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/browser__user_chooses_display_language/#p1857</guid>
   </item>
     <item>
    <title>Baxter  said:</title>
    <link>http://www.wpdfd.com/forums/wpdfd/layout/browser__user_chooses_display_language/#p1858</link>
    <description><![CDATA[What you need to do is hunt around for style switchers. There's js based ones, php based ones, etc.<br /><br />In your case, you probably want one that stores the preference as a cookie or something.<br /><br />Your document will have two divs, say &quot;en&quot; and &quot;jp&quot; with the appropriate language in each one. Your 'en' stylesheet will display:none on the 'jp' div and vice versa.<br /><br />Besides stylesheets, you could also take a look at how sitepoints expanding/collapsing sidebar works... basically the same concept.]]></description>
    <pubDate>04/14/05, 104 52 2005 2005:%i:1113497555 12:52:35</pubDate>
    <guid>http://www.wpdfd.com/forums/wpdfd/layout/browser__user_chooses_display_language/#p1858</guid>
   </item>
   </channel>
</rss