Re: i18n

2003-06-24 Thread Konstantin Piroumian



Take a look at i18n transformer 
configuration in your sitemap. Probably it defines the 'untranslated-text' 
parameter which is used instead of the key value.
 
-- Konstantin

  - Original Message - 
  From: 
  Kavitha Ramesh 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, June 24, 2003 18:30
  Subject: i18n 
  
  Hi,
   
  I read the following in a documentation:
   
  untranslated-text: text used for untranslated keys 
  (default is to output the key name).
   
  But when I dont have translations in my messages.xml, i get something 
  like "untranslated-text".Actually it should display the key name.I use IBM 
  Websphere 4.0 with Cocoon 2.0.
  If someone has any solutions pls tell me.
   
  Regards
  Kavitha Ramesh.
  
  
  Do you Yahoo!?SBC 
  Yahoo! DSL - Now only $29.95 per month!


i18n

2003-06-24 Thread Kavitha Ramesh
Hi,
 
I read the following in a documentation:
 
untranslated-text: text used for untranslated keys (default is to output the key name).
 
But when I dont have translations in my messages.xml, i get something like "untranslated-text".Actually it should display the key name.I use IBM Websphere 4.0 with Cocoon 2.0.
If someone has any solutions pls tell me.
 
Regards
Kavitha Ramesh.
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!

Re: i18n not working

2003-06-03 Thread Konstantin Piroumian
From: "Mato Mira, Fernando" <[EMAIL PROTECTED]>
> > From: Mato Mira, Fernando [mailto:[EMAIL PROTECTED]
> >
> >   I am placing the i18n transformer just before serialization
> > and it's not
> > working. The namespace
> > is declared in the i18n:translate element itself.
> >
> > Cocoon version: 2.1m2
>
> The transformer does not accept the 2.0 namespace. It has to be the 2.1
> for it to work. I guess this is a bug.
>

Ah, I see.

If you read the warning message carefully, then you'll see that it's not a
bug, but a feature. If you are using i18n transformer from Cocoon 2.1 or
higher then you should update your stylesheets also, because the syntax was
slightly changed and that's why a new namespace used.

I don't think that it was a good decision to drop support for the old
syntax, but otherwise you wouldn't know about the changes in syntax and I
had no enough time to maintain that. Also, I think that it's quite easy to
implement an XSLT stylesheet to make automatic conversion of your pages. Any
help with it is apreciated.

-- Konstantin



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: i18n not working

2003-06-03 Thread Mato Mira, Fernando
> From: Mato Mira, Fernando [mailto:[EMAIL PROTECTED]
>
>   I am placing the i18n transformer just before serialization 
> and it's not
> working. The namespace
> is declared in the i18n:translate element itself.
> 
> Cocoon version: 2.1m2

The transformer does not accept the 2.0 namespace. It has to be the 2.1
for it to work. I guess this is a bug.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: i18n not working

2003-06-03 Thread Konstantin Piroumian
From: "Mato Mira, Fernando" <[EMAIL PROTECTED]>

> Hello
>
>   I am placing the i18n transformer just before serialization and it's not
> working. The namespace
> is declared in the i18n:translate element itself.

Please post the relevant snippet from your XML here.
Having i18n transformer just before serialization is not a problem, that
worked before and hopefully should work now.

Check that you have correct input to the i18n transformer.

Regards,
  Konstantin

>
> Cocoon version: 2.1m2
>
> Thanks
>
> --
> Fernando D. Mato Mira   [EMAIL PROTECTED]
> Thomson Dialog
> www.dialog.com
>
> E-MAIL NOTICE:
> This message (plus any attachments) is confidential and may be subject
> to lawyer-client privilege.  Use without permission is strictly
> prohibited.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



i18n not working

2003-06-03 Thread Mato Mira, Fernando
Hello

  I am placing the i18n transformer just before serialization and it's not
working. The namespace
is declared in the i18n:translate element itself.

Cocoon version: 2.1m2

Thanks

--
Fernando D. Mato Mira   [EMAIL PROTECTED] 
Thomson Dialog
www.dialog.com

E-MAIL NOTICE:
This message (plus any attachments) is confidential and may be subject
to lawyer-client privilege.  Use without permission is strictly
prohibited.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re[2]: Dynamic i18n catalogs?

2003-03-26 Thread Jens Maukisch
Hi,

> 
>  
>   
>   
> ...
> Is it possible, to give the i18n-transformer within
> the pipeline a catalogue location, because I need parameter{1}
> to generate the catalog
> ...

as mentioned in the documentation the catalogue to be used could be
overridden at the pipeline level by secifying parameters called
catalogue-name and/or catalogue-location
e.g.:



hth

-- 
* best regards
* Jens Maukisch 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Dynamic i18n catalogs?

2003-03-26 Thread Björn Voigt
Jens Maukisch schrieb:
Hi,


is it possible to create dynamic catalogues for the i18n-Transformer?
I mean XSP or Generator createt catalogues.


iirc you can point the catalogue location to a cocoon pipeline which
generates your catalogue.
hth

	



 
 
...
Is it possible, to give the i18n-transformer within
the pipeline a catalogue location, because I need parameter{1}
to generate the catalog
...
 
 

Thank you



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Dynamic i18n catalogs?

2003-03-26 Thread Jens Maukisch
Hi,

> is it possible to create dynamic catalogues for the i18n-Transformer?
> I mean XSP or Generator createt catalogues.

iirc you can point the catalogue location to a cocoon pipeline which
generates your catalogue.

hth

-- 
* best regards
* Jens Maukisch 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Dynamic i18n catalogs?

2003-03-26 Thread Björn Voigt
Hi cocooners,

is it possible to create dynamic catalogues for the i18n-Transformer?
I mean XSP or Generator createt catalogues.
Thank you

Björn



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: AW: i18n namespace attribute in wml output

2003-03-05 Thread Joerg Heinicke
If the i18n transformer is the last transformer in the pipe, it has 
nothing to do with copying elements to the output. It is not Hans' 
fault, but probably Mr I18n Konstantin's ;-) On the other hand the 
Nokia's logic is very poor, because it is not correctly namespace aware.

What you can do? Add a transformer after the i18n, that does not copy 
the elements to the output (because this would copy every namespace node 
too), but creates every element new:


  

  


  

If I didn't forget anything, it should work :-)

Regards,

Joerg

Marco Rolappe wrote:
hi hans,

I had this problem too. it maybe a default template in your stylesheet(s)
which is applied to all elements not explicitly matched in your
stylesheet(s). this one probably copies all nodes over including namespace
nodes.
I don't really have a solution, since I also had another issue, which is a
rather strange one; I changed the position of the i18n transform within the
pipeline and the namespace declarations went away.
see following example resource, which works. the actual transformation to
wml (from custom markup) is done via the xslt transform with amore2wml.xsl.
...



























...

-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Auftrag von Dr. Hans M. Rupp
Gesendet: Mittwoch, 5. Marz 2003 13:22
An: Coocon-user Liste
Betreff: i18n namespace attribute in wml output
Hallo!

We trying to use Cocoon with the i18n Transformer to generate wml
output. We have noticed that the generated wml code contains an i18n
namespace attribute.
This causes the Nokia Wap toolkit not to recognize the output as wml.
How can we configure the i18n Transformer so that no namespace attribute
is inserted into the output?
Many thanks,

Hans


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


AW: i18n namespace attribute in wml output

2003-03-05 Thread Marco Rolappe
hi hans,

I had this problem too. it maybe a default template in your stylesheet(s)
which is applied to all elements not explicitly matched in your
stylesheet(s). this one probably copies all nodes over including namespace
nodes.

I don't really have a solution, since I also had another issue, which is a
rather strange one; I changed the position of the i18n transform within the
pipeline and the namespace declarations went away.

see following example resource, which works. the actual transformation to
wml (from custom markup) is done via the xslt transform with amore2wml.xsl.

...


































...

> -Ursprungliche Nachricht-
> Von: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Auftrag von Dr. Hans M. Rupp
> Gesendet: Mittwoch, 5. Marz 2003 13:22
> An: Coocon-user Liste
> Betreff: i18n namespace attribute in wml output
>
>
> Hallo!
>
> We trying to use Cocoon with the i18n Transformer to generate wml
> output. We have noticed that the generated wml code contains an i18n
> namespace attribute.
> This causes the Nokia Wap toolkit not to recognize the output as wml.
> How can we configure the i18n Transformer so that no namespace attribute
> is inserted into the output?
>
> Many thanks,
>
> Hans
> 
> Dr. Hans M. Rupp
> danet Internet Solutions GmbH
> Waldburgstr. 17-19
> 70563 Stuttgart
> Germany
>
> Fon +49 711 133 53 50
> Fax +49 711 133 53 53
>
> --
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



i18n namespace attribute in wml output

2003-03-05 Thread Dr. Hans M. Rupp
Hallo!

We trying to use Cocoon with the i18n Transformer to generate wml
output. We have noticed that the generated wml code contains an i18n
namespace attribute.
This causes the Nokia Wap toolkit not to recognize the output as wml.
How can we configure the i18n Transformer so that no namespace attribute
is inserted into the output?

Many thanks,

Hans

Dr. Hans M. Rupp
danet Internet Solutions GmbH
Waldburgstr. 17-19
70563 Stuttgart
Germany

Fon +49 711 133 53 50
Fax +49 711 133 53 53

--



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: sitemap and {session:locale} for i18n?

2003-02-27 Thread Enke, Michael
Stephane Amaudruz wrote:
> 
> First,a s you are using input module, you must ensure that they are declared
> in your Cocoon.xconf.
> 
> Second the session input module allows you to access session properties,
> such as creationTime, id, lastAccessedTime and so on.
> 
> I think that if you want to access attribute, you must use the session
> atribute input module instead.
>
> Hope this help.

Yes, that helped.
I never used input modules and didn't know that this are input modules.
For others interested: I use "{session-attr:locale}" where "session-attr"
is the name declared in cocoon.xconf for SessionAttributeModule
and locale is the session attribute.

Thank you,
Michael

> Steph.
> 
> SAM Development, Stephane Amaudruz
> E-Mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: sitemap and {session:locale} for i18n?

2003-02-26 Thread Stephane Amaudruz
First,a s you are using input module, you must ensure that they are declared
in your Cocoon.xconf.

Second the session input module allows you to access session properties,
such as creationTime, id, lastAccessedTime and so on.

I think that if you want to access attribute, you must use the session
atribute input module instead.

Hope this help.

Steph.

SAM Development, Stephane Amaudruz
E-Mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



sitemap and {session:locale} for i18n?

2003-02-25 Thread Enke, Michael
Hello,
I need some help with one issue concerning sitemap configuration:

I have this which is working well:

 
 
  
 
 


Somewhere earlier I created a session and LocaleAction is configured to save
the locale in the session. This is working. Now I want to
translate my abc.xml without the LocaleAction:

 
 
  
 
 

But this {session:locale} doesn't work.
Is this syntax wrong? Or not allowed?
I use 2.1 from early December.

Regards,
Michael

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



I18n and DB

2003-02-18 Thread Hong Gia Dinh
Title: I18n and DB





Hi all,


I am wondering if Cocoon support I18N and DB?
I mean if i choose one language for example English and then in page english i input some data and then save to database, the DB then must save this data for english part and then if i type these data but in french and save to DB this data typed in french must be saved in french!

and afterwards if i retrieve the values in DB if i currently in french mode, it must get french data!!!


can somebody tell me can Cocoon support something like that? and how to use it?


Thanks a lot
GD





i18n: setting the client’s character coding/charset to utf

2003-02-04 Thread leo leonid
Hi,
I want to be able to display (and edit via a web form) articles in 
different languages. Latin1 encoding is not sufficient because there 
are articles in Russian and Japanese as well. To store the articles on 
the server I use the latest (7.3.1) Postgresql with Database encoding 
set to UNICODE. So far everything works fine.

In the sitemap I set the encoding as follows
	
		1024
		UTF-8
	

This writes the tag in the head section of my HTML document


That seems to be what I need, but it seems not to be sufficient:

PROBLEM: When I call the Page in a UTF capable Browser (Mozilla 1.2) 
the character coding is set to ISO-8859-1. Only if I manually select 
Unicode from the menu everything displays fine. But if I reload the 
page the coding switches back to ISO-8859-1!

I get the same results when calling the cocoon i18n samples page.
(tested with Mozilla 1.2 on Mac OSX and Linux)

Any ideas how I can force the client to switch to UTF-8?

Thanks
/Leo



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>



Re: i18n + XSLT transformation

2003-01-30 Thread Joerg Heinicke
Oh, I didn't see that in the original mail. Your elements are wrongly 
nested.  in  is not possible.


  
  

  
  
  


So it should work. Do you really need the request parameters in XSL? 
Because XSLT is always cached with the passed params, you thwart more or 
less effective caching.

Regards,

Joerg

Cyril Vidal wrote:
Thanks for your help Joerg!!

Yes, I found a solution to my problem but I can't really explain it...

This runs well:














with the declaration of transformer xslt-with-param as bellow:



true





but this does'nt work:

























I thought both syntaxes were valid, aren't they?

Regards,

Cyril.

- Original Message -
From: "Joerg Heinicke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 30, 2003 8:36 PM
Subject: Re: i18n + XSLT transformation




Hello Cyril,

found this message just now (I still have nearly 500 unread Cocoon
messages since the weekend). Did you solve the problem? The sitemap
looks ok, maybe the namespace declaration in the XSLT is wrong?

Joerg

Cyril Vidal wrote:


Hi,

Just to go more deeply into Cocoon's comprehension, I've yesterday built


a


little example with the load of two differents stylesheets
(participantsFR.xsl and participantsEN.xsl) depending of the value of a
parameter passed in HTTP Request, and with the help of this


mailing-list,


I've achieved this.

Now, I would like to perform exactly the same task, but by another way:


via


the use of i18n Transformer.

To translate a static xml file, I've no difficult, and the following


except


of sitemap.xmap, (supposed I've created a catalogue directory named
translation with message_en.xml and message_fr.xml) works well:















The following adresses
http://localhost:8080/cocoon/hellococoon/try_it?locale=fr and
http://localhost:8080/cocoon/hellococoon/try_it?locale=en display the
specified translation.



But now, I would like to mix a XSLT transformation with the i18n
Transformation. (I mean, the different

text to be translated  appear now in the XSLT


file


participantsIN.xsl)

To perform this task, I've tried the following code (overlapping the


i18n


transformation inside the XSLT transformation...):





















But when I try by example the following adress:

http://localhost:8080/cocoon/hellococoon/try_it1?locale=en

I receive no error message but nor is the i18n transformation done:

I the HTML result, I have all my text to be
translated elements, without any effective translation.

Waht I have to change in sitemap to fix the problem?

Thanks again for your help,

Cyril.



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>






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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>





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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: i18n + XSLT transformation

2003-01-30 Thread Cyril Vidal
Thanks for your help Joerg!!

Yes, I found a solution to my problem but I can't really explain it...

This runs well:














with the declaration of transformer xslt-with-param as bellow:



true





but this does'nt work:

























I thought both syntaxes were valid, aren't they?

Regards,

Cyril.

- Original Message -
From: "Joerg Heinicke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 30, 2003 8:36 PM
Subject: Re: i18n + XSLT transformation


> Hello Cyril,
>
> found this message just now (I still have nearly 500 unread Cocoon
> messages since the weekend). Did you solve the problem? The sitemap
> looks ok, maybe the namespace declaration in the XSLT is wrong?
>
> Joerg
>
> Cyril Vidal wrote:
> > Hi,
> >
> > Just to go more deeply into Cocoon's comprehension, I've yesterday built
a
> > little example with the load of two differents stylesheets
> > (participantsFR.xsl and participantsEN.xsl) depending of the value of a
> > parameter passed in HTTP Request, and with the help of this
mailing-list,
> > I've achieved this.
> >
> > Now, I would like to perform exactly the same task, but by another way:
via
> > the use of i18n Transformer.
> >
> > To translate a static xml file, I've no difficult, and the following
except
> > of sitemap.xmap, (supposed I've created a catalogue directory named
> > translation with message_en.xml and message_fr.xml) works well:
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > The following adresses
> > http://localhost:8080/cocoon/hellococoon/try_it?locale=fr and
> > http://localhost:8080/cocoon/hellococoon/try_it?locale=en display the
> > specified translation.
> >
> >
> >
> > But now, I would like to mix a XSLT transformation with the i18n
> > Transformation. (I mean, the different
> >
> > text to be translated  appear now in the XSLT
file
> > participantsIN.xsl)
> >
> > To perform this task, I've tried the following code (overlapping the
i18n
> > transformation inside the XSLT transformation...):
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > But when I try by example the following adress:
> >
> > http://localhost:8080/cocoon/hellococoon/try_it1?locale=en
> >
> > I receive no error message but nor is the i18n transformation done:
> >
> > I the HTML result, I have all my text to be
> > translated elements, without any effective translation.
> >
> > Waht I have to change in sitemap to fix the problem?
> >
> > Thanks again for your help,
> >
> > Cyril.
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: i18n translation with attributes: 2 questions

