You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by "Piroumian, Konstantin" <KP...@flagship.ru> on 2001/04/13 11:01:49 UTC

[C2] I18nTransformer

Hi, cocooners!

Does anybody use the I18nTransformer in Cocoon 2?
Will it be improved to implement all the Infozone group's I18nProcessor
features, such as: attribute translation, param substitution? (will it
support all features and syntax from the Infozone group i18n proposal?)

Also, I have a question about language determination. Is it possible to save
the choosed language in session or a cookie with the I18nTransformer or I
have to do it with XSP or an action?

Thanks in advance.

Best regards,

Konstantin Piroumian
Software engineer

Protek Flagship LLC
Phone: + 7 095 795 0520 (add. 1288)
Fax: + 7 095 795 0525
E-mail: kpiroumian@flagship.ru
http://www.protek.com


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: [C2] I18nTransformer

Posted by "Piroumian, Konstantin" <KP...@flagship.ru>.
> Hi, cocooners!
>
> Does anybody use the I18nTransformer in Cocoon 2?
> Will it be improved to implement all the Infozone group's I18nProcessor
> features, such as: attribute translation, param substitution? (will it
> support all features and syntax from the Infozone group i18n proposal?)
>
> Also, I have a question about language determination. Is it possible to
save
> the choosed language in session or a cookie with the I18nTransformer or I
> have to do it with XSP or an action?

I've found that language selection from session and cookie is implemented in
the org.apache.cocoon.acting.LangSelect action class: getLang method stores
language two letter identifier in the session if the session is not null.
I18nTransformer uses that method to determine user's language.
But storing language code in cookie must be coded sepatately elsewhere (in
XSP or another action).

>
> Thanks in advance.
>
> Best regards,
>
> Konstantin Piroumian
> Software engineer
>
> Protek Flagship LLC
> Phone: + 7 095 795 0520 (add. 1288)
> Fax: + 7 095 795 0525
> E-mail: kpiroumian@flagship.ru
> http://www.protek.com
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: [C2] I18nTransformer

Posted by Berin Loritsch <bl...@apache.org>.
"Piroumian, Konstantin" wrote:
> 
> > > Hi, cocooners!
> > >
> > > Does anybody use the I18nTransformer in Cocoon 2?
> > > Will it be improved to implement all the Infozone group's I18nProcessor
> > > features, such as: attribute translation, param substitution? (will it
> > > support all features and syntax from the Infozone group i18n proposal?)
> >
> > Nobody ever stated to use or improve it. But of course if you would like
> > to volunteer to improve it your are very welcome.
> 
> Ok. If we decide to use it in our project then I'll improve it and post
> improved version to cocooners for testing and further improvement
> suggestions.
> 
> > >
> > > Also, I have a question about language determination. Is it possible to
> save
> > > the choosed language in session or a cookie with the I18nTransformer or
> I
> > > have to do it with XSP or an action?
> >
> > Honestly I have no idea how the i18nTransformer works.
> 
> I've solved that problem already. To store the lang param in session you'll
> need a created session before transformation occurs. To store in a cookie
> you'll need to implement it manually.
> It is very useful for multilanguage site creation. You simply wrap all your
> language dependent parts into <i:tr> tags (I would change it into
> <i18n:text>) and they are replaced by according data from the dictionary
> file.
> 
> Is there anybody except me who is also interested in it or I am the only
> potential volunteer?

I am interested in it, but I don't have an immediate need for it.  I work for
a small company--as a consequence I can only contribute to what we currently
need.  If one of our major contracts ever goes international, the i18n would
be essential.  That isn't happening this year though...

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: [C2] I18nTransformer

Posted by Michal Siemaszko <mi...@panix.com>.
On Fri, 13 Apr 2001, Piroumian, Konstantin wrote:

(...)
>
> I've solved that problem already. To store the lang param in session you'll
> need a created session before transformation occurs. To store in a cookie
> you'll need to implement it manually.
> It is very useful for multilanguage site creation. You simply wrap all your
> language dependent parts into <i:tr> tags (I would change it into
> <i18n:text>) and they are replaced by according data from the dictionary
> file.
>
> Is there anybody except me who is also interested in it or I am the only
> potential volunteer?
>
I'd be interested.. Maybe it's silly, but I tried doing the same thing
through ResourceBundle, but it never worked (for some reason, the bundle
could not be located from within Cocoon).
This seems though like a perfect match.

M.


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: [C2] I18nTransformer

Posted by "Piroumian, Konstantin" <KP...@flagship.ru>.
> > Hi, cocooners!
> >
> > Does anybody use the I18nTransformer in Cocoon 2?
> > Will it be improved to implement all the Infozone group's I18nProcessor
> > features, such as: attribute translation, param substitution? (will it
> > support all features and syntax from the Infozone group i18n proposal?)
>
> Nobody ever stated to use or improve it. But of course if you would like
> to volunteer to improve it your are very welcome.

Ok. If we decide to use it in our project then I'll improve it and post
improved version to cocooners for testing and further improvement
suggestions.

> >
> > Also, I have a question about language determination. Is it possible to
save
> > the choosed language in session or a cookie with the I18nTransformer or
I
> > have to do it with XSP or an action?
>
> Honestly I have no idea how the i18nTransformer works.

I've solved that problem already. To store the lang param in session you'll
need a created session before transformation occurs. To store in a cookie
you'll need to implement it manually.
It is very useful for multilanguage site creation. You simply wrap all your
language dependent parts into <i:tr> tags (I would change it into
<i18n:text>) and they are replaced by according data from the dictionary
file.

Is there anybody except me who is also interested in it or I am the only
potential volunteer?

Kot.

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


Re: [C2] I18nTransformer

Posted by giacomo <gi...@apache.org>.

On Fri, 13 Apr 2001, Piroumian, Konstantin wrote:

> Hi, cocooners!
>
> Does anybody use the I18nTransformer in Cocoon 2?
> Will it be improved to implement all the Infozone group's I18nProcessor
> features, such as: attribute translation, param substitution? (will it
> support all features and syntax from the Infozone group i18n proposal?)

Nobody ever stated to use or improve it. But of course if you would like
to volunteer to improve it your are very welcome.

>
> Also, I have a question about language determination. Is it possible to save
> the choosed language in session or a cookie with the I18nTransformer or I
> have to do it with XSP or an action?

Honestly I have no idea how the i18nTransformer works.

Giacomo

>
> Thanks in advance.
>
> Best regards,
>
> Konstantin Piroumian
> Software engineer
>
> Protek Flagship LLC
> Phone: + 7 095 795 0520 (add. 1288)
> Fax: + 7 095 795 0525
> E-mail: kpiroumian@flagship.ru
> http://www.protek.com
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>
>
>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>