You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Lassi Immonen <li...@urova.fi> on 2000/09/19 16:08:05 UTC

[C2]LangTransformer

Hi,

In attached file you find LangTransformer which strips out all elements
which have attribute lang="not the lang we want".
If somebody finds it useful feel free to use it. It would be nice to hear
comments whether this kind of solution would be viable way to build
multilanguage sites and what are possible drawbacks. To content authors it
should be easier to maintain one file instead of bunch of language versions
in different directories anyway.
I haven't tested this much and not with files having much stuff.

Thanks,
  Lassi Immonen

Re: [C2]LangTransformer

Posted by Stefano Mazzocchi <st...@apache.org>.
Lassi Immonen wrote:
> 
> Hi,
> 
> In attached file you find LangTransformer which strips out all elements
> which have attribute lang="not the lang we want".
> If somebody finds it useful feel free to use it. It would be nice to hear
> comments whether this kind of solution would be viable way to build
> multilanguage sites and what are possible drawbacks. To content authors it
> should be easier to maintain one file instead of bunch of language versions
> in different directories anyway.
> I haven't tested this much and not with files having much stuff.

Thanks, I'll take a look and let you know my opinions about it.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<st...@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------

Re: [C2]LangTransformer

Posted by Lassi Immonen <li...@urova.fi>.
> > To content authors it
> > should be easier to maintain one file instead of bunch of
> > language versions in different directories anyway.
>
> well, I have exactly opposite experience. With one file approach you make
> the assumption that there is one person that does all the translation.
This
> might be true in small sites with two-three languages; however, it is
_very_
> rarely the case in bigger sites that only one person is writing all the
> different translations. And when there are multiple persons then it is
> easier for them to edit different files, rather than one monolithic one...
>
You are probably right for big sites, but we are going to build rather small
site (in number of different pages to user) so I still think all content per
page in one file is better for us. After construction there is not going to
be that much modification to site.
And why not use xml-capabilities at editing level too, separating one edit
file/per language for translator or maybe original language and language to
be translated and then combine the results back. (Hmm, how could that be
done easily, CVS?).
And I think in the future we are going to use some sort of database of
xml-content anyway.

 Lassi Immonen


Re: [C2]LangTransformer

Posted by Stefano Mazzocchi <st...@apache.org>.
Neeme Praks wrote:
> 
> > -----Original Message-----
> > From: Lassi Immonen [mailto:limmonen@urova.fi]
> > Sent: Tuesday, September 19, 2000 4:08 PM
> 
> [snip]
> 
> > To content authors it
> > should be easier to maintain one file instead of bunch of
> > language versions in different directories anyway.
> 
> well, I have exactly opposite experience. With one file approach you make
> the assumption that there is one person that does all the translation. This
> might be true in small sites with two-three languages; however, it is _very_
> rarely the case in bigger sites that only one person is writing all the
> different translations. And when there are multiple persons then it is
> easier for them to edit different files, rather than one monolithic one...

I share this vision.

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<st...@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------



RE: [C2]LangTransformer

Posted by Neeme Praks <ne...@one.lv>.
> -----Original Message-----
> From: Lassi Immonen [mailto:limmonen@urova.fi]
> Sent: Tuesday, September 19, 2000 4:08 PM

[snip]

> To content authors it
> should be easier to maintain one file instead of bunch of
> language versions in different directories anyway.

well, I have exactly opposite experience. With one file approach you make
the assumption that there is one person that does all the translation. This
might be true in small sites with two-three languages; however, it is _very_
rarely the case in bigger sites that only one person is writing all the
different translations. And when there are multiple persons then it is
easier for them to edit different files, rather than one monolithic one...

Neeme