2003-01-30 Thread Cyril Vidal
Yes, of course;-)) it runs well now..
Thanks for your help, Joerg.

PS:Something quite strange is happening: I see the answers of my messages
but not my messages themselves on the mailing-list...

- Original Message -
From: "Joerg Heinicke" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 30, 2003 8:33 PM
Subject: Re: i18n translation with attributes: 2 questions


> As I mentioned in my last mail, I guess you must use the "value"
> attribute for changing the text on the button:
>
> 
>
> The name is only interesting for DOM processings like
> document.form[0].elements["name of the form element"].
>
> Regards,
>
> Joerg
>
> Cyril Vidal wrote:
> > Hello Joerg,
> >
> > Thank you very much for your response.
> > I think I've done what you told me.
> > in my stylesheet:
> >
> > 
> >
> > and in my dictionaries
> > french:
> > Soumettre la requête
> >
> > english:
> >
> > Submit the request
> >
> > But unfortunately (I've stopped and restarded Tomcat), I always have the
> > same french message on the button, even when I ask for the english
version!
> >
> > Did I still make something wrong?
> >
> > Regards,
> >
> > Cyril.
> >
> >
> >
> >
> >
> >>Hello Cyril,
> >>
> >>Cyril Vidal wrote:
> >>
> >>>Hi,
> >>>
> >>>If some of you would have some tips for these two questions, I would be
> >
> > very
> >
> >>>grateful:
> >>>
> >>>1°) Under Cocoon 2.0.4 and Windows 2000:
> >>> I use a i18n Transformer (with french and english dictionnaries), and
> >
> > all's
> >
> >>>working fine with elements' translation. But not for attributes.
> >>>I have basicaly a HTML form with a submit button.
> >>>As described in the Cocoon's doc, I write the following in my
stylesheet
> >
> > to
> >
> >>>be translated:
> >>>
> >>>
> >>>and in my French dictionary:
> >>>Soumettre la requête
> >>>
> >>>in my English dictionary:
> >>>
> >>>Submit the request
> >>>
> >>>WHen I call http://localhost:8080/cocoon/tutoriel?locale=fr, I can see
> >
> > the
> >
> >>>correct value of the button, ie: 'Soumettre la requête'.
> >>>But when I call english translation with
> >>>http://localhost:8080/cocoon/tutoriel?locale=en, I still obtain the
same
> >>>french message, although I've specified the english version for this
> >>>button's value in the english dictionary.
> >>>Could it have to handle with the xerces's bug described in the doc??
> >>
> >>No, it works a bt different with attributes. In i18n:attr="..." you
> >>specify the attributes, that shell be translated. You have "value" in
> >>your above example, but there is no attribute "value", only "TYPE" and
> >>"NAME". So change it to i18n:attr="NAME" to get the value of the
> >>attribute "NAME" translated or add an attribute "value", which is used
> >>for the text on the button AFAIK. Furthermore the value of the attribute
> >>to translate is the key (above example: NAME="submit" => key =
> >>"submit"). This key must be used in the dictionary (=>  >>key="submit"/>).
> >>With the Xerces bug you won't get anything as output I think. At least
> >>you would have a stack trace in the log files.
> >>
> >>
> >>>2°)  In my styleshhet, I've got a second hidden input area.
> >>>
> >>>For each one, I have to use i18n:attr="value" in the sitemap and
> >>>Some text in the dictionary, I want to
> >>>internationalise both (That's I want to do precisely...).
> >>>
> >>>So, Is it possible to make a difference between them?
> >>>
> >>>
> >>>
> >>>choix
> >>>
> >>>choix_langue_fr |  >>>href="?locale=en">choix_langue_en
> >>>
> >>> //First attribute value
> >
> > to
> >
> >>>internationalise => fr in french and en in english
> >>
> >>Knowing the above at 1° this is no longer a problem:
> >>
> >>
> >>---this is the key

Re: i18n + XSLT transformation

2003-01-30 Thread Joerg Heinicke
Hello Cyril,

found this message just now (I still have nearly 500 unread Cocoon 
messages since the weekend). Did you solve the problem? The sitemap 
looks ok, maybe the namespace declaration in the XSLT is wrong?

Joerg

Cyril Vidal wrote:
Hi,

Just to go more deeply into Cocoon's comprehension, I've yesterday built a
little example with the load of two differents stylesheets
(participantsFR.xsl and participantsEN.xsl) depending of the value of a
parameter passed in HTTP Request, and with the help of this mailing-list,
I've achieved this.

Now, I would like to perform exactly the same task, but by another way: via
the use of i18n Transformer.

To translate a static xml file, I've no difficult, and the following except
of sitemap.xmap, (supposed I've created a catalogue directory named
translation with message_en.xml and message_fr.xml) works well:















The following adresses
http://localhost:8080/cocoon/hellococoon/try_it?locale=fr and
http://localhost:8080/cocoon/hellococoon/try_it?locale=en display the
specified translation.



But now, I would like to mix a XSLT transformation with the i18n
Transformation. (I mean, the different

text to be translated  appear now in the XSLT file
participantsIN.xsl)

To perform this task, I've tried the following code (overlapping the i18n
transformation inside the XSLT transformation...):





















But when I try by example the following adress:

http://localhost:8080/cocoon/hellococoon/try_it1?locale=en

I receive no error message but nor is the i18n transformation done:

I the HTML result, I have all my text to be
translated elements, without any effective translation.

Waht I have to change in sitemap to fix the problem?

Thanks again for your help,

Cyril.



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: i18n translation with attributes: 2 questions

2003-01-30 Thread Joerg Heinicke
As I mentioned in my last mail, I guess you must use the "value" 
attribute for changing the text on the button:



The name is only interesting for DOM processings like 
document.form[0].elements["name of the form element"].

Regards,

Joerg

Cyril Vidal wrote:
Hello Joerg,

Thank you very much for your response.
I think I've done what you told me.
in my stylesheet:



and in my dictionaries
french:
Soumettre la requête

english:

Submit the request

But unfortunately (I've stopped and restarded Tomcat), I always have the
same french message on the button, even when I ask for the english version!

Did I still make something wrong?

Regards,

Cyril.






Hello Cyril,

Cyril Vidal wrote:


Hi,

If some of you would have some tips for these two questions, I would be


very


grateful:

1°) Under Cocoon 2.0.4 and Windows 2000:
I use a i18n Transformer (with french and english dictionnaries), and


all's


working fine with elements' translation. But not for attributes.
I have basicaly a HTML form with a submit button.
As described in the Cocoon's doc, I write the following in my stylesheet


to


be translated:


and in my French dictionary:
Soumettre la requête

in my English dictionary:

Submit the request

WHen I call http://localhost:8080/cocoon/tutoriel?locale=fr, I can see


the


correct value of the button, ie: 'Soumettre la requête'.
But when I call english translation with
http://localhost:8080/cocoon/tutoriel?locale=en, I still obtain the same
french message, although I've specified the english version for this
button's value in the english dictionary.
Could it have to handle with the xerces's bug described in the doc??


No, it works a bt different with attributes. In i18n:attr="..." you
specify the attributes, that shell be translated. You have "value" in
your above example, but there is no attribute "value", only "TYPE" and
"NAME". So change it to i18n:attr="NAME" to get the value of the
attribute "NAME" translated or add an attribute "value", which is used
for the text on the button AFAIK. Furthermore the value of the attribute
to translate is the key (above example: NAME="submit" => key =
"submit"). This key must be used in the dictionary (=> ).
With the Xerces bug you won't get anything as output I think. At least
you would have a stack trace in the log files.



2°)  In my styleshhet, I've got a second hidden input area.

For each one, I have to use i18n:attr="value" in the sitemap and
Some text in the dictionary, I want to
internationalise both (That's I want to do precisely...).

So, Is it possible to make a difference between them?



choix

choix_langue_fr | choix_langue_en

 //First attribute value


to


internationalise => fr in french and en in english


Knowing the above at 1° this is no longer a problem:


---this is the key^^
dictionary:
en (or fr in the french dictionary)





trier

boutonNom

boutonPrenom

boutonTitre

boutonOrganisme





 //Second


attribute


ton internationalise: Soumettre la requête in French Submit the request


in


English


Same here:


dictionary:
Soumettre la requête




thanks in advance for your repsnses,

Best,

Cyril.


Regards

Joerg


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>






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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>





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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: i18n translation with attributes: 2 questions

2003-01-30 Thread Cyril Vidal

Hello Joerg,

Thank you very much for your response.
I think I've done what you told me.
in my stylesheet:



and in my dictionaries
french:
Soumettre la requête

english:

Submit the request

But unfortunately (I've stopped and restarded Tomcat), I always have the
same french message on the button, even when I ask for the english version!

Did I still make something wrong?

Regards,

Cyril.




> Hello Cyril,
>
> Cyril Vidal wrote:
> > Hi,
> >
> > If some of you would have some tips for these two questions, I would be
very
> > grateful:
> >
> > 1°) Under Cocoon 2.0.4 and Windows 2000:
> >  I use a i18n Transformer (with french and english dictionnaries), and
all's
> > working fine with elements' translation. But not for attributes.
> > I have basicaly a HTML form with a submit button.
> > As described in the Cocoon's doc, I write the following in my stylesheet
to
> > be translated:
> > 
> >
> > and in my French dictionary:
> > Soumettre la requête
> >
> > in my English dictionary:
> >
> > Submit the request
> >
> > WHen I call http://localhost:8080/cocoon/tutoriel?locale=fr, I can see
the
> > correct value of the button, ie: 'Soumettre la requête'.
> > But when I call english translation with
> > http://localhost:8080/cocoon/tutoriel?locale=en, I still obtain the same
> > french message, although I've specified the english version for this
> > button's value in the english dictionary.
> > Could it have to handle with the xerces's bug described in the doc??
>
> No, it works a bt different with attributes. In i18n:attr="..." you
> specify the attributes, that shell be translated. You have "value" in
> your above example, but there is no attribute "value", only "TYPE" and
> "NAME". So change it to i18n:attr="NAME" to get the value of the
> attribute "NAME" translated or add an attribute "value", which is used
> for the text on the button AFAIK. Furthermore the value of the attribute
> to translate is the key (above example: NAME="submit" => key =
> "submit"). This key must be used in the dictionary (=>  key="submit"/>).
> With the Xerces bug you won't get anything as output I think. At least
> you would have a stack trace in the log files.
>
> > 2°)  In my styleshhet, I've got a second hidden input area.
> >
> > For each one, I have to use i18n:attr="value" in the sitemap and
> > Some text in the dictionary, I want to
> > internationalise both (That's I want to do precisely...).
> >
> > So, Is it possible to make a difference between them?
> >
> > 
> >
> > choix
> >
> > choix_langue_fr |  > href="?locale=en">choix_langue_en
> >
> >  //First attribute value
to
> > internationalise => fr in french and en in english
>
> Knowing the above at 1° this is no longer a problem:
>
> 
> ---this is the key^^
> dictionary:
> en (or fr in the french dictionary)
>
> > 
> >
> > trier
> >
> >  > VALUE="nom">boutonNom
> >
> >  > VALUE="prénom">boutonPrenom
> >
> >  > VALUE="titre">boutonTitre
> >
> >  > VALUE="organisme">boutonOrganisme
> >
> > 
> >
> > 
> >
> >  //Second
attribute
> > ton internationalise: Soumettre la requête in French Submit the request
in
> > English
>
> Same here:
> 
>
> dictionary:
> Soumettre la requête
>
> > 
> >
> > thanks in advance for your repsnses,
> >
> > Best,
> >
> > Cyril.
>
> Regards
>
> Joerg
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: i18n translation with attributes: 2 questions

2003-01-30 Thread Joerg Heinicke
Hello Cyril,

Cyril Vidal wrote:

Hi,

If some of you would have some tips for these two questions, I would be very
grateful:

1°) Under Cocoon 2.0.4 and Windows 2000:
 I use a i18n Transformer (with french and english dictionnaries), and all's
working fine with elements' translation. But not for attributes.
I have basicaly a HTML form with a submit button.
As described in the Cocoon's doc, I write the following in my stylesheet to
be translated:


and in my French dictionary:
Soumettre la requête

in my English dictionary:

Submit the request

WHen I call http://localhost:8080/cocoon/tutoriel?locale=fr, I can see the
correct value of the button, ie: 'Soumettre la requête'.
But when I call english translation with
http://localhost:8080/cocoon/tutoriel?locale=en, I still obtain the same
french message, although I've specified the english version for this
button's value in the english dictionary.
Could it have to handle with the xerces's bug described in the doc??


No, it works a bt different with attributes. In i18n:attr="..." you 
specify the attributes, that shell be translated. You have "value" in 
your above example, but there is no attribute "value", only "TYPE" and 
"NAME". So change it to i18n:attr="NAME" to get the value of the 
attribute "NAME" translated or add an attribute "value", which is used 
for the text on the button AFAIK. Furthermore the value of the attribute 
to translate is the key (above example: NAME="submit" => key = 
"submit"). This key must be used in the dictionary (=> ).
With the Xerces bug you won't get anything as output I think. At least 
you would have a stack trace in the log files.

2°)  In my styleshhet, I've got a second hidden input area.

For each one, I have to use i18n:attr="value" in the sitemap and
Some text in the dictionary, I want to
internationalise both (That's I want to do precisely...).

So, Is it possible to make a difference between them?



choix

choix_langue_fr | choix_langue_en

 //First attribute value to
internationalise => fr in french and en in english


Knowing the above at 1° this is no longer a problem:


---this is the key^^
dictionary:
en (or fr in the french dictionary)




trier

boutonNom

boutonPrenom

boutonTitre

boutonOrganisme





 //Second attribute
ton internationalise: Soumettre la requête in French Submit the request in
English


Same here:


dictionary:
Soumettre la requête




thanks in advance for your repsnses,

Best,

Cyril.


Regards

Joerg


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




i18n translation with attributes: 2 questions

2003-01-30 Thread Cyril Vidal
Hi,

If some of you would have some tips for these two questions, I would be very
grateful:

1°) Under Cocoon 2.0.4 and Windows 2000:
 I use a i18n Transformer (with french and english dictionnaries), and all's
working fine with elements' translation. But not for attributes.
I have basicaly a HTML form with a submit button.
As described in the Cocoon's doc, I write the following in my stylesheet to
be translated:


and in my French dictionary:
Soumettre la requête

in my English dictionary:

Submit the request


WHen I call http://localhost:8080/cocoon/tutoriel?locale=fr, I can see the
correct value of the button, ie: 'Soumettre la requête'.
But when I call english translation with
http://localhost:8080/cocoon/tutoriel?locale=en, I still obtain the same
french message, although I've specified the english version for this
button's value in the english dictionary.
Could it have to handle with the xerces's bug described in the doc??


2°)  In my styleshhet, I've got a second hidden input area.

For each one, I have to use i18n:attr="value" in the sitemap and
Some text in the dictionary, I want to
internationalise both (That's I want to do precisely...).

So, Is it possible to make a difference between them?



choix

choix_langue_fr | choix_langue_en

 //First attribute value to
internationalise => fr in french and en in english



trier

boutonNom

boutonPrenom

boutonTitre

boutonOrganisme





 //Second attribute
ton internationalise: Soumettre la requête in French Submit the request in
English





thanks in advance for your repsnses,

Best,

Cyril.



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




RE: FW: i18n problem with i18n:attr : ArrayIndexOutOfBoundsException

2003-01-29 Thread Thomas Haselberger
thx joerg,

I tried again to get this work, putting the xalan and xerces jars in jre/lib/endorsed,
in tomcats common/endorsed, trying the lates xalan etc. - no way.

finally switched to j2sdk 1.4.1_01 and all works ok now.

regards,
tom

> -Original Message-
> From: Joerg Heinicke [mailto:[EMAIL PROTECTED]]
> Sent: Sonntag, 26. Jänner 2003 03:52
> To: [EMAIL PROTECTED]
> Subject: Re: FW: i18n problem with i18n:attr :
> ArrayIndexOutOfBoundsException
> 
> 
> Hello Thomas,
> 
> "once upon the time" there was a buggy Xerces version having problem 
> with I18n attributes. We had this problem in the Cocoon 2.0.3 release 
> with (I think) Xerces 2.0. After we upgraded the Xerces version 
> everything works ok again. Lines like 
> "org.xml.sax.helpers.AttributesImpl.removeAttribute(Attributes
> Impl.java:439)" 
> in your stacktrace let me assume, that it is the same problem 
> you have.
> 
> Regards,
> 
> Joerg

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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




i18n + XSLT transformation

