Tristan Miller
Usenet Archive
- Joined
- Sep 27, 2002
- Messages
- 138
- Reaction score
- 0
Greetings.
I would like to produce a static multilingual website in XHTML. Is it possible to specify each web page in its own XML file, but have all of the translations encapsulated in that one file, and then process each XML file to generate separate language-variant XHTML files?
For example, say we have a file foo.xml which contains, in part, something like the following:
<body>
<h1>
<only lang="de">Guten Tag!</only>
<only lang="en">Hello!</only>
<only lang="hu">Jó napot kivánok!</only>
<only lang="fr">Bonjour!</only>
</h1>
</body>
I want to be able to run some simple command-line utility which will automatically generate four separate XHTML files foo.de.html, foo.en.html, foo.hu.html, and foo.fr.html, containing, respectively,
<body>
<h1>
Guten Tag!
</h1>
</body>
<body>
<h1>
Hello!
<h1>
</body>
And so on.
If this is possible, how do I go about doing this, and what software do I need? (I am running a GNU/Linux system.)
Regards,
Tristan
I would like to produce a static multilingual website in XHTML. Is it possible to specify each web page in its own XML file, but have all of the translations encapsulated in that one file, and then process each XML file to generate separate language-variant XHTML files?
For example, say we have a file foo.xml which contains, in part, something like the following:
<body>
<h1>
<only lang="de">Guten Tag!</only>
<only lang="en">Hello!</only>
<only lang="hu">Jó napot kivánok!</only>
<only lang="fr">Bonjour!</only>
</h1>
</body>
I want to be able to run some simple command-line utility which will automatically generate four separate XHTML files foo.de.html, foo.en.html, foo.hu.html, and foo.fr.html, containing, respectively,
<body>
<h1>
Guten Tag!
</h1>
</body>
<body>
<h1>
Hello!
<h1>
</body>
And so on.
If this is possible, how do I go about doing this, and what software do I need? (I am running a GNU/Linux system.)
Regards,
Tristan