forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <che...@che-che.com>
Subject Re: i18n suggestion
Date Tue, 16 Mar 2004 11:36:44 GMT
Upa,

> 
> As you'll see, I'm learning too. I posted a message on dev@cocoon, and 
> Vadim suggested the LocaleAction. Thus, with the following sitemap code, 
> we've got what we want:


We already are using the LocaleAction. Check on forrest.xmap, I think
that I have forwarded already the code.



>      <map:select type="resource-exists">
>        <map:when test="{../1}/{../2}.{lang}-{country}.xml">
>            <map:generate src="{../1}/{../2}.{lang}-{country}.xml"/>
>         </map:when>
>         <map:when test="{../1}/{../2}.{lang}.xml">
>            <map:generate src="{../1}/{../2}.{lang}.xml"/>
>         </map:when>
>         <map:otherwise>
>           <map:generate src="{../1}/{../2}.{global:default-lang}.xml"/>
>         </map:otherwise>
>       </map:select>

But on forrest there are txt,ehtml,ihtml,sxw,cwiki extensions, not only xml .




Mime
View raw message