Version francaise / Deutsche Übersetzung
I tried to write the entire content of this site in the three languages french, german and english, so that they have an equal status. It is rather tiresome, but I use, in order to avoid typing the whole pages three times, a Perl script, mlhtml2html, that translates what I call MLHTML (multi-language HTML) into HTML, so that I need to type in three times only the words .
There are some HTML preprocessors (for example htmlpp by Isil, or this other htmlpp). But I wished tags as short as possible, whereas, in those preprocessors, they are longer. Sample:
| In MLHTML | <h1>%frBonjour%enHello%deHallo%^ !</h1> | %!frVersion française ici%frCette page est en français.%^ |
|---|---|---|
| With Isil's htmlpp | <h1><#fr>Bonjour</#fr> <#en>Hello</#en> <#de>Hallo</#de> !</h1> | <//#fr>Version française ici <#fr>Cette page est en français.</#fr> |
| With the other htmlpp | <h1>.if ("$(LANG)" eq "fr") Bonjour ! .elsif ("$(LANG)" eq "en") Hello ! .elsif ("$(LANG)" eq "de") Hallo ! .endif </h1> | .if ("$(LANG)" ne "fr") Version française ici .else Cette page est en français. .endif |
Anyway, mlhtml2html was designed to be able to be used simultaneously with a preprocessor : you simply can execute it first, and then execute the preprocessor on the result.
N.B. This software is distributed in the hope that it will be useful, but without any warranty .
| With the aid of samples | Rational presentation |
|---|---|
|
Let's make a page with name "index.html", that displays "hello" in
the different languages. There will be at the end
"index.html.fr", "index.html.de", "index.html.en",
which will be automatically selected by the web server, according to
the language of the reader.
|
|
You can write to me by e-mail at following address: Christophe.Deroulers @ ens.fr (Especially if you find some english mistakes in this page... It will be a pleasure for me to correct them.)
Back to the index - Back to the list of the homepages of the ENS