2003-01-26 Thread Cyril Vidal
Hi,

Just to go more deeply into Cocoon's comprehension, I've yesterday built a
little example with the load of two differents stylesheets
(participantsFR.xsl and participantsEN.xsl) depending of the value of a
parameter passed in HTTP Request, and with the help of this mailing-list,
I've achieved this.

Now, I would like to perform exactly the same task, but by another way: via
the use of i18n Transformer.

To translate a static xml file, I've no difficult, and the following except
of sitemap.xmap, (supposed I've created a catalogue directory named
translation with message_en.xml and message_fr.xml) works well:















The following adresses
http://localhost:8080/cocoon/hellococoon/try_it?locale=fr and
http://localhost:8080/cocoon/hellococoon/try_it?locale=en display the
specified translation.



But now, I would like to mix a XSLT transformation with the i18n
Transformation. (I mean, the different

text to be translated  appear now in the XSLT file
participantsIN.xsl)

To perform this task, I've tried the following code (overlapping the i18n
transformation inside the XSLT transformation...):





















But when I try by example the following adress:

http://localhost:8080/cocoon/hellococoon/try_it1?locale=en

I receive no error message but nor is the i18n transformation done:

I the HTML result, I have all my text to be
translated elements, without any effective translation.

Waht I have to change in sitemap to fix the problem?

Thanks again for your help,

Cyril.


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: FW: i18n problem with i18n:attr : ArrayIndexOutOfBoundsException

2003-01-25 Thread Joerg Heinicke
Hello Thomas,

"once upon the time" there was a buggy Xerces version having problem 
with I18n attributes. We had this problem in the Cocoon 2.0.3 release 
with (I think) Xerces 2.0. After we upgraded the Xerces version 
everything works ok again. Lines like 
"org.xml.sax.helpers.AttributesImpl.removeAttribute(AttributesImpl.java:439)" 
in your stacktrace let me assume, that it is the same problem you have.

Regards,

Joerg

Thomas Haselberger wrote:
another try to get feedback for my problem:

-Original Message-
From: Thomas Haselberger 
Sent: Dienstag, 21. Jänner 2003 10:52
To: Cocoon-Users (E-mail)
Subject: i18n problem with i18n:attr : ArrayIndexOutOfBoundsException


I use cocoon 2.0.4 in tomcat 4.1.18 with j2sdk1.4.0_03.

the i18n samples that use i18n:attr work ok, but my i18n transformation throws an 
ArrayIndexOutOfBoundsException.

this is my source xml:
=


http://apache.org/cocoon/i18n/2.0";>
  

  ol
  new

  

=

this is my sitemap matcher entry:
=


  
  
  

=

and that's the error log entry generated:
=
ERROR   (2003-01-21) 10:50.44:761   [sitemap] (/idc/i18ntest/bla) Thread-15/sitemap_xmap: Sitemap
org.apache.cocoon.ProcessingException: Exception during processing of file:/D:/java/jakarta-tomcat-4.1.18/webapps/idc/content/wml_for_i18n.xml: java.lang.ArrayIndexOutOfBoundsException
	at org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:214)
	at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143)
	at org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)
	at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:395)
	at org.apache.cocoon.www.sitemap_xmap.matchN400126(D:\java\jakarta-tomcat-4.1.18\work\Standalone\localhost\idc\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1345)
	at org.apache.cocoon.www.sitemap_xmap.process(D:\java\jakarta-tomcat-4.1.18\work\Standalone\localhost\idc\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1185)
	at org.apache.cocoon.www.sitemap_xmap.process(D:\java\jakarta-tomcat-4.1.18\work\Standalone\localhost\idc\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1128)
	at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
	at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
	at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152)
	at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
	at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
	at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
	at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
	at org.apache.catalina.core.StandardPipeline.invo

FW: i18n problem with i18n:attr : ArrayIndexOutOfBoundsException

2003-01-25 Thread Thomas Haselberger
another try to get feedback for my problem:

-Original Message-
From: Thomas Haselberger 
Sent: Dienstag, 21. Jänner 2003 10:52
To: Cocoon-Users (E-mail)
Subject: i18n problem with i18n:attr : ArrayIndexOutOfBoundsException


I use cocoon 2.0.4 in tomcat 4.1.18 with j2sdk1.4.0_03.

the i18n samples that use i18n:attr work ok, but my i18n transformation throws an 
ArrayIndexOutOfBoundsException.

this is my source xml:
=


http://apache.org/cocoon/i18n/2.0";>
  

  ol
  new

  

=

this is my sitemap matcher entry:
=


  
  
  

=

and that's the error log entry generated:
=
ERROR   (2003-01-21) 10:50.44:761   [sitemap] (/idc/i18ntest/bla) 
Thread-15/sitemap_xmap: Sitemap
org.apache.cocoon.ProcessingException: Exception during processing of 
file:/D:/java/jakarta-tomcat-4.1.18/webapps/idc/content/wml_for_i18n.xml: 
java.lang.ArrayIndexOutOfBoundsException
at 
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:214)
at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143)
at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)
at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:395)
at 
org.apache.cocoon.www.sitemap_xmap.matchN400126(D:\java\jakarta-tomcat-4.1.18\work\Standalone\localhost\idc\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1345)
at 
org.apache.cocoon.www.sitemap_xmap.process(D:\java\jakarta-tomcat-4.1.18\work\Standalone\localhost\idc\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1185)
at 
org.apache.cocoon.www.sitemap_xmap.process(D:\java\jakarta-tomcat-4.1.18\work\Standalone\localhost\idc\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1128)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152)
at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Proc

