Can't I just add code in the i18n implementation to accept a new parameter?
I am using i18n like this:

<map:transformers>
<map:transformer name="i18n"
src="org.apache.cocoon.transformation.I18nTransformer">
<catalogue-name>translation</catalogue-name>
<!-- catalogue-location>{defaults:skin}/translations/</catalogue-location -->
<catalogue-location>skins/translations/</catalogue-location>
<cache-at-startup>true</cache-at-startup>
</map:transformer>
................
</map:transformers>


<map:transform type="i18n">
           <map:parameter name="locale" value="{lang}"/>
</map:transform>

As you see I am not using the 'lang' action. I just want to be able to configure i18n like this:

<map:transformer name="i18n"
src="org.apache.cocoon.transformation.I18nTransformer">
<catalogue-name>translation</catalogue-name>
<!-- catalogue-location>{defaults:skin}/translations/</catalogue-location -->
<catalogue-location>skins/translations/</catalogue-location>
<cache-at-startup>true</cache-at-startup>
*<default-locale>en</default-locale>*
</map:transformer>
............................


I am using it for generating multilingual static sites, so this is way I'm not using the 'locale' action.

Thanks, Dan.

Konstantin Piroumian wrote:

Unfortunately there is no such a built-in option in LocaleAction (which is
used to get the locale and pass it to the i18n trasformer). It's not that
difficult to add this parameter, but I have absolutely no time to make that
change in the nearest future.

-- Konstantin

----- Original Message ----- From: "Corneanu Dan" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, September 10, 2003 17:24
Subject: i18n default locale





Hi there!

Is there any way to tell i18n what locale to use as default if no
'locale' parameter was specified in a
<map:transform type="i18n"> .... </map:transform> ?

My problems is that if my site is rendered on a machine with a DE locale
I get the default pages translated to DE not
to EN as done on my machine.

Best regards,
Dan.



---------------------------------------------------------------------
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]








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



Reply via email to