Web site translation through PHP function
coolo at kde.org
Tue Feb 19 15:04:12 UTC 2002
On Dienstag, 19. Februar 2002 15:52, Eric Bischoff wrote:
> Le Mardi 19 Février 2002 15:48, Chris Howells a écrit :
> > Hi,
> > The kdeedu people have been asking for it to be possible to provide
> > translations on edu.kde.org.
> > I recently thougt about the method of the method of implementing i18n on
> > websites, and came up with the idea of a i18n("This string is to be
> > translated") type call, where the return value of the function depends on
> > the language requested (e.g. it would work pretty much like PHP.
> > Would people (e.g. translator especially) be happy with something like
> > this?
> > Would it also be useful to implement this method of translations on
> > kde.org?
> Coolo, how much would it take to adapt your xml2pot and po2xml scripts for
> HTML? It would be much easier and powerful a mechanism to use than what
> Chris is proposing, and it would be a killer application for translating
> any web site! :-)
xml2pot relies on the semantics of the docbook DTD, while there is nothing
like that in HTML - at least not that well defined. And HTML isn't as easy to
parse, so it would be a rewrite.
More information about the kde-www