Re: Antwort: i18n more!!!!!!!!! :(

2003-01-23 Thread Konstantin Piroumian
RE: Antwort: i18n more! :(Take a look at the i18n samples XSP page
(/samples/i18n/simple.xsp) source. There is a form field where you can enter
text in any (supported by Java/Xalan) encoding and then get it back on the
same page (see Hello Tomcat! message).

I've checked that for all the present in the sample locales, including
Chinese, Japanese and Armenian (which are quite good at finding out any
Unicode issues).

--
  Konstantin

- Original Message -
From: Hong Gia Dinh
To: [EMAIL PROTECTED]
Sent: Thursday, January 23, 2003 07:18
Subject: RE: Antwort: i18n more! :(


Thanks a lot, i applied it with encoding=utf-8 but it just can display some
international character!!! some cant!!
so .. do you know why and how to fix it??
i changed the encoding to ISO-8859-1 but i can not display any thing!!! does
cocoon 2.0.4 not support for this encoding???
Thanks a lot for help!!
Gia Dinh


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 22 January 2003 18:02
To: [EMAIL PROTECTED]
Subject: Antwort: i18n more! :(




Hello!
Do you use this Action in your pipeline?


  

If not, try to insert it before(!!!) your matchers, where the requests come
in. (inside the pipeline!!!)
cheers
manfred




[EMAIL PROTECTED] am 22.01.2003 11:59:04
Bitte antworten an [EMAIL PROTECTED]@inet
An:  [EMAIL PROTECTED]
Kopie:
Thema:   i18n more! :(




Hi all
I am deploying my application on JBoss 3.0.4 and jdk 1.4 and cocoon 2.0.4
i can set and change language with static values OK but!
when my request sent with unicode value and CR values in the text , the
ressponse always displays error characters and all CR are deleted!! ???
i dont know how to fix it as wella s sometimes it keeps  on confuses
between {../../locale} and {../../../locale}when upgrading cocoon
version??? why? i am nearly dont know how and why those bug, althpough
i read all cocoon examples carefully??
cant you all tell me how to fix those bugs???
All your information are very appreciated!!
thanks a lot much!
GD









-
Please check that your question  has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




RE: Antwort: i18n more!!!!!!!!! :(

2003-01-22 Thread Hong Gia Dinh
Title: RE: Antwort: i18n more! :(





Thanks a lot, i applied it with encoding=utf-8 but it just can display some international character!!! some cant!!
so .. do you know why and how to fix it??


i changed the encoding to ISO-8859-1 but i can not display any thing!!! does cocoon 2.0.4 not support for this encoding???

Thanks a lot for help!!
Gia Dinh 



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 22 January 2003 18:02
To: [EMAIL PROTECTED]
Subject: Antwort: i18n more! :(





Hello!


Do you use this Action in your pipeline?



="org.apache.cocoon.acting.SetCharacterEncodingAction"/>



  



If not, try to insert it before(!!!) your matchers, where the requests come
in. (inside the pipeline!!!)


cheers
manfred





[EMAIL PROTECTED] am 22.01.2003 11:59:04


Bitte antworten an [EMAIL PROTECTED]@inet


An:  [EMAIL PROTECTED]
Kopie:
Thema:   i18n more! :(





Hi all


I am deploying my application on JBoss 3.0.4 and jdk 1.4 and cocoon 2.0.4
i can set and change language with static values OK but!
when my request sent with unicode value and CR values in the text , the
ressponse always displays error characters and all CR are deleted!! ???


i dont know how to fix it as wella s sometimes it keeps  on confuses
between {../../locale} and {../../../locale}when upgrading cocoon
version??? why? i am nearly dont know how and why those bug, althpough
i read all cocoon examples carefully??


cant you all tell me how to fix those bugs???


All your information are very appreciated!!
thanks a lot much!


GD










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


To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>





RE: i18n more!!!!!!!!! :(

2003-01-22 Thread Alireza Fattahi
Title: i18n more! :(









See: http://www.anassina.com/struts/i18n/i18n.html

 

-Original Message-
From: Hong Gia Dinh
[mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, January 22, 2003 2:29 PM
To: [EMAIL PROTECTED]
Subject: i18n more! :(

 

Hi all 

I am deploying my application on JBoss 3.0.4 and jdk
1.4 and cocoon 2.0.4 
i can set and change language with
static values OK but! 
when my request sent with unicode
value and CR values in the text , the ressponse always displays error
characters and all CR are deleted!! ???

i dont know how to fix it as wella s sometimes it
keeps  on confuses between {../../locale} and {../../../locale}when
upgrading cocoon version??? why? i am nearly dont know how and why those
bug, althpough i read all cocoon examples carefully??

cant you all tell me how to fix those bugs???


All your information are very appreciated!!

thanks a lot much! 

GD 








Antwort: i18n more!!!!!!!!! :(

2003-01-22 Thread manfred . weigel


Hello!

Do you use this Action in your pipeline?




  


If not, try to insert it before(!!!) your matchers, where the requests come
in. (inside the pipeline!!!)

cheers
manfred




[EMAIL PROTECTED] am 22.01.2003 11:59:04

Bitte antworten an [EMAIL PROTECTED]@inet

An:  [EMAIL PROTECTED]
Kopie:
Thema:   i18n more! :(




Hi all

I am deploying my application on JBoss 3.0.4 and jdk 1.4 and cocoon 2.0.4
i can set and change language with static values OK but!
when my request sent with unicode value and CR values in the text , the
ressponse always displays error characters and all CR are deleted!! ???

i dont know how to fix it as wella s sometimes it keeps  on confuses
between {../../locale} and {../../../locale}when upgrading cocoon
version??? why? i am nearly dont know how and why those bug, althpough
i read all cocoon examples carefully??

cant you all tell me how to fix those bugs???

All your information are very appreciated!!
thanks a lot much!

GD









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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




i18n more!!!!!!!!! :(

2003-01-22 Thread Hong Gia Dinh
Title: i18n more! :(





Hi all


I am deploying my application on JBoss 3.0.4 and jdk 1.4 and cocoon 2.0.4
i can set and change language with static values OK but!
when my request sent with unicode value and CR values in the text , the ressponse always displays error characters and all CR are deleted!! ???

i dont know how to fix it as wella s sometimes it keeps  on confuses between {../../locale} and {../../../locale}when upgrading cocoon version??? why? i am nearly dont know how and why those bug, althpough i read all cocoon examples carefully??

cant you all tell me how to fix those bugs???


All your information are very appreciated!!
thanks a lot much!


GD





Re: i18n problem with i18n:attr : ArrayIndexOutOfBoundsException

2003-01-22 Thread Konstantin Piroumian
A typical parser/classpath problem.
You'll find the answer here (scroll to the bottom):

http://wiki.cocoondev.org/Wiki.jsp?page=FAQs

--
  Konstantin

- Original Message -
From: "Thomas Haselberger" <[EMAIL PROTECTED]>
To: "Cocoon-Users (E-mail)" <[EMAIL PROTECTED]>
Sent: Tuesday, January 21, 2003 12:52
Subject: i18n problem with i18n:attr : ArrayIndexOutOfBoundsException


I use cocoon 2.0.4 in tomcat 4.1.18 with j2sdk1.4.0_03.

the i18n samples that use i18n:attr work ok, but my i18n transformation
throws an
ArrayIndexOutOfBoundsException.

this is my source xml:
=


http://apache.org/cocoon/i18n/2.0";>
  

  ol
  new

  

=

this is my sitemap matcher entry:
=


  
  
  

=

and that's the error log entry generated:
=
ERROR   (2003-01-21) 10:50.44:761   [sitemap] (/idc/i18ntest/bla)
Thread-15/sitemap_xmap: Sitemap
org.apache.cocoon.ProcessingException: Exception during processing of
file:/D:/java/jakarta-tomcat-4.1.18/webapps/idc/content/wml_for_i18n.xml:
java.lang.ArrayIndexOutOfBoundsException
at
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStrea
mSource.java:214)
at
org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143)
at
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEv
entPipeline.java:250)
at
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingS
treamPipeline.java:395)
at
org.apache.cocoon.www.sitemap_xmap.matchN400126(D:\java\jakarta-tomcat-4.1.1
8\work\Standalone\localhost\idc\cocoon-files\org/apache/cocoon/www\sitemap_x
map.java:1345)
at
org.apache.cocoon.www.sitemap_xmap.process(D:\java\jakarta-tomcat-4.1.18\wor
k\Standalone\localhost\idc\cocoon-files\org/apache/cocoon/www\sitemap_xmap.j
ava:1185)
at
org.apache.cocoon.www.sitemap_xmap.process(D:\java\jakarta-tomcat-4.1.18\wor
k\Standalone\localhost\idc\cocoon-files\org/apache/cocoon/www\sitemap_xmap.j
ava:1128)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152)
at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415
)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand

i18n problem with i18n:attr : ArrayIndexOutOfBoundsException

2003-01-21 Thread Thomas Haselberger
I use cocoon 2.0.4 in tomcat 4.1.18 with j2sdk1.4.0_03.

the i18n samples that use i18n:attr work ok, but my i18n transformation throws an 
ArrayIndexOutOfBoundsException.

this is my source xml:
=


http://apache.org/cocoon/i18n/2.0";>
  

  ol
  new

  

=

this is my sitemap matcher entry:
=


  
  
  

=

and that's the error log entry generated:
=
ERROR   (2003-01-21) 10:50.44:761   [sitemap] (/idc/i18ntest/bla) 
Thread-15/sitemap_xmap: Sitemap
org.apache.cocoon.ProcessingException: Exception during processing of 
file:/D:/java/jakarta-tomcat-4.1.18/webapps/idc/content/wml_for_i18n.xml: 
java.lang.ArrayIndexOutOfBoundsException
at 
org.apache.cocoon.components.source.AbstractStreamSource.toSAX(AbstractStreamSource.java:214)
at org.apache.cocoon.generation.FileGenerator.generate(FileGenerator.java:143)
at 
org.apache.cocoon.components.pipeline.CachingEventPipeline.process(CachingEventPipeline.java:250)
at 
org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:395)
at 
org.apache.cocoon.www.sitemap_xmap.matchN400126(D:\java\jakarta-tomcat-4.1.18\work\Standalone\localhost\idc\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1345)
at 
org.apache.cocoon.www.sitemap_xmap.process(D:\java\jakarta-tomcat-4.1.18\work\Standalone\localhost\idc\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1185)
at 
org.apache.cocoon.www.sitemap_xmap.process(D:\java\jakarta-tomcat-4.1.18\work\Standalone\localhost\idc\cocoon-files\org/apache/cocoon/www\sitemap_xmap.java:1128)
at org.apache.cocoon.sitemap.Handler.process(Handler.java:227)
at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:173)
at org.apache.cocoon.sitemap.SitemapManager.process(SitemapManager.java:152)
at org.apache.cocoon.Cocoon.process(Cocoon.java:579)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1043)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
at 
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:432)
at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:386)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndp

RE: i18n again

2003-01-16 Thread Hong Gia Dinh
Title: i18n again



Thanks 
a lot
GD

  -Original Message-From: Konstantin Piroumian 
  [mailto:[EMAIL PROTECTED]]Sent: 16 January 2003 
  16:05To: [EMAIL PROTECTED]Subject: Re: i18n 
  again
  Currently there is no way to do it.
  It was in my todo list for a long time and probably 
  someday or someone will implement multiple dictionary support (or dictionary 
  include/import) capabilities. I'll take a look at it if I have 
  time.
   
  Another possibility is to use aggregation of dictionaries 
  and use 'cocoon:/' protocol to specify the catalogue location.
   
  Konstantin
  
- Original Message - 
From: 
Hong Gia Dinh 

To: [EMAIL PROTECTED] 

Sent: Thursday, January 16, 2003 
04:38
    Subject: RE: i18n again

Thanks. I had a look there and also applied it! 
I 
have a question, can i have a common.xml and common_xx.xml including common 
vocabularies that will be used in many files!! (the example uses aggregate 
to get it) but in case i dont use aggregate, so how can i use??? (i dont 
want to copy and paste common vocabularies in for example search_xx.xml, 
edit_xx.xml .  . .)
 
Thanks a lot in advance
GD

  -Original Message-From: Konstantin Piroumian 
  [mailto:[EMAIL PROTECTED]]Sent: 14 January 2003 
  15:35To: [EMAIL PROTECTED]Subject: Re: 
  i18n again
  Again, please take a look at i18n samples (either in 
  2.0.3 or 2.1 versions) and you'll see that it's possible to specify the 
  message catalogue name on pipeline level, so you can have different 
  pipelines using different message catalogues. In i18n samples there are 
  two message catalogues: messages_xx.xml and menu_xx.xml and they are used 
  in different pipelines.
   
  Konstantin
  
- Original Message - 
From: 
Hong Gia 
Dinh 
To: [EMAIL PROTECTED] 

Sent: Tuesday, January 14, 2003 
    06:32
Subject: i18n again

Hi all, 
I have rather large messages files! Can i have any 
way to define many messages for each language??? My messages_en.xml contains too many data! and i dont want a too 
large message, because it is very hard to managed and supervised! now i 
want to separate into number of messages such as messages_en_1.xml 
messages_en_1_1.xml . . . . can i do something like that or can i 
separate into small files to manage clearer?
Thanks a lot in advance GD 



Re: i18n again

2003-01-16 Thread Konstantin Piroumian
Title: i18n again



Currently there is no way to do it.
It was in my todo list for a long time and probably 
someday or someone will implement multiple dictionary support (or dictionary 
include/import) capabilities. I'll take a look at it if I have 
time.
 
Another possibility is to use aggregation of dictionaries and 
use 'cocoon:/' protocol to specify the catalogue location.
 
Konstantin

  - Original Message - 
  From: 
  Hong Gia Dinh 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, January 16, 2003 
  04:38
  Subject: RE: i18n again
  
  Thanks. I had a look there and also applied it! 
  I 
  have a question, can i have a common.xml and common_xx.xml including common 
  vocabularies that will be used in many files!! (the example uses aggregate to 
  get it) but in case i dont use aggregate, so how can i use??? (i dont want to 
  copy and paste common vocabularies in for example search_xx.xml, edit_xx.xml 
  .  . .)
   
  Thanks a lot in advance
  GD
  
-Original Message-From: Konstantin Piroumian 
[mailto:[EMAIL PROTECTED]]Sent: 14 January 2003 
15:35To: [EMAIL PROTECTED]Subject: Re: i18n 
again
Again, please take a look at i18n samples (either in 2.0.3 
or 2.1 versions) and you'll see that it's possible to specify the message 
catalogue name on pipeline level, so you can have different pipelines using 
different message catalogues. In i18n samples there are two message 
catalogues: messages_xx.xml and menu_xx.xml and they are used in different 
pipelines.
 
Konstantin

  - Original Message - 
  From: 
  Hong Gia 
  Dinh 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, January 14, 2003 
  06:32
  Subject: i18n again
  
  Hi all, 
  I have rather large messages files! Can i have any way 
  to define many messages for each language??? My 
  messages_en.xml contains too many data! and i dont want a too large 
  message, because it is very hard to managed and supervised! now i want to 
  separate into number of messages such as messages_en_1.xml 
  messages_en_1_1.xml . . . . can i do something like that or can i separate 
  into small files to manage clearer?
  Thanks a lot in advance GD 
  


RE: i18n again

2003-01-15 Thread Hong Gia Dinh
Title: i18n again



Thanks. I had a look there and also applied it! 
I have 
a question, can i have a common.xml and common_xx.xml including common 
vocabularies that will be used in many files!! (the example uses aggregate to 
get it) but in case i dont use aggregate, so how can i use??? (i dont want to 
copy and paste common vocabularies in for example search_xx.xml, edit_xx.xml 
.  . .)
 
Thanks 
a lot in advance
GD

  -Original Message-From: Konstantin Piroumian 
  [mailto:[EMAIL PROTECTED]]Sent: 14 January 2003 
  15:35To: [EMAIL PROTECTED]Subject: Re: i18n 
  again
  Again, please take a look at i18n samples (either in 2.0.3 
  or 2.1 versions) and you'll see that it's possible to specify the message 
  catalogue name on pipeline level, so you can have different pipelines using 
  different message catalogues. In i18n samples there are two message 
  catalogues: messages_xx.xml and menu_xx.xml and they are used in different 
  pipelines.
   
  Konstantin
  
- Original Message - 
From: 
Hong Gia Dinh 

To: [EMAIL PROTECTED] 

Sent: Tuesday, January 14, 2003 
06:32
    Subject: i18n again

Hi all, 
I have rather large messages files! Can i have any way 
to define many messages for each language??? My 
messages_en.xml contains too many data! and i dont want a too large message, 
because it is very hard to managed and supervised! now i want to separate 
into number of messages such as messages_en_1.xml messages_en_1_1.xml . . . 
. can i do something like that or can i separate into small files to manage 
clearer?
Thanks a lot in advance GD 



Re: i18n again

2003-01-14 Thread Konstantin Piroumian
Title: i18n again



Again, please take a look at i18n samples (either in 2.0.3 or 
2.1 versions) and you'll see that it's possible to specify the message catalogue 
name on pipeline level, so you can have different pipelines using different 
message catalogues. In i18n samples there are two message catalogues: 
messages_xx.xml and menu_xx.xml and they are used in different 
pipelines.
 
Konstantin

  - Original Message - 
  From: 
  Hong Gia Dinh 
  
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, January 14, 2003 
  06:32
  Subject: i18n again
  
  Hi all, 
  I have rather large messages files! Can i have any way to 
  define many messages for each language??? My 
  messages_en.xml contains too many data! and i dont want a too large message, 
  because it is very hard to managed and supervised! now i want to separate into 
  number of messages such as messages_en_1.xml messages_en_1_1.xml . . . . can i 
  do something like that or can i separate into small files to manage 
  clearer?
  Thanks a lot in advance GD 



Re: i18n again!!!!

2003-01-13 Thread Kim Jelmoni

you can for example:

in xml :



http://apache.org/cocoon/i18n/2.0";>
  
  
  


and in message catalog file :

images/de.gif


On Tue, 2003-01-14 at 04:57, Hong Gia Dinh wrote:
> Hi all,
> I know that we can change language from text, button, attribute 
> now if i want to change image according to languages!!! because some
> of my images having the text on it!! how can i do that?? with cocoon
> 2.0.3 ??
> because i cant use  in cocoon 2.0.3 how can i change image
> as well as i change the text 
>  
> Thanks a lot
> GD


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




RE: Useful directory structure (was AW: i18n with sub sitemaps)

2003-01-13 Thread Hong Gia Dinh
Title: RE: Useful directory structure (was AW: i18n with sub sitemaps)





Hi Piroumian


I found that you declare that :




One thing I'd do for sure: move some of the used resources to the WEB-INF,
so they would not be accidentally sent to the user. So, WEB-INF can look
like:
WEB-INF\
    translations\
        common.xml
        common_de.xml
        ...
        search.xml
        search_de.xml
        ...
    validation\
        rules.xml
        ... 
etc.


I understand that Cocoon allows to place _all_ the webapp resources inside
of the WEB-INF and define paths in the sitemap, but I don't like this
approach and like to see all webapp contents in their usual places (/,
images/, css/, etc.). 


But for the translations, validation rules, etc. - they are some kind of a
meta-data that are used by several componenets to process the response and
they are never referred from the user's browser - so the best place for them
is a sub-directory of WEB-INF.


--
  Konstantin Piroumian


you used common_de and search_de so how to declare in the sitemap?? because as fas as i read sitemap just allows us to declare one messages name!!!

i think i want this structure much
Thanks a lot





i18n again

2003-01-13 Thread Hong Gia Dinh
Title: i18n again





Hi all,


I have rather large messages files! Can i have any way to define many messages for each language??? 
My messages_en.xml contains too many data! and i dont want a too large message, because it is very hard to managed and supervised! now i want to separate into number of messages such as messages_en_1.xml messages_en_1_1.xml . . . . can i do something like that or can i separate into small files to manage clearer?

Thanks a lot in advance
GD





i18n again!!!!

2003-01-13 Thread Hong Gia Dinh



Hi 
all,
I know 
that we can change language from text, button, attribute 

now if 
i want to change image according to languages!!! because some of my images 
having the text on it!! how can i do that?? with cocoon 2.0.3 
??
because i cant use  in cocoon 2.0.3 how can i change 
image as well as i change the text 
 
Thanks 
a lot
GD


Re: i18n catalogue and sql [act howto]

2003-01-08 Thread Konstantin Piroumian
From: "Cocoon User" <[EMAIL PROTECTED]>

>
> hi konstantin
>
> i plan to create an action that will create sitiemap variables for
> specific request-parameters not for use only with i18n

There is already such action in Cocoon:
src\java\org\apache\cocoon\acting\RequestParamAction.java

But I'd prefer to use already implemented input module, which looks much
better in the sitemap.

Konstantin

>
> is there any simple action or any howto create an action for cocoon?
> i need just a point to start form (something for example)
>
>
> thnx
> stavros
>
> On Wed, 8 Jan 2003, Konstantin Piroumian wrote:
>
> > From: "Cocoon User" <[EMAIL PROTECTED]>
> >
> > > hi martin this is a way to send a parameter inside your xsl file
(pretty
> > > good) but i need something else
> > >
> > > i want to use a request parameter as a variable inside my sitemap
> > >
> > > example
> > >
> > > if i have http://../...?locale=el
> > >
> > > src="{locale}_data.xml"
> > >
> > > point to el_data.xml
> > >
> > > (i have do something similar using a action just like in i18n example
from
> > > 2.1 version of cocoon but i'm wondering if there is another way to do
this
> > > without action)
> >
> > Another possibility is to create an InputModule that will act exactly
like
> > the LocaleAction, so you'll be able to use it like this:
> >
> > src="{i18n:locale}_data.xml"
> >
> > and even now you can use the 'request-param' module for that:
> >
> > src="{request-param:locale}_data.xml"
> >
> > Konstantin
> >
> > >
> > > thnx stavros
> > >
> > >
> > > On 5 Jan 2003, Martin Lüthi wrote:
> > >
> > > >
> > > > You can use the request parameter like this:
> > > >
> > > >   
> > > >  
> > > >  
> > > >   
> > > >
> > > > Cheers Martin
> > > >
> > > >
> > > > Cocoon User <[EMAIL PROTECTED]> writes:
> > > >
> > > > > i know how to make a src file selection based to requested url
using
> > > > > matches
> > > > >
> > > > > http://./el/test
> > > > > http://./en/test
> > > > >
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > > > > but how can do  something similar using parameter?
> > > > >
> > > > > http:///test?locale=el
> > > > > http:///test?locale=en
> > > > >
> > > > > using {1} or {2} i refer to first or second * in pattern
> > > > > but how can i refer to locale prameter value inside  ?
> > > >
> > > >
> >
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
> >
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: i18n catalogue and sql [act howto]

2003-01-08 Thread Cocoon User

hi konstantin

i plan to create an action that will create sitiemap variables for
specific request-parameters not for use only with i18n

is there any simple action or any howto create an action for cocoon?
i need just a point to start form (something for example)


thnx
stavros

On Wed, 8 Jan 2003, Konstantin Piroumian wrote:

> From: "Cocoon User" <[EMAIL PROTECTED]>
>
> > hi martin this is a way to send a parameter inside your xsl file (pretty
> > good) but i need something else
> >
> > i want to use a request parameter as a variable inside my sitemap
> >
> > example
> >
> > if i have http://../...?locale=el
> >
> > src="{locale}_data.xml"
> >
> > point to el_data.xml
> >
> > (i have do something similar using a action just like in i18n example from
> > 2.1 version of cocoon but i'm wondering if there is another way to do this
> > without action)
>
> Another possibility is to create an InputModule that will act exactly like
> the LocaleAction, so you'll be able to use it like this:
>
> src="{i18n:locale}_data.xml"
>
> and even now you can use the 'request-param' module for that:
>
> src="{request-param:locale}_data.xml"
>
> Konstantin
>
> >
> > thnx stavros
> >
> >
> > On 5 Jan 2003, Martin Lüthi wrote:
> >
> > >
> > > You can use the request parameter like this:
> > >
> > >   
> > >  
> > >  
> > >   
> > >
> > > Cheers Martin
> > >
> > >
> > > Cocoon User <[EMAIL PROTECTED]> writes:
> > >
> > > > i know how to make a src file selection based to requested url using
> > > > matches
> > > >
> > > > http://./el/test
> > > > http://./en/test
> > > >
> > > > 
> > > > 
> > > > 
> > > >
> > > > but how can do  something similar using parameter?
> > > >
> > > > http:///test?locale=el
> > > > http:///test?locale=en
> > > >
> > > > using {1} or {2} i refer to first or second * in pattern
> > > > but how can i refer to locale prameter value inside  ?
> > >
> > >
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: i18n catalogue and sql

2003-01-08 Thread Konstantin Piroumian
From: "Cocoon User" <[EMAIL PROTECTED]>

> hi martin this is a way to send a parameter inside your xsl file (pretty
> good) but i need something else
>
> i want to use a request parameter as a variable inside my sitemap
>
> example
>
> if i have http://../...?locale=el
>
> src="{locale}_data.xml"
>
> point to el_data.xml
>
> (i have do something similar using a action just like in i18n example from
> 2.1 version of cocoon but i'm wondering if there is another way to do this
> without action)

Another possibility is to create an InputModule that will act exactly like
the LocaleAction, so you'll be able to use it like this:

src="{i18n:locale}_data.xml"

and even now you can use the 'request-param' module for that:

src="{request-param:locale}_data.xml"

Konstantin

>
> thnx stavros
>
>
> On 5 Jan 2003, Martin Lüthi wrote:
>
> >
> > You can use the request parameter like this:
> >
> >   
> >  
> >  
> >   
> >
> > Cheers Martin
> >
> >
> > Cocoon User <[EMAIL PROTECTED]> writes:
> >
> > > i know how to make a src file selection based to requested url using
> > > matches
> > >
> > > http://./el/test
> > > http://./en/test
> > >
> > > 
> > > 
> > > 
> > >
> > > but how can do  something similar using parameter?
> > >
> > > http:///test?locale=el
> > > http:///test?locale=en
> > >
> > > using {1} or {2} i refer to first or second * in pattern
> > > but how can i refer to locale prameter value inside  ?
> >
> >


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: i18n Transformation problem

2003-01-08 Thread Konstantin Piroumian
From: "Murari Dhoot" <[EMAIL PROTECTED]>

> Hello Friends,
> I am applying a i18n Transformation on the following button
>
>i18n:attr="value">
>
> Actually depending upon the value of Button i.e. "Search" , i am calling a
> method, but if i apply i18n transformaion the value of button changed and
i
> m not able to call that method.
> So what i need display value of button should change but passing value
> should always be "Search" using i18n???
> how to do this

Take a look at MultiAction and use this:
   

then use the name of the button and not the value to call a method.

Hope this helps.

Konstantin

> Thanks in advance
>
>
> Thanks and Regards,
> Murari Dhoot
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




RE: i18n in combination with xsp:attribute

2003-01-07 Thread Nico Bekema
Hi Harry,

you are absolutely right.
It's working fine now.
thx very much.

Nico

>>> [EMAIL PROTECTED] 01/07/03 04:53PM >>>

From:   [EMAIL PROTECTED]
Sent:   Tuesday, January 07, 2003 4:53 PM
To: '[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject:RE: i18n in combination with xsp:attribute
Priority:   Normal

Hi Nico,

You need to use BOTH the prefix and uri attributes.  So you should have:

http://apache.org/cocoon/i18n/2.0";>
myKey


Just as a caveat, I haven't actually tried this, but based on the
documentation, that should work.  =)

Harry

-Original Message-
From: Nico Bekema [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 07, 2003 2:37 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED] 
Subject: RE: i18n in combination with xsp:attribute


Hi,

unfortunately that did not help and I am still wondering what is causing
this.


  
myKey
  
  defaultValue


This always results in the defaultValue (myKey is defined)
If I look at the an intermediate result using a cocoon view it all looks
fine but the end result will always return defaultValue.
Just using:

  defaultValue

does result in the translated text using myKey.

thx,
Nico


>>> [EMAIL PROTECTED] 01/07/03 12:15AM >>>

From:   [EMAIL PROTECTED] 
Sent:   Tuesday, January 07, 2003 12:15 AM
To: '[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject:RE: i18n in combination with xsp:attribute
Priority:   Normal

Hi Nico,

I believe the problem is in trying to set the namespace via the name
attribute.  xsp:attribute has two attributes (uri and prefix) for setting
the namespace.  Go to this page:

http://wiki.cocoondev.org/Wiki.jsp?page=XSPSyntax 

And scroll down to the section on xsp:attribute.  Hope that helps!

Harry


-Original Message-
From: Nico Bekema [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 06, 2003 4:48 PM
To: [EMAIL PROTECTED] 
Subject: i18n in combination with xsp:attribute


Hi,

can somebody explain to me why the following piece of xsp does not work


  
myKey
  
  defaultValue


while this piece does work


  defaultValue


I would like to dynamically create the i18n:text element by getting the
i18n:key and the default value from a database.

thx,
Nico


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




RE: i18n in combination with xsp:attribute

2003-01-07 Thread Lai, Harry
Hi Nico,

You need to use BOTH the prefix and uri attributes.  So you should have:

http://apache.org/cocoon/i18n/2.0";>
myKey


Just as a caveat, I haven't actually tried this, but based on the
documentation, that should work.  =)

Harry

-Original Message-
From: Nico Bekema [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 07, 2003 2:37 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: i18n in combination with xsp:attribute


Hi,

unfortunately that did not help and I am still wondering what is causing
this.


  
myKey
  
  defaultValue


This always results in the defaultValue (myKey is defined)
If I look at the an intermediate result using a cocoon view it all looks
fine but the end result will always return defaultValue.
Just using:

  defaultValue

does result in the translated text using myKey.

thx,
Nico


>>> [EMAIL PROTECTED] 01/07/03 12:15AM >>>

From:   [EMAIL PROTECTED]
Sent:   Tuesday, January 07, 2003 12:15 AM
To: '[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject:RE: i18n in combination with xsp:attribute
Priority:   Normal

Hi Nico,

I believe the problem is in trying to set the namespace via the name
attribute.  xsp:attribute has two attributes (uri and prefix) for setting
the namespace.  Go to this page:

http://wiki.cocoondev.org/Wiki.jsp?page=XSPSyntax 

And scroll down to the section on xsp:attribute.  Hope that helps!

Harry


-Original Message-
From: Nico Bekema [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 06, 2003 4:48 PM
To: [EMAIL PROTECTED] 
Subject: i18n in combination with xsp:attribute


Hi,

can somebody explain to me why the following piece of xsp does not work


  
myKey
  
  defaultValue


while this piece does work


  defaultValue


I would like to dynamically create the i18n:text element by getting the
i18n:key and the default value from a database.

thx,
Nico


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




RE: i18n in combination with xsp:attribute

2003-01-07 Thread Nico Bekema
Hi,

unfortunately that did not help and I am still wondering what is causing this.


  
myKey
  
  defaultValue


This always results in the defaultValue (myKey is defined)
If I look at the an intermediate result using a cocoon view it all looks fine but the 
end result will always return defaultValue.
Just using:

  defaultValue

does result in the translated text using myKey.

thx,
Nico


>>> [EMAIL PROTECTED] 01/07/03 12:15AM >>>

From:   [EMAIL PROTECTED]
Sent:   Tuesday, January 07, 2003 12:15 AM
To: '[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject:RE: i18n in combination with xsp:attribute
Priority:   Normal

Hi Nico,

I believe the problem is in trying to set the namespace via the name
attribute.  xsp:attribute has two attributes (uri and prefix) for setting
the namespace.  Go to this page:

http://wiki.cocoondev.org/Wiki.jsp?page=XSPSyntax 

And scroll down to the section on xsp:attribute.  Hope that helps!

Harry


-Original Message-
From: Nico Bekema [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 06, 2003 4:48 PM
To: [EMAIL PROTECTED] 
Subject: i18n in combination with xsp:attribute


Hi,

can somebody explain to me why the following piece of xsp does not work


  
myKey
  
  defaultValue


while this piece does work


  defaultValue


I would like to dynamically create the i18n:text element by getting the
i18n:key and the default value from a database.

thx,
Nico


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




RE: i18n in combination with xsp:attribute

2003-01-06 Thread Lai, Harry
Hi Nico,

I believe the problem is in trying to set the namespace via the name
attribute.  xsp:attribute has two attributes (uri and prefix) for setting
the namespace.  Go to this page:

http://wiki.cocoondev.org/Wiki.jsp?page=XSPSyntax

And scroll down to the section on xsp:attribute.  Hope that helps!

Harry


-Original Message-
From: Nico Bekema [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 06, 2003 4:48 PM
To: [EMAIL PROTECTED]
Subject: i18n in combination with xsp:attribute


Hi,

can somebody explain to me why the following piece of xsp does not work


  
myKey
  
  defaultValue


while this piece does work


  defaultValue


I would like to dynamically create the i18n:text element by getting the
i18n:key and the default value from a database.

thx,
Nico


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




i18n in combination with xsp:attribute

2003-01-06 Thread Nico Bekema
Hi,

can somebody explain to me why the following piece of xsp does not work


  
myKey
  
  defaultValue


while this piece does work


  defaultValue


I would like to dynamically create the i18n:text element by getting the i18n:key and 
the default value from a database.

thx,
Nico


-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: i18n catalogue and sql

2003-01-06 Thread Darren Petrie
You can access a request parameter variable inside your sitemap via a 
matcher or a selector




As a matcher---


	
		
	
	


As a selector---

		
	
		
			
		
			..do something
		
			
		
			..do something else
		
	


Hope that answers your question.

Darren



On Sunday, January 5, 2003, at 03:12 PM, Cocoon User wrote:

hi martin this is a way to send a parameter inside your xsl file 
(pretty
good) but i need something else

i want to use a request parameter as a variable inside my sitemap

example

if i have http://../...?locale=el

src="{locale}_data.xml"

point to el_data.xml

(i have do something similar using a action just like in i18n example 
from
2.1 version of cocoon but i'm wondering if there is another way to do 
this
without action)

thnx stavros


On 5 Jan 2003, Martin Lüthi wrote:


You can use the request parameter like this:

  
 
 
  

Cheers Martin


Cocoon User <[EMAIL PROTECTED]> writes:


i know how to make a src file selection based to requested url using
matches

http://./el/test
http://./en/test


	


but how can do  something similar using parameter?

http:///test?locale=el
http:///test?locale=en

using {1} or {2} i refer to first or second * in pattern
but how can i refer to locale prameter value inside  ?






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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>



Darren Petrie
[EMAIL PROTECTED]


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: i18n catalogue and sql

2003-01-05 Thread aps olute


  In an article by Steve Punte of candlelightsoftware.com, he uses


to pickoff input=5  in a url of  http://localhost/mypage?input=5

and passed it to a template like this:


  



Can anyone perhaps elaborate on how input=5 from that select? what if the the
parameters where http://localhost/mypage?input=5&input2=7  instead?

aps

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: i18n Transformation problem

2003-01-05 Thread Karel Vervaeke
A possible solution for this problem can be found at
http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_10148478.html

(it's the first page that http://google.com/search?q=javascript+button+pressed gives 
me :)

In short, you add a hidden variable to the form, and you change that variable using 
onclick="this.form.my_var='search'" in the submit button.  


> Hello Friends,
> I am applying a i18n Transformation on the following button
> 
>i18n:attr="value">
> 
> Actually depending upon the value of Button i.e. "Search" , i am calling a
> method, but if i apply i18n transformaion the value of button changed and i
> m not able to call that method.
> So what i need display value of button should change but passing value
> should always be "Search" using i18n???
> how to do this
> Thanks in advance
> 
> 
> Thanks and Regards,
> Murari Dhoot
> 


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: i18n Transformation problem

2003-01-05 Thread Cocoon User

i have a similar problem solved using child element and not attributes


some text


then i have 2 step transformation
first i18n transformation to replace i18n tags with the right content
secend xslt tranformation to generete the element i want with attributes




maybe this can help you

regards
Stavros

On Sun, 5 Jan 2003, Murari Dhoot wrote:

> Hello Friends,
> I am applying a i18n Transformation on the following button
>
>i18n:attr="value">
>
> Actually depending upon the value of Button i.e. "Search" , i am calling a
> method, but if i apply i18n transformaion the value of button changed and i
> m not able to call that method.
> So what i need display value of button should change but passing value
> should always be "Search" using i18n???
> how to do this
> Thanks in advance
>
>
> Thanks and Regards,
> Murari Dhoot
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: i18n catalogue and sql

2003-01-05 Thread Cocoon User
hi martin this is a way to send a parameter inside your xsl file (pretty
good) but i need something else

i want to use a request parameter as a variable inside my sitemap

example

if i have http://../...?locale=el

src="{locale}_data.xml"

point to el_data.xml

(i have do something similar using a action just like in i18n example from
2.1 version of cocoon but i'm wondering if there is another way to do this
without action)

thnx stavros


On 5 Jan 2003, Martin Lüthi wrote:

>
> You can use the request parameter like this:
>
>   
>  
>  
>   
>
> Cheers Martin
>
>
> Cocoon User <[EMAIL PROTECTED]> writes:
>
> > i know how to make a src file selection based to requested url using
> > matches
> >
> > http://./el/test
> > http://./en/test
> >
> > 
> > 
> > 
> >
> > but how can do  something similar using parameter?
> >
> > http:///test?locale=el
> > http:///test?locale=en
> >
> > using {1} or {2} i refer to first or second * in pattern
> > but how can i refer to locale prameter value inside  ?
>
>


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: i18n catalogue and sql

2003-01-05 Thread Martin Lüthi

You can use the request parameter like this:

  
 
 
  

Cheers Martin


Cocoon User <[EMAIL PROTECTED]> writes:

> i know how to make a src file selection based to requested url using
> matches
> 
> http://./el/test
> http://./en/test
> 
> 
>   
> 
> 
> but how can do  something similar using parameter?
> 
> http:///test?locale=el
> http:///test?locale=en
> 
> using {1} or {2} i refer to first or second * in pattern
> but how can i refer to locale prameter value inside  ?

-- 
Martin Lüthi [EMAIL PROTECTED]



-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




i18n Transformation problem

2003-01-05 Thread Murari Dhoot
Hello Friends,
I am applying a i18n Transformation on the following button

  

Actually depending upon the value of Button i.e. "Search" , i am calling a
method, but if i apply i18n transformaion the value of button changed and i
m not able to call that method.
So what i need display value of button should change but passing value
should always be "Search" using i18n???
how to do this
Thanks in advance


Thanks and Regards,
Murari Dhoot



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




xmlform and i18n translation

2003-01-01 Thread Kirchhoff, Lars
hello

I want to have a separate error page, where I can 
display different error messages. These error 
messages are generated from methods in the bean 
and they should be translated. Therefor I setup 
a error.xml which holds only a  element 
which should display the error.

So far I could get it, because either the  
or the  element isn't translated correctly, 
when I tried to position the i18n action within the 
sitemap. With this I actually get the translation, 
but the  element isn't transformed 
correctly.

- code -
  
   
  


   
   


  

  

  

  

  
   
 
 
  

  

  
  
   
  
  
- /code -

Has somebody an idea how to solve this, because 
I need it for another form as well. I would like 
to use the same form (input.xml) for adding and 
editing purpose and would like to setup the title 
of the page within the action.

thanks

ciao Lars


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: i18n catalogue and sql

2003-01-01 Thread Cocoon User


hi konstantin

i know how to make a src file selection based to requested url using
matches

http://./el/test
http://./en/test





but how can do  something similar using parameter?

http:///test?locale=el
http:///test?locale=en

using {1} or {2} i refer to first or second * in pattern
but how can i refer to locale prameter value inside  ?




thnx
stavros






On Mon, 30 Dec 2002, Konstantin Piroumian wrote:

> From: "Cocoon User" <[EMAIL PROTECTED]>
>
> >
> > hy people
> >
> > i have found very usefull the i18n processing
> > but what happend when you  have large text?
>
> It's not recommended to use i18n transformer for large texts. There are
> several other ways to solve that task: use XInclude/CInclude, XSLT with
> document() function, sitemap aggregation, etc. Another possibility is to use
> separate content files for different languages, e.g: index_en.xml,
> index_ru.xml, ..., and then use an action or an input module to retrieve the
> needed one based on the user's locale (you can use LocaleAction and its
> 'language' sitemap parameter).
>
> >
> >
> >
> > is it possible for catalogues to retrieve data from an sql server
> > mySQL for example
>
> Recently there was commited a patch that allowed to use any source as input
> for the XML catalogue, so you can easily use 'cocoon:/' protocol or any
> other to retrieve your dictionary data from a database. Note, that
> implementation of i18n and especially the catalogue handling part is quite
> different in 2.0.x and 2.1-dev versions.
>
> Konstantin
>
> >
> >
> > xml page -ID-> catalogue -ID-> data from SQL
> >
> >
> > thnx
> >
> > stavros
> >
> >
> >
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> >
> >
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: i18n catalogue and sql

2002-12-30 Thread Konstantin Piroumian
From: "Cocoon User" <[EMAIL PROTECTED]>

>
> hy people
>
> i have found very usefull the i18n processing
> but what happend when you  have large text?

It's not recommended to use i18n transformer for large texts. There are
several other ways to solve that task: use XInclude/CInclude, XSLT with
document() function, sitemap aggregation, etc. Another possibility is to use
separate content files for different languages, e.g: index_en.xml,
index_ru.xml, ..., and then use an action or an input module to retrieve the
needed one based on the user's locale (you can use LocaleAction and its
'language' sitemap parameter).

>
>
>
> is it possible for catalogues to retrieve data from an sql server
> mySQL for example

Recently there was commited a patch that allowed to use any source as input
for the XML catalogue, so you can easily use 'cocoon:/' protocol or any
other to retrieve your dictionary data from a database. Note, that
implementation of i18n and especially the catalogue handling part is quite
different in 2.0.x and 2.1-dev versions.

Konstantin

>
>
> xml page -ID-> catalogue -ID-> data from SQL
>
>
> thnx
>
> stavros
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




i18n catalogue and sql

2002-12-28 Thread Cocoon User

hy people

i have found very usefull the i18n processing
but what happend when you  have large text?



is it possible for catalogues to retrieve data from an sql server
mySQL for example


xml page -ID-> catalogue -ID-> data from SQL


thnx

stavros



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: strange output when i use i18n transformation

2002-12-26 Thread Konstantin Piroumian
From: "Cocoon User" <[EMAIL PROTECTED]>

> hello people
>
> i have a very strange output when i use i18n
> when i use
> 
> something
> 
>
> and i ask 
> i get in output:
>
>
%0D%0A%09%09%09%09%09%09%09%0D%0A%09%09%09%09%09%09%09%09something%0D%0A%09%
09%09%09%09%09%09%0D%0A%09%09%09%09%09%09%09%09
>
> its very strange because when i remove the i18n element and try with
>
> 
> something
> 
>
> i get in output
> the "something" string

The string you get consists of CR/LF and Tab characters in URL encoded form.
Probably, you have those characters in your dictionary file, e.g.:
[CR][LF]
[tab][tab]something[CR][LF]


and they come out as-is.

The other possible source of those characters is the XSLT. Try to use:


Regards,
  Konstantin

>
> this hapend only when i get the elements value and i put it into a
> parameter look at xsl code that follow
>
>
> a part of my xml code
> -
> 
> sitebuilder.Services
> 
> en
> 
> ..: article_text1
> 
>
>
> 
> sitebuilder.Activities
> 
> 
> locale_lang
> 
> 
> ..:  i18n:key="hmn_activities">article_text1
> 
>
>
> the xsl part that make the trasformation
> 
> 
> 
> 
> 
> 
> ?
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
> 
>select="./osm:linkparam/@name"
>   disable-output-escaping="yes"/>= select="./osm:linkparam/osm:paramvalue" disable-output-escaping="yes"/>
> 
>
>
> and the output in browser source
> 
> http://www.w3.org/1999/XSL/Format"; class="">
> onmouseover="changeUp(this)"
>href="sitebuilder.Services?locale=en"
>class="mainlink"
>oclass="mainlink"
>hclass="hmainlink"
>name="">..: services
> 
> 
>
>
> http://www.w3.org/1999/XSL/Format"; class="">
> onmouseover="changeUp(this)"
>
>
href="sitebuilder.Activities?locale%0D%0A%09%09%09%09%09%09%09%0D%0A%09%09%0
9%09%09%09%09%09en%0D%0A%09%09%09%09%09%09%09%0D%0A%09%09%09%09%09%09"
>
>
>


>here is the problem . why i get this very strange string:
>%0D%0A%09%09%09%09%09%09%09%0D%0A%09%09%09%09%09%09%09%09
>between locale and en
>
>


>
>class="mainlink"
>oclass="mainlink"
>hclass="hmainlink"
>name="">..: activities
> 
> 
>
>
> my browser display this string as one space
>
> any idea?
>
> thanx
>
> Stavros Kounis
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




strange output when i use i18n transformation

2002-12-26 Thread Cocoon User
hello people

i have a very strange output when i use i18n
when i use

something


and i ask 
i get in output:

%0D%0A%09%09%09%09%09%09%09%0D%0A%09%09%09%09%09%09%09%09something%0D%0A%09%09%09%09%09%09%09%0D%0A%09%09%09%09%09%09%09%09

its very strange because when i remove the i18n element and try with


something


i get in output
the "something" string

this hapend only when i get the elements value and i put it into a
parameter look at xsl code that follow


a part of my xml code
-

sitebuilder.Services

en

..: article_text1




sitebuilder.Activities


locale_lang


..: article_text1



the xsl part that make the trasformation






?











=



and the output in browser source

http://www.w3.org/1999/XSL/Format"; class="">
..: services




http://www.w3.org/1999/XSL/Format"; class="">
..: activities




my browser display this string as one space

any idea?

thanx

Stavros Kounis



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: i18n best practice

2002-12-19 Thread Konstantin Piroumian
From: <[EMAIL PROTECTED]>

> Thank you Konstantin!

Not at all.

>
> "Konstantin Piroumian" <[EMAIL PROTECTED]> writes:
> > My mail application could not open your message correctly due to some
error
> > in encoding, so my answers are marked by [KP]:
>
> Gnus wanted to know the encoding style (latin-1), sorry!
>
> > [KP] i18n transformer is not responsible for language selection, it
accepts
> > a 'locale' parameter (since C2.0.4) which can be generated by a variety
of
> > ways: URI parts, request parameters, retrieved from a DB and of course
> > generated by the LocaleAction.
>
> That's what I understood from the samples and experimentation.
>
> > (1) create URL's with ?locale=xx_YY
> >
> > [KP] This is a common technic for 'changing' the current language (which
> > will be stored in session by LocaleAction if configured)
>
> This is what I tried. My problem was, that subsequent requests used again
the
> first locale. With a little experimentation I found that this depends on
> cookies (of course, the session identification!).  This is why I asked
>
> > (2) store the state of the actual user locale in the session
> >
> > [KP] This is possible for ages by the LocaleAction. And even more, you
can
> > also store locale in a cookie, so that when the user re-visits your site
> > you'll get the locale that he's selected last time.
> >
> > While (1) is straightforward to achieve with stylesheet parameters, it
feels
> > somewhat messy. Solution (2) seems more elegant, however I need some
advice
> > how to:
> >
> > [KP] For (1) you will need to add '?locale=xx_YY' only in one place -
this
> > link for language change.
>
> ok
>
> > (2a) store and change the locale in the session
> > (2b) query the locale from the session and handle it to the
i18n-transformer
> >
> > I guess (2b) is what LocaleAction is for.
> >
> > [KP] LocaleAction is both: for 2a and 2b. Simply take a look at the i18n
> > samples in /webapp/samples/i18n directory). (Note, that there is also
the
> > old i18n directory in /webapp/i18n in C2.0.x versions - it should be
> > removed, do not look at it).
>
> Well, as far as I see, everything works now when cookies are enabled.
Would
> URL-rewriting be an options if no cookies are allowed?

Usually, the URL-rewriting is performed by the server (in WebLogic at least
and AFAIR in Tomcat too) if client does not support cookies. From the
application developer's POV the session tracking mechanism is transparent,
so you don't have to bother how is your session tracked. The only thing to
remember is that when you have external links (that refer to another
application context) or redirects then you'll have to explicitely encode the
session id in your URLs.

I hope you've found the needed configuration parameters that you need to set
to allow the locale information to be saved in session (and create a session
if needed).

Konstantin

>
> Martin
>
> --
> Martin Lüthi [EMAIL PROTECTED]
>
>
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: i18n best practice

2002-12-19 Thread Martin Lüthi
Thank you Konstantin!

"Konstantin Piroumian" <[EMAIL PROTECTED]> writes:
> My mail application could not open your message correctly due to some error
> in encoding, so my answers are marked by [KP]:

Gnus wanted to know the encoding style (latin-1), sorry!

> [KP] i18n transformer is not responsible for language selection, it accepts
> a 'locale' parameter (since C2.0.4) which can be generated by a variety of
> ways: URI parts, request parameters, retrieved from a DB and of course
> generated by the LocaleAction.

That's what I understood from the samples and experimentation.

> (1) create URL's with ?locale=xx_YY
> 
> [KP] This is a common technic for 'changing' the current language (which
> will be stored in session by LocaleAction if configured)

This is what I tried. My problem was, that subsequent requests used again the
first locale. With a little experimentation I found that this depends on
cookies (of course, the session identification!).  This is why I asked

> (2) store the state of the actual user locale in the session
> 
> [KP] This is possible for ages by the LocaleAction. And even more, you can
> also store locale in a cookie, so that when the user re-visits your site
> you'll get the locale that he's selected last time.
> 
> While (1) is straightforward to achieve with stylesheet parameters, it feels
> somewhat messy. Solution (2) seems more elegant, however I need some advice
> how to:
> 
> [KP] For (1) you will need to add '?locale=xx_YY' only in one place - this
> link for language change.

ok

> (2a) store and change the locale in the session
> (2b) query the locale from the session and handle it to the i18n-transformer
> 
> I guess (2b) is what LocaleAction is for.
> 
> [KP] LocaleAction is both: for 2a and 2b. Simply take a look at the i18n
> samples in /webapp/samples/i18n directory). (Note, that there is also the
> old i18n directory in /webapp/i18n in C2.0.x versions - it should be
> removed, do not look at it).

Well, as far as I see, everything works now when cookies are enabled. Would
URL-rewriting be an options if no cookies are allowed? 

Martin

-- 
Martin Lüthi [EMAIL PROTECTED]



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: i18n best practice

2002-12-19 Thread Konstantin Piroumian
Hi!

My mail application could not open your message correctly due to some error
in encoding, so my answers are marked by [KP]:

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 14:22
Subject: i18n best practice


Hello

The i18n transformer is a great solution for the creation of multilingual
content. So far I have found no documentation on how to best implement
language change. ATM I see two possibilities:

[KP] i18n transformer is not responsible for language selection, it accepts
a 'locale' parameter (since C2.0.4) which can be generated by a variety of
ways: URI parts, request parameters, retrieved from a DB and of course
generated by the LocaleAction.

(1) create URL's with ?locale=xx_YY

[KP] This is a common technic for 'changing' the current language (which
will be stored in session by LocaleAction if configured)

(2) store the state of the actual user locale in the session

[KP] This is possible for ages by the LocaleAction. And even more, you can
also store locale in a cookie, so that when the user re-visits your site
you'll get the locale that he's selected last time.

While (1) is straightforward to achieve with stylesheet parameters, it feels
somewhat messy. Solution (2) seems more elegant, however I need some advice
how to:

[KP] For (1) you will need to add '?locale=xx_YY' only in one place - this
link for language change.

(2a) store and change the locale in the session
(2b) query the locale from the session and handle it to the i18n-transformer

I guess (2b) is what LocaleAction is for.

[KP] LocaleAction is both: for 2a and 2b. Simply take a look at the i18n
samples in /webapp/samples/i18n directory). (Note, that there is also the
old i18n directory in /webapp/i18n in C2.0.x versions - it should be
removed, do not look at it).

[KP] Konstantin

Thanks for all hints

Martin


--
Martin L?thi [EMAIL PROTECTED]




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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




i18n best practice

2002-12-19 Thread Martin Lüthi
Hello

The i18n transformer is a great solution for the creation of multilingual
content. So far I have found no documentation on how to best implement
language change. ATM I see two possibilities:

(1) create URL's with ?locale=xx_YY 

(2) store the state of the actual user locale in the session

While (1) is straightforward to achieve with stylesheet parameters, it feels
somewhat messy. Solution (2) seems more elegant, however I need some advice
how to:

(2a) store and change the locale in the session
(2b) query the locale from the session and handle it to the i18n-transformer

I guess (2b) is what LocaleAction is for. 

Thanks for all hints

Martin


-- 
Martin Lüthi [EMAIL PROTECTED]




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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: i18n - greek sample

2002-12-16 Thread Konstantin Piroumian
Great!

The official way of submiting patches is through Bugzilla, but it'd be
faster if you send it directly me by [EMAIL PROTECTED]

Please, include also the image of the Greece flag.

Konstantin

From: "Cocoon User" <[EMAIL PROTECTED]>

>
> we have add greek language in i18n refactored sample
>
> where can we send all this files to be part of the official
> i18n refactored samples
>
>
> Stavros Kounis
> http://www.osmosis.gr
>


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




i18n - greek sample

2002-12-16 Thread Cocoon User

we have add greek language in i18n refactored sample

where can we send all this files to be part of the official
i18n refactored samples


Stavros Kounis
http://www.osmosis.gr






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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: i18n and xmlform combination- HELP

2002-12-11 Thread Konstantin Piroumian
i18n and xmlform combination- HELPPlease do not use HTML messages!

Try to remove the LocaleAction and leave the:




if this helps, move the action to the beginning of the matcher and wrap with
it all the contents. Do not forget to change other parameters, e.g.:


---^

Konstantin


- Original Message -
From: Hong Gia Dinh
To: [EMAIL PROTECTED]
Sent: Wednesday, December 11, 2002 13:23
Subject: i18n and xmlform combination- HELP





-Original Message-
From: Hong Gia Dinh
Sent: 10 December 2002 15:10
To: '[EMAIL PROTECTED]'
Subject: RE: i18n and xmlform combination-HELP


I just applied i18n into the XMLForm sample of Cocoon2.1 like this, but it
cant apply i18n
in sitemap i declare :


http://www.ascc.net/xml/schematron"/>


























and my start.xsp like this:

http://apache.org/xsp";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:i18n="http://apache.org/cocoon/i18n/2.0";>



start?locale=en
English


start?locale=fr
French










homepage







and my userIdentity.xsp like this :

http://apache.org/xsp";
xmlns:xsp-request="http://apache.org/xsp/request/2.0";
xmlns:i18n="http://apache.org/cocoon/i18n/2.0";>
http://xml.apache.org/cocoon/xmlform/2002";>



wizard?cocoon-action-start=true&locale=en
English



wizard?cocoon-action-start=true&locale=fr

French




personal_information

.
and wizard2html.xsl :




http://www.w3.org/1999/XSL/Transform";
xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002";
exclude-result-prefixes="xalan"
xmlns:i18n="http://apache.org/cocoon/i18n/2.0";>




XMLForm - Cocoon Feedback Wizard













but every time i click to change from english to french in the userIdentify
form and even in the english form the part "

personal_information

" always display 'personal_information' (message key)- not 'Personal
Information'
although i define the messages files and in sitemap :

messages

translation
true

for the directory and the file
i am really getting crazy with it!!
can somebody tell me what i did wrong ???
thanks very very much in advance
GD











-Original Message-
From: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]]
Sent: 10 December 2002 13:54
To: '[EMAIL PROTECTED]'
Subject: AW: i18n and xmlform combination-HELP


have you set the {locale} variable correctly or are you sure this working.
my sitemap looks like this:
- code -
 
   
 
   
 
- /code 
try to set the locale parameter to a hard coded value to see if this is
working:
eg.  
to reference a dictionary like dict_tw.xml
ciao Lars
-Ursprüngliche Nachricht-
Von: Hong Gia Dinh [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 9. Dezember 2002 18:38
An: [EMAIL PROTECTED]
Betreff: i18n and xmlform combination-HELP


could sb explain me why i cant use the message key in the message when i use
i18n and xmlform ?
i applied the sample in the how-to i18n and xml form for my application but
it cant read the message key ?


what will the link i will call for translation in xmlform?
thanks very much in advance
GD
-
Please check that your question  has not already been answered in the
FA

i18n and xmlform combination- HELP

2002-12-11 Thread Hong Gia Dinh
Title: i18n and xmlform combination- HELP







-Original Message-
From: Hong Gia Dinh 
Sent: 10 December 2002 15:10
To: '[EMAIL PROTECTED]'
Subject: RE: i18n and xmlform combination-HELP



I just applied i18n into the XMLForm sample of Cocoon2.1 like this, but it cant apply i18n


in sitemap i declare :

    
    http://www.ascc.net/xml/schematron"/>
    
    
    
    
                        
    


    
    
    
        
            
        
    
    
    
    
    
    
        
            
        
    
                            
    




and my start.xsp like this:



http://apache.org/xsp" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:i18n="http://apache.org/cocoon/i18n/2.0">


    
        
        start?locale=en
        English
        
        
            start?locale=fr
        French
        
    
    
    
    
    
        
            
                
            homepage

                        
                    
                
            
        
    



and my userIdentity.xsp like this :



http://apache.org/xsp" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:i18n="http://apache.org/cocoon/i18n/2.0">

    http://xml.apache.org/cocoon/xmlform/2002">
        
            
                wizard?cocoon-action-start=true&locale=en


                English
            
            
                wizard?cocoon-action-start=true&locale=fr
                
                French
            
        
        
            
                personal_information
            


.


and wizard2html.xsl :





http://www.w3.org/1999/XSL/Transform"
    xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002"
    exclude-result-prefixes="xalan" xmlns:i18n="http://apache.org/cocoon/i18n/2.0">
    
        
            
        
            XMLForm - Cocoon Feedback Wizard
            
            
                
            
        
    
    
    
        
            
        
    



but every time i click to change from english to french in the userIdentify form and even in the english form the part "

            
                personal_information
            


" always display 'personal_information' (message key)- not 'Personal Information'


although i define the messages files and in sitemap :


            

                messages
                translation
                true
            


for the directory and the file


i am really getting crazy with it!!


can somebody tell me what i did wrong ???


thanks very very much in advance
GD












-Original Message-
From: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]]
Sent: 10 December 2002 13:54
To: '[EMAIL PROTECTED]'
Subject: AW: i18n and xmlform combination-HELP



have you set the {locale} variable correctly or are you sure this working. 


my sitemap looks like this:


- code -
       
   
 
   
  
- /code 


try to set the locale parameter to a hard coded value to see if this is
working:
eg.  


to reference a dictionary like dict_tw.xml


ciao Lars


-Ursprüngliche Nachricht-
Von: Hong Gia Dinh [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 9. Dezember 2002 18:38
An: [EMAIL PROTECTED]
Betreff: i18n and xmlform combination-HELP



could sb explain me why i cant use the message key in the message when i use
i18n and xmlform ? 
i applied the sample in the how-to i18n and xml form for my application but
it cant read the message key ? 



what will the link i will call for translation in xmlform? 
thanks very much in advance 
GD 


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


To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>





AW: i18n transformer and serializer charset

2002-12-10 Thread Kirchhoff, Lars
Thank you Konstantin, 

you were right, it's working with utf charset, as well as the original 
strings are using TIS-620. But now I run in a new problem. I get these
characters from a database and unfortunately the characters will be 
transformed to be html compliant. That means odd characters like this 
¡Ã are transformed to this ¡Ã and because of this the 
characters are not decoded correctly. 
the strange thing is that i used the following in the xsp page:

getData()
¡ÃдÒɤÒÃìºÍ¹ 303HÊàµç¡«ÍÊäι«ìäι

The data inside the para element is transformed to the html compliant
versions but the characters in the title element is stays like this
and are decoded correctly. 

can anybody tell me how to insert utf-8 characters from a database 
correctly into the xml document. the postgres database is UNICODE 
encoded.

ciao Lars

> -Ursprüngliche Nachricht-
> Von: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 10. Dezember 2002 18:06
> An: [EMAIL PROTECTED]
> Betreff: Re: i18n transformer and serializer charset
> 
> 
> From: "Kirchhoff, Lars" <[EMAIL PROTECTED]>
> 
> > Hello
> >
> > I'm currently trying to create an application, which should 
> be running
> > in english, german, thai and several other asian languages.
> > The i18n transformer is working correctly, but to display 
> the characters
> > in the correct manner it is needed to use the specific 
> charset in the meta
> > tag of html.
> > Therefore I tried to setup the sitemap with different serializers
> according
> > the different languages and tried to use the locale 
> variable to select one
> > of the serializers. But this doesn't work.
> >
> > here are some snippets of my sitemap:
> >
> > - code -
> > ...
> >   >  src="org.apache.cocoon.serialization.HTMLSerializer">
> >    TIS-620
> >  
> >   >  src="org.apache.cocoon.serialization.HTMLSerializer">
> >UTF-8
> >  
> 
> Why don't you use UTF-8 for all the languages? That works in 
> the Cocoon 2.1
> i18n sample for such languages as Japanese, Chinese and 
> Korean (and many
> others).
> 
> >
> > ...
> >
> >  
> >
> >  
> 
> I'm not sure that this is supported. Are you using the 
> compiled sitemap
> engine or interpreted?
> 
> >
> > ...
> > - code -
> >
> > At first is this possible at all? As far as I read the 
> documentation or
> the
> > mailling list archives I could find anything.
> > At second is it possible to get the http request paramater 
> oder session
> > parameter in the sitemap.
> 
> You can easily get either request parameters, request and 
> session attributes
> in the sitemap using input modules from the latest release, e.g.:
> 
> 
> 
> See Input modules sample (/samples/module) in C2.1 for details.
> 
> Konstantin
> 
> >
> > Any help is appreciated. thanks
> >
> > ciao Lars
> >
> > 
> -
> > Please check that your question  has not already been 
> answered in the
> > FAQ before posting. 
> <http://xml.apache.org/cocoon/faq/index.html>
> >
> > To unsubscribe, e-mail: 
> <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   
> <[EMAIL PROTECTED]>
> >
> >
> 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: i18n transformer and serializer charset

2002-12-10 Thread Konstantin Piroumian
From: "Kirchhoff, Lars" <[EMAIL PROTECTED]>

> Hello
>
> I'm currently trying to create an application, which should be running
> in english, german, thai and several other asian languages.
> The i18n transformer is working correctly, but to display the characters
> in the correct manner it is needed to use the specific charset in the meta
> tag of html.
> Therefore I tried to setup the sitemap with different serializers
according
> the different languages and tried to use the locale variable to select one
> of the serializers. But this doesn't work.
>
> here are some snippets of my sitemap:
>
> - code -
> ...
>src="org.apache.cocoon.serialization.HTMLSerializer">
>TIS-620
>  
>src="org.apache.cocoon.serialization.HTMLSerializer">
>UTF-8
>  

Why don't you use UTF-8 for all the languages? That works in the Cocoon 2.1
i18n sample for such languages as Japanese, Chinese and Korean (and many
others).

>
> ...
>
>  
>
>  

I'm not sure that this is supported. Are you using the compiled sitemap
engine or interpreted?

>
> ...
> - code -
>
> At first is this possible at all? As far as I read the documentation or
the
> mailling list archives I could find anything.
> At second is it possible to get the http request paramater oder session
> parameter in the sitemap.

You can easily get either request parameters, request and session attributes
in the sitemap using input modules from the latest release, e.g.:



See Input modules sample (/samples/module) in C2.1 for details.

Konstantin

>
> Any help is appreciated. thanks
>
> ciao Lars
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




i18n transformer and serializer charset

2002-12-10 Thread Kirchhoff, Lars
Hello 

I'm currently trying to create an application, which should be running 
in english, german, thai and several other asian languages. 
The i18n transformer is working correctly, but to display the characters
in the correct manner it is needed to use the specific charset in the meta 
tag of html. 
Therefore I tried to setup the sitemap with different serializers according 
the different languages and tried to use the locale variable to select one 
of the serializers. But this doesn't work. 

here are some snippets of my sitemap:

- code -
...
 
   TIS-620
 
 
   UTF-8
 

...

 
   
 

...
- code -

At first is this possible at all? As far as I read the documentation or the
mailling list archives I could find anything.
At second is it possible to get the http request paramater oder session 
parameter in the sitemap.

Any help is appreciated. thanks

ciao Lars

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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




RE: i18n and xmlform combination-HELP

2002-12-10 Thread Hong Gia Dinh
Title: RE: i18n and xmlform combination-HELP





I just applied i18n into the XMLForm sample of Cocoon2.1 like this, but it cant apply i18n


in sitemap i declare :

    
    http://www.ascc.net/xml/schematron"/>
    
    
    
    
                        
    


    
    
    
        
            
        
    
    
    
    
    
    
        
            
        
    
                            
    




and my start.xsp like this:



http://apache.org/xsp" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:i18n="http://apache.org/cocoon/i18n/2.0">


    
        
        start?locale=en
        English
        
        
            start?locale=fr
        French
        
    
    
    
    
    
        
            
                
            homepage

                        
                    
                
            
        
    



and my userIdentity.xsp like this :



http://apache.org/xsp" xmlns:xsp-request="http://apache.org/xsp/request/2.0" xmlns:i18n="http://apache.org/cocoon/i18n/2.0">

    http://xml.apache.org/cocoon/xmlform/2002">
        
            
                wizard?cocoon-action-start=true&locale=en


                English
            
            
                wizard?cocoon-action-start=true&locale=fr
                
                French
            
        
        
            
                personal_information
            


.


and wizard2html.xsl :





http://www.w3.org/1999/XSL/Transform"
    xmlns:xf="http://xml.apache.org/cocoon/xmlform/2002"
    exclude-result-prefixes="xalan" xmlns:i18n="http://apache.org/cocoon/i18n/2.0">
    
        
            
        
            XMLForm - Cocoon Feedback Wizard
            
            
                
            
        
    
    
    
        
            
        
    



but every time i click to change from english to french in the userIdentify form and even in the english form the part "

            
                personal_information
            


" always display 'personal_information' (message key)- not 'Personal Information'


although i define the messages files and in sitemap :


            

                messages
                translation
                true
            


for the directory and the file


i am really getting crazy with it!!


can somebody tell me what i did wrong ???


thanks very very much in advance
GD












-Original Message-
From: Kirchhoff, Lars [mailto:[EMAIL PROTECTED]]
Sent: 10 December 2002 13:54
To: '[EMAIL PROTECTED]'
Subject: AW: i18n and xmlform combination-HELP



have you set the {locale} variable correctly or are you sure this working. 


my sitemap looks like this:


- code -
       
   
 
   
  
- /code 


try to set the locale parameter to a hard coded value to see if this is
working:
eg.  


to reference a dictionary like dict_tw.xml


ciao Lars


-Ursprüngliche Nachricht-
Von: Hong Gia Dinh [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 9. Dezember 2002 18:38
An: [EMAIL PROTECTED]
Betreff: i18n and xmlform combination-HELP



could sb explain me why i cant use the message key in the message when i use
i18n and xmlform ? 
i applied the sample in the how-to i18n and xml form for my application but
it cant read the message key ? 



what will the link i will call for translation in xmlform? 
thanks very much in advance 
GD 


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


To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>





AW: i18n and xmlform combination-HELP

2002-12-09 Thread Kirchhoff, Lars
have you set the {locale} variable correctly or are you sure this working. 

my sitemap looks like this:

- code -
   
   
 
   
  
- /code 

try to set the locale parameter to a hard coded value to see if this is
working:
eg.  

to reference a dictionary like dict_tw.xml

ciao Lars

-Ursprüngliche Nachricht-
Von: Hong Gia Dinh [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 9. Dezember 2002 18:38
An: [EMAIL PROTECTED]
Betreff: i18n and xmlform combination-HELP


could sb explain me why i cant use the message key in the message when i use
i18n and xmlform ? 
i applied the sample in the how-to i18n and xml form for my application but
it cant read the message key ? 


what will the link i will call for translation in xmlform? 
thanks very much in advance 
GD 

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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




RE: i18n and XMLForm declaration in sitemap

2002-12-09 Thread Hong Gia Dinh
Title: RE: i18n and XMLForm declaration in sitemap





thanks, i found it!!!


-Original Message-
From: Josema Alonso [mailto:[EMAIL PROTECTED]]
Sent: 09 December 2002 15:34
To: [EMAIL PROTECTED]
Subject: Re: i18n and XMLForm declaration in sitemap



i18n and XMLForm declaration in
sitemaphttp://xml.apache.org/cocoon/howto/howto-i18n-xmlform.html


ps: please, no HTML email next time, thanks.


- Original Message -
From: Hong Gia Dinh
To: [EMAIL PROTECTED]
Sent: Monday, December 09, 2002 8:19 AM
Subject: i18n and XMLForm declaration in sitemap



hello
can somebody show me how to declare XMLForm using i18n by calling action
(both are actions) in sitemap?
thanks a lot much
GD




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


To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>





RE: i18n and XMLForm declaration in sitemap

2002-12-09 Thread Hong Gia Dinh
Title: RE: i18n and XMLForm declaration in sitemap





as far as i know and found there does not exist that link.
could you please recheck it?
Thanks


-Original Message-
From: Josema Alonso [mailto:[EMAIL PROTECTED]]
Sent: 09 December 2002 15:34
To: [EMAIL PROTECTED]
Subject: Re: i18n and XMLForm declaration in sitemap



i18n and XMLForm declaration in
sitemaphttp://xml.apache.org/cocoon/howto/howto-i18n-xmlform.html


ps: please, no HTML email next time, thanks.


- Original Message -
From: Hong Gia Dinh
To: [EMAIL PROTECTED]
Sent: Monday, December 09, 2002 8:19 AM
Subject: i18n and XMLForm declaration in sitemap



hello
can somebody show me how to declare XMLForm using i18n by calling action
(both are actions) in sitemap?
thanks a lot much
GD




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


To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>





i18n and xmlform combination-HELP

2002-12-09 Thread Hong Gia Dinh
Title: i18n and xmlform combination-HELP





could sb explain me why i cant use the message key in the message when i use i18n and xmlform ?


i applied the sample in the how-to i18n and xml form for my application but it cant read the message key ?



what will the link i will call for translation in xmlform?


thanks very much in advance 
GD





Re: i18n and XMLForm declaration in sitemap

2002-12-09 Thread Josema Alonso
i18n and XMLForm declaration in
sitemaphttp://xml.apache.org/cocoon/howto/howto-i18n-xmlform.html

ps: please, no HTML email next time, thanks.

- Original Message -
From: Hong Gia Dinh
To: [EMAIL PROTECTED]
Sent: Monday, December 09, 2002 8:19 AM
Subject: i18n and XMLForm declaration in sitemap


hello
can somebody show me how to declare XMLForm using i18n by calling action
(both are actions) in sitemap?
thanks a lot much
GD



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




i18n and XMLForm declaration in sitemap

2002-12-08 Thread Hong Gia Dinh
Title: i18n and XMLForm declaration in sitemap





hello 
can somebody show me how to declare XMLForm using i18n by calling action (both are actions) in sitemap?


thanks a lot much
GD





RE: i18n more!!

2002-11-29 Thread Hong Gia Dinh
Title: RE: i18n more!!





thnks for u information, it seems  right the way i need. do u have any sample code  to show how to retrieve current user's locale with LocaleAction

thnks


-Original Message-
From: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
Sent: 27 November 2002 16:58
To: [EMAIL PROTECTED]
Subject: Re: i18n more!!



i18n more!!Take a look at the LocaleAction.
It provides mechanism for setting user's locale for a session, request, in a
cookie. And it uses either request parameter or the client's locale or a
cookie to determine selected locale for the first time.


See
http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/acting/LocaleAction.h
tml for more.


Konstantin


- Original Message -
From: Hong Gia Dinh
To: [EMAIL PROTECTED]
Sent: Wednesday, November 27, 2002 12:54
Subject: i18n more!!



I 'm a new user in cocoon,
I have the case :
i have a web site trying to apply cocoon into it.
i have 2 languages, english and french
now if in one page i choose a language such as 'french' i want all next page
from that on will be in french. how can i do that?
how can i know the current language i chose?
can u all tell me?
cheers
GD



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


To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>





Re: i18n more!!

2002-11-27 Thread Konstantin Piroumian
i18n more!!Take a look at the LocaleAction.
It provides mechanism for setting user's locale for a session, request, in a
cookie. And it uses either request parameter or the client's locale or a
cookie to determine selected locale for the first time.

See
http://xml.apache.org/cocoon/apidocs/org/apache/cocoon/acting/LocaleAction.h
tml for more.

Konstantin

- Original Message -
From: Hong Gia Dinh
To: [EMAIL PROTECTED]
Sent: Wednesday, November 27, 2002 12:54
Subject: i18n more!!


I 'm a new user in cocoon,
I have the case :
i have a web site trying to apply cocoon into it.
i have 2 languages, english and french
now if in one page i choose a language such as 'french' i want all next page
from that on will be in french. how can i do that?
how can i know the current language i chose?
can u all tell me?
cheers
GD


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: i18n more!!

2002-11-27 Thread Kavitha Ramesh
hi GD,

If you want to get a good idea about i18n, go to the
welcome page of your cocoon(after cocoon installation,
 go to the url, http://localhost:8080/cocoon), you
have a title Internationalization.Click the link and
explore.Also in your cocoon directory you will have a
folder i18n, explore that too.

In your case you should have messages.xml(for english)
and messages_fr (for french).In the browser go to the
menu Extras-Internet options-Language-Choose French
and bring the French language above all the other
languages and click OK button.Your pages will have all
the messages in French.

Have Fun!

Kavitha.


--- Hong Gia Dinh <[EMAIL PROTECTED]> wrote:
> I 'm a new user in cocoon, 
> I have the case :
> i have a web site trying to apply cocoon into it.
> i have 2 languages, english and french
> now if in one page i choose a language such as
> 'french' i want all next page
> from that on will be in french. how can i do that?
> how can i know the current language i chose?
> can u all tell me?
> cheers
> GD
> 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




AW: i18n more!!

2002-11-27 Thread Kirchhoff, Lars
hi GD,

you have to use the i18n Transformer, which sample and documentation is
actually very good. try the instruction that can be found here
http://xml.apache.org/cocoon/userdocs/transformers/i18n-transformer.html

ciao Lars

-Ursprungliche Nachricht-
Von: Hong Gia Dinh [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 27. November 2002 17:54
An: [EMAIL PROTECTED]
Betreff: i18n more!!


I 'm a new user in cocoon, 
I have the case : 
i have a web site trying to apply cocoon into it. 
i have 2 languages, english and french 
now if in one page i choose a language such as 'french' i want all next page
from that on will be in french. how can i do that?
how can i know the current language i chose? 
can u all tell me? 
cheers 
GD 

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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




i18n more!!

2002-11-27 Thread Hong Gia Dinh
Title: i18n more!!





I 'm a new user in cocoon, 
I have the case :
i have a web site trying to apply cocoon into it.
i have 2 languages, english and french
now if in one page i choose a language such as 'french' i want all next page from that on will be in french. how can i do that?

how can i know the current language i chose?
can u all tell me?
cheers
GD





Re: i18n translator and thai support

2002-11-27 Thread Konstantin Piroumian
Hi!

Probably, you are using a wrong editor to edit your dictionary files and it
somehow mangles the encoding.
I usually use XML Spy to edit this kind of exotic languages and I've
successfully edited the Chinese, Japanese and Korean translations (they are
in C2.1 only).

Regards,
  Konstantin


- Original Message -
From: "Kirchhoff, Lars" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 26, 2002 12:06
Subject: i18n translator and thai support


> Hi,
>
> I played around with the i18n translator and it worked perfectly for
german
> and english translation. But now I tried to create a dictonary for thai
> language and it's not working. I always get the english dictonary. I
figured
> out that, if the dictonary file [for instances messages_th.xml] is wrong
or
> has wrong statements in it, the other dictonaries are tried.
> After this I simply tried to put some thai characters in the xsp code and
> got the following error:
>
>  error ===
> The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode
notifies
> that org.apache.cocoon.ProcessingException says:
>
> Invalid byte 2 of 2-byte UTF-8 sequence.
>
> More precisely:
>
> org.apache.cocoon.ProcessingException: Invalid byte 2 of 2-byte UTF-8
> sequence.: java.io.UTFDataFormatException: Invalid byte 2 of 2-byte UTF-8
> sequence.
>  /error ===
>
> can anyone give me a suggestions what I can do? The funny thing is that
the
> date-time function of i18n transformer is working and shows the date in
thai
> fonts.
>
> Thanks in advance
>
> best regards
> Lars Kirchhoff
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
>
>


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




i18n translator and thai support

2002-11-26 Thread Kirchhoff, Lars
Hi,

I played around with the i18n translator and it worked perfectly for german
and english translation. But now I tried to create a dictonary for thai
language and it's not working. I always get the english dictonary. I figured
out that, if the dictonary file [for instances messages_th.xml] is wrong or
has wrong statements in it, the other dictonaries are tried. 
After this I simply tried to put some thai characters in the xsp code and
got the following error:

 error ===
The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies
that org.apache.cocoon.ProcessingException says:

Invalid byte 2 of 2-byte UTF-8 sequence. 

More precisely:

org.apache.cocoon.ProcessingException: Invalid byte 2 of 2-byte UTF-8
sequence.: java.io.UTFDataFormatException: Invalid byte 2 of 2-byte UTF-8
sequence. 
 /error ===

can anyone give me a suggestions what I can do? The funny thing is that the
date-time function of i18n transformer is working and shows the date in thai
fonts.

Thanks in advance

best regards
Lars Kirchhoff

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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




[doc] New How-To: i18n with XMLForm

2002-11-01 Thread Diana Shannon
A new How-To was just added to the Cocoon cvs. Here are the details:

Title: i18n within the XMLForm Framework
Author: Mohamed El-Refaey (with German translations provided by Michael 
Enke)
Description: This How-To shows you how to use the i18n for web site 
internationalization within the XMLForm Framework.
Location: xml-cocoon2/src/documentation/xdocs/howto/howto-i18n-
xmlform.xml
Version: Requires Cocoon 2.1-dev

Please check it out and provide any comments or suggestions to the 
author via the email listed on the How-To or to the Cocoon project via 
Bugzilla.

Thanks Mohamed for your How-To!


---
Ready to contribute your own How-To?
Check out How-To Author a How-To at:
  http://xml.apache.org/cocoon/howto/howto-author-howto.html

Ready to start a document draft?
Check out Cocoon's wiki at:
  http://www.outerthought.net/wiki/


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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>



RE: Useful directory structure (was AW: i18n with sub sitemaps)

2002-10-08 Thread Piroumian Konstantin

> From: Majcen, Kurt [mailto:[EMAIL PROTECTED]] 
> 
> Thanks, it worked.

Fine!

> 
> In addition I had to change other locations e.g. for the 
> standard mapping for *.css as well.
> 
> This opened a general question to me. What is a good 
> directory structure with cocoon (with sub sitemaps) for a 
> multilingual website providing several functions like
> - user registration
> - search for users
> - search for objects
> - annotate objects
> 
> 
> What are the (dis-)advantages of having something like:
> 
> root
> --|
>   |
>   +--- images
>   |
>   +--- xhtml/xsp
>   |
>   +--- scripts
>   |
>   +--- styles (.css)
>   |
>   +--- stylesheets
>   |
>   +--- translations
>   |
>   +--- validation
>   |
>   +--- Web-INF
>   |
>   +--- User Registration --
>   |   |
>   |   +--- xhtml/xsp
>   |   |
>   |   +--- stylesheets
>   |   |
>   |   +--- translations
>   |   |
>   |   +--- validation
>   |   |
>   |   sitemap.xmap
>   |
>   +--- Search for User
>   |
>   ...
>   |
>   sitemap.xmap

One thing I'd do for sure: move some of the used resources to the WEB-INF,
so they would not be accidentally sent to the user. So, WEB-INF can look
like:
WEB-INF\
translations\
common.xml
common_de.xml
...
search.xml
search_de.xml
...
validation\
rules.xml
... 
etc.

I understand that Cocoon allows to place _all_ the webapp resources inside
of the WEB-INF and define paths in the sitemap, but I don't like this
approach and like to see all webapp contents in their usual places (/,
images/, css/, etc.). 

But for the translations, validation rules, etc. - they are some kind of a
meta-data that are used by several componenets to process the response and
they are never referred from the user's browser - so the best place for them
is a sub-directory of WEB-INF.

--
  Konstantin Piroumian

> 
> Thanks, Kurt
> 
> 
> -UrsprØngliche Nachricht-
> Von: Piroumian Konstantin [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 07. Oktober 2002 16:10
> An: '[EMAIL PROTECTED]'
> Betreff: RE: i18n with sub sitemaps
> 
> 
> > From: Majcen, Kurt [mailto:[EMAIL PROTECTED]]
> > 
> > Hi all!
> > 
> > Is it possible to tell the i18n transformer to use a fixed
> > catalogue-location from the projects root directory (so 
> > something like '/translations' instead of 'translations')
> > 
> > I'm working with mounted sitemaps in sub-directories. This
> > always creates a wrong path when entering such a sub sitemap.
> 
> Try to use "context://path-to-catalogue". Not sure that it 
> will work though.
> 
> Konstantin  
> 
> > 
> > Thanks
> > Kurt
> > 
> > 
> -
> > Please check that your question  has not already been 
> answered in the
> > FAQ before posting. 
> <http://xml.apache.org/cocoon/faq/index.html>
> > 
> > To 
> unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   
> <[EMAIL PROTECTED]>
> > 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Useful directory structure (was AW: i18n with sub sitemaps)

2002-10-08 Thread Majcen, Kurt

Thanks, it worked.

In addition I had to change other locations e.g. for the standard mapping
for *.css as well.

This opened a general question to me. What is a good directory structure
with cocoon (with sub sitemaps) for a multilingual website providing several
functions like
- user registration
- search for users
- search for objects
- annotate objects


What are the (dis-)advantages of having something like:

root
--|
  |
  +--- images
  |
  +--- xhtml/xsp
  |
  +--- scripts
  |
  +--- styles (.css)
  |
  +--- stylesheets
  |
  +--- translations
  |
  +--- validation
  |
  +--- Web-INF
  |
  +--- User Registration --
  |   |
  |   +--- xhtml/xsp
  |   |
  |   +--- stylesheets
  |   |
  |   +--- translations
  |   |
  |   +--- validation
  |   |
  |   sitemap.xmap
  |
  +--- Search for User
  |
  ...
  |
  sitemap.xmap

Thanks, Kurt


-Ursprüngliche Nachricht-
Von: Piroumian Konstantin [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 07. Oktober 2002 16:10
An: '[EMAIL PROTECTED]'
Betreff: RE: i18n with sub sitemaps


> From: Majcen, Kurt [mailto:[EMAIL PROTECTED]] 
> 
> Hi all!
> 
> Is it possible to tell the i18n transformer to use a fixed 
> catalogue-location from the projects root directory (so 
> something like '/translations' instead of 'translations')
> 
> I'm working with mounted sitemaps in sub-directories. This 
> always creates a wrong path when entering such a sub sitemap.

Try to use "context://path-to-catalogue". Not sure that it will work though.

Konstantin  

> 
> Thanks
> Kurt
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




RE: i18n with sub sitemaps

2002-10-07 Thread Piroumian Konstantin

> From: Majcen, Kurt [mailto:[EMAIL PROTECTED]] 
> 
> Hi all!
> 
> Is it possible to tell the i18n transformer to use a fixed 
> catalogue-location from the projects root directory (so 
> something like '/translations' instead of 'translations')
> 
> I'm working with mounted sitemaps in sub-directories. This 
> always creates a wrong path when entering such a sub sitemap.

Try to use "context://path-to-catalogue". Not sure that it will work though.

Konstantin  

> 
> Thanks
> Kurt
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




i18n with sub sitemaps

2002-10-07 Thread Majcen, Kurt

Hi all!

Is it possible to tell the i18n transformer to use a fixed
catalogue-location from the projects root directory (so something like
'/translations' instead of 'translations')

I'm working with mounted sitemaps in sub-directories. This always creates a
wrong path when entering such a sub sitemap.

Thanks
Kurt

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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




R: i18n language choice

2002-10-02 Thread Lorenzo De Sio

Thanks again :-)


L.

-Messaggio originale-
Da: Piroumian Konstantin [mailto:[EMAIL PROTECTED]]
Inviato: mercoledi 2 ottobre 2002 16.46
A: '[EMAIL PROTECTED]'
Oggetto: RE: i18n language choice


> From: Lorenzo De Sio [mailto:[EMAIL PROTECTED]] 
> 
> Hmmm...I'm working with 2.0.3.

Yes, you are right. I was sure that I've ported that behavior also to 2.0.3,
but the source shows that I didn't. Although, the example shows parameter
usage and it doesn't work, actually. :(

> 
> Actually, I've noticed this behavior:
> 
> in my example, i18n transformation is not embedded into any 
> LocaleAction;

Actually, the LocaleAction is called internally, so it will lookup for a
'locale' in:
- request parameters
- session attributes
- cookies
- user's locale (request locale)

And all the above is the consequence of the LocaleAction usage.

Seems that I have to think about porting sitemap parameter usage to
2.0.3-dev as well... At least for the sample to work correctly.

Konstantin

> 
> - if I don't pass anything, neither in sitemap, request or 
> session, the client locale is used (I can tell since server 
> is English, clients are Italian :-));
> 
> - if I pass a sitemap parameter directly, as in previous 
> example (), it 
> simply gets ignored, and client locale (Italian) is still used;
> 
> - if I pass a request parameter ( ?locale=en ), it 
> correctly switches to English;
> 
> - if I set somewhere a session parameter 
> ( name="locale">en), it correctly 
> switches to English;
> 
> Sure I'm doing something wrong. Anyway, this is fine for me, 
> since I'm going to store preferences in a session attribute.
> 
> 
> Thanks again,
> 
> L.
> 
> 
> -Messaggio originale-
> Da: Piroumian Konstantin [mailto:[EMAIL PROTECTED]]
> Inviato: mercoledÍ 2 ottobre 2002 14.49
> A: '[EMAIL PROTECTED]'
> Oggetto: RE: i18n language choice
> 
> 
> Passing the locale name using a sitemap parameter was added 
> since version 2.0.2 or even 2.0.3. In the older versions the 
> i18n transformer uses LocaleAction's method internally to 
> obtain the locale.
> 
> Check the sitemap in latest i18n samples 
> (/cocoon/samples/i18n/) - they use LocaleAction to get the 
> locale and then pass it to the i18n transformer. And it works. 
> 
> This functionality is implemented in 2.1 versions as well.
> 
> Regards,
>   Konstantin
> 
> > -Original Message-
> > From: Lorenzo De Sio [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, October 02, 2002 4:17 PM
> > To: Cocoon Users (E-mail)
> > Subject: i18n language choice
> > 
> > 
> > Hi,
> > 
> > I'm starting some work with the i18n transformer, and I'm
> > facing a problem. I want to choose the i18n language with a 
> > sitemap parameter, but passing the "locale" parameter seems 
> > to not work.
> > 
> > BTW, Everything works if I choose the language with a query
> > string "locale" param.
> > 
> > Here are a few sitemap fragments:
> > 
> > [...]
> > 
> > > logger="sitemap.transformer.i18n"
> > name="i18n"
> > src="org.apache.cocoon.transformation.I18nTransformer">
> > messages
> > i18n
> >
> > 
> > [...]
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Thanks in advance,
> > 
> > L.
> > 
> > 
> -
> > Please check that your question  has not already been 
> answered in the
> > FAQ before posting. 
> <http://xml.apache.org/cocoon/faq/index.html>
> > 
> > To 
> unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   
> <[EMAIL PROTECTED]>
> > 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




Re: R: i18n language choice

2002-10-02 Thread Kim Jelmoni


Try something like (with .. = # levels where you are in the sitemap) to 
access locale in the session :


 
  

Kim

Lorenzo De Sio wrote:
> Hmmm...I'm working with 2.0.3.
> 
> Actually, I've noticed this behavior:
> 
> in my example, i18n transformation is not embedded into any LocaleAction;
> 
> - if I don't pass anything, neither in sitemap, request or session, the
> client locale is used (I can tell since server is English, clients are
> Italian :-));
> 
> - if I pass a sitemap parameter directly, as in previous example
> (), it simply gets ignored, and
> client locale (Italian) is still used;
> 
> - if I pass a request parameter ( ?locale=en ), it correctly switches
> to English;
> 
> - if I set somewhere a session parameter ( name="locale">en), it correctly switches to
> English;
> 
> Sure I'm doing something wrong. Anyway, this is fine for me, since I'm going
> to store preferences in a session attribute.
> 
> 
> Thanks again,
> 
> L.
> 
> 
> -Messaggio originale-
> Da: Piroumian Konstantin [mailto:[EMAIL PROTECTED]]
> Inviato: mercoledì 2 ottobre 2002 14.49
> A: '[EMAIL PROTECTED]'
> Oggetto: RE: i18n language choice
> 
> 
> Passing the locale name using a sitemap parameter was added since version
> 2.0.2 or even 2.0.3. In the older versions the i18n transformer uses
> LocaleAction's method internally to obtain the locale.
> 
> Check the sitemap in latest i18n samples (/cocoon/samples/i18n/) - they use
> LocaleAction to get the locale and then pass it to the i18n transformer. And
> it works. 
> 
> This functionality is implemented in 2.1 versions as well.
> 
> Regards,
>   Konstantin
> 
> 
>>-Original Message-
>>From: Lorenzo De Sio [mailto:[EMAIL PROTECTED]] 
>>Sent: Wednesday, October 02, 2002 4:17 PM
>>To: Cocoon Users (E-mail)
>>Subject: i18n language choice
>>
>>
>>Hi,
>>
>>I'm starting some work with the i18n transformer, and I'm 
>>facing a problem. I want to choose the i18n language with a 
>>sitemap parameter, but passing the "locale" parameter seems 
>>to not work.
>>
>>BTW, Everything works if I choose the language with a query 
>>string "locale" param.
>>
>>Here are a few sitemap fragments:
>>
>>[...]
>>
>>   >  logger="sitemap.transformer.i18n"
>>  name="i18n"
>>  src="org.apache.cocoon.transformation.I18nTransformer">
>>messages
>>i18n
>>   
>>
>>[...]
>>
>>
>>  
>>
>>
>>
>>
>>Thanks in advance,
>>
>>L.
>>
>>-
>>Please check that your question  has not already been answered in the
>>FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
>>
>>To unsubscribe, e-mail: <[EMAIL PROTECTED]>
>>For additional commands, e-mail:   <[EMAIL PROTECTED]>
>>
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 
> 



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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




RE: i18n language choice

2002-10-02 Thread Piroumian Konstantin

> From: Lorenzo De Sio [mailto:[EMAIL PROTECTED]] 
> 
> Hmmm...I'm working with 2.0.3.

Yes, you are right. I was sure that I've ported that behavior also to 2.0.3,
but the source shows that I didn't. Although, the example shows parameter
usage and it doesn't work, actually. :(

> 
> Actually, I've noticed this behavior:
> 
> in my example, i18n transformation is not embedded into any 
> LocaleAction;

Actually, the LocaleAction is called internally, so it will lookup for a
'locale' in:
- request parameters
- session attributes
- cookies
- user's locale (request locale)

And all the above is the consequence of the LocaleAction usage.

Seems that I have to think about porting sitemap parameter usage to
2.0.3-dev as well... At least for the sample to work correctly.

Konstantin

> 
> - if I don't pass anything, neither in sitemap, request or 
> session, the client locale is used (I can tell since server 
> is English, clients are Italian :-));
> 
> - if I pass a sitemap parameter directly, as in previous 
> example (), it 
> simply gets ignored, and client locale (Italian) is still used;
> 
> - if I pass a request parameter ( ?locale=en ), it 
> correctly switches to English;
> 
> - if I set somewhere a session parameter 
> ( name="locale">en), it correctly 
> switches to English;
> 
> Sure I'm doing something wrong. Anyway, this is fine for me, 
> since I'm going to store preferences in a session attribute.
> 
> 
> Thanks again,
> 
> L.
> 
> 
> -Messaggio originale-
> Da: Piroumian Konstantin [mailto:[EMAIL PROTECTED]]
> Inviato: mercoledÍ 2 ottobre 2002 14.49
> A: '[EMAIL PROTECTED]'
> Oggetto: RE: i18n language choice
> 
> 
> Passing the locale name using a sitemap parameter was added 
> since version 2.0.2 or even 2.0.3. In the older versions the 
> i18n transformer uses LocaleAction's method internally to 
> obtain the locale.
> 
> Check the sitemap in latest i18n samples 
> (/cocoon/samples/i18n/) - they use LocaleAction to get the 
> locale and then pass it to the i18n transformer. And it works. 
> 
> This functionality is implemented in 2.1 versions as well.
> 
> Regards,
>   Konstantin
> 
> > -Original Message-
> > From: Lorenzo De Sio [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, October 02, 2002 4:17 PM
> > To: Cocoon Users (E-mail)
> > Subject: i18n language choice
> > 
> > 
> > Hi,
> > 
> > I'm starting some work with the i18n transformer, and I'm
> > facing a problem. I want to choose the i18n language with a 
> > sitemap parameter, but passing the "locale" parameter seems 
> > to not work.
> > 
> > BTW, Everything works if I choose the language with a query
> > string "locale" param.
> > 
> > Here are a few sitemap fragments:
> > 
> > [...]
> > 
> > > logger="sitemap.transformer.i18n"
> > name="i18n"
> > src="org.apache.cocoon.transformation.I18nTransformer">
> > messages
> > i18n
> >
> > 
> > [...]
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Thanks in advance,
> > 
> > L.
> > 
> > 
> -
> > Please check that your question  has not already been 
> answered in the
> > FAQ before posting. 
> <http://xml.apache.org/cocoon/faq/index.html>
> > 
> > To 
> unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   
> <[EMAIL PROTECTED]>
> > 
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html>
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

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

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




  1   2   3   4   >