forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Upayavira ...@upaya.co.uk>
Subject Re: i18n suggestion
Date Tue, 16 Mar 2004 10:48:28 GMT
cheche@che-che.com wrote:

>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.
>
>  
>
Oh. Okay. (I still haven't actually downloaded Forrest - I remain an 
observer from the outside).

>>     <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 .
>  
>
Okay. So you're saying that the above method becomes too complex when 
you've got multiple formats (four tests per resouce, six source file 
types, gives 24 different <map:when> clauses, which certainly is clunky.)

Hmm. Let me mull....

Upayavira



Mime
View raw message