• Hello,
    Posting in two different languages is a feature some would like to see implemented. There is probably a rather easy way to do this server-side, but I’m still too new to PHP to do so ??
    So I’ve made up an alternate solution, which is very easy to add, and client side. See it in action here : https://planetozh.com (or https://frenchfragfactory.net/ozh/index.php if you cant stand being framed ??

    Basically, here is how it works.
    The posts have to be duplicated in two languages and 2 divs :
    <div lang="en">Hello this is a post</div>
    <div lang="fr">Salut c'est un billet</div>

    Two links (like “in english” and “in french”) and a few lines of javascript make divs of a given “lang” appear or disappear, and I added cookie support so that when you come back or load another page, it only displays preferred language.

    I’ve tested it with MSIE6, Firefox and Konqueror, no flaw, and it validates.
    If anyone is interested, I can make a more detailled guide to explain how to add this to your site.

Viewing 16 replies (of 16 total)
  • I am interested in creating a bilingual site as well powered by WP. I would like it so each post could be created in both languages, and the users could click a small icon to switch the post to the other language. Will keep an eye on the boards for any cool solutions!

Viewing 16 replies (of 16 total)
  • The topic ‘A bilingual blog solution’ is closed to new replies.