You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by dh...@sdcgrp.com on 2004/01/09 10:29:24 UTC

Woody with i18n

Hi all, 

i am starting working on woody and i18n!
i can not transform from en to fr and vice versa!
if i declared in sitemap

<map:transform type="i18n">
  <map:parameter name="locale" value="fr_FR"/>
</map:transform>

then all my pages will be in FR although i change page?locale="en-US"

and if i declared in sitemap

<map:transform type="i18n">
  <map:parameter name="locale" value="en_US"/>
</map:transform>

then all my pages will be in en although i change page?locale="fr-FR"

please show me how to solve this?? thanks a lot

and in my flow script (i got in the cocoon example):

    var localeParam = cocoon.request.get("locale");

how can i debug to see the localeParam??
why cant i use the "alert " function of javascript??

thanks a lot

AW: Woody with i18n

Posted by Markus Heussen <he...@rheinland-online.com>.
-----Ursprüngliche Nachricht-----
Von: dhg@sdcgrp.com
Gesendet: Freitag, 9. Januar 2004 10:29
An: users@cocoon.apache.org
Betreff: Woody with i18n


Hi all,
i am starting working on woody and i18n!
i can not transform from en to fr and vice versa!
if i declared in sitemap
<map:transform type="i18n">
  <map:parameter name="locale" value="fr_FR"/>
</map:transform>
then all my pages will be in FR although i change page?locale="en-US"
and if i declared in sitemap
<map:transform type="i18n">
  <map:parameter name="locale" value="en_US"/>
</map:transform>
then all my pages will be in en although i change page?locale="fr-FR"
please show me how to solve this?? thanks a lot
and in my flow script (i got in the cocoon example):
    var localeParam = cocoon.request.get("locale");
how can i debug to see the localeParam??
why cant i use the "alert " function of javascript??
thanks a lot


Debug with print("some text") to your stdout of your servlet container or
with cocoon.log.debug("some text") to your flowscript log. remember to setup
logkit.xconf correctly to debug mode.

try using: var localeParam = cocoon.request.getLocale();

Markus


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org