views:

249

answers:

3

Hello.

Is there something like gettext for HTML or LaTeX? It would be great for generating simple bilingual webpages or LaTeX documents that should be kept in sync. Is there something like that already? I guess there must be some Perl script for that, but I couldn't find one. :-)

Thanks!

A: 

Probably not. Translation software is problematic because of the differences in connotation and grammar from language to language. I'd imagine (though i've never used gettext) that gettext might work OK for short strings, but for a full document, you're sure to run into problems.

Mica
That's what I thought. :-(So that means if I would like to write a small book in 2 languages, I can't do the same I'd do with a C program... I guess I have to live with that.
Jay
unless you can speak both languages fluently, I wouldn't use translation software to accomplish translation. you'd need to be able to proof the copy in it's native form. Now, if you want to simply typeset your documents in two different languages, LaTeX is brilliant for that.
Mica
I think I found something: http://po4a.alioth.debian.org/I'll check it out.
Jay
A: 

So jay, how did po4a work out? I'm also looking to have multiple versions of the same document, by translating chunks of text using gettext or whatever.

Dieter_be
A: 

You might want to look into OASIS XLIFF. http://docs.oasis-open.org/xliff/xliff-core/xliff-core.html

Pål Nes