A bilingual blog solution
-
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.
- The topic ‘A bilingual blog solution’ is closed to new replies.