You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Marco Friedrich <ma...@menta.de> on 2004/06/04 13:35:29 UTC
localisation; language check
hello users!
i have an question on localisation and the sitmap.
i use coplets for localisation in different directorys.
coplets/de/home/hello.xml
coplets/en/home/hello.xml
here is an summary from my sitemap.xmap
<map:match pattern="*/**">
<map:act type="locale">
<map:mount check-reload="yes" src="{lang}/{1}/" uri-prefix="{1}"/>
</map:act>
</map:match>
the user see only the coplets in his language.
now my problem. how can i check if the directory coplets/<lang>/... exists? ive not i woult try an default coplets/en/.. directory.
is there any soulution for this problem?
kind regards,
marco friedrich
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: localisation; language check (solved)
Posted by Marco Friedrich <ma...@menta.de>.
thank you for this hint Joerg,
this solves the problem!
<map:match pattern="*/**">
<map:act type="locale">
<map:select type="resource-exists">
<map:when test="./{lang}/sitemap.xmap">
<map:mount check-reload="yes" src="{lang}/{1}/"
uri-prefix="{1}"/>
</map:when>
<map:otherwise>
<map:mount check-reload="yes" src="en/{1}/"
uri-prefix="{1}"/>
</map:otherwise>
</map:select>
</map:act>
</map:match>
kind regards,
marco friedrich
Joerg Heinicke wrote:
> On 04.06.2004 13:35, Marco Friedrich wrote:
>
>> hello users!
>>
>> i have an question on localisation and the sitmap.
>>
>> i use coplets for localisation in different directorys.
>>
>> coplets/de/home/hello.xml
>> coplets/en/home/hello.xml
>>
>> here is an summary from my sitemap.xmap
>>
>> <map:match pattern="*/**">
>> <map:act type="locale">
>> <map:mount check-reload="yes" src="{lang}/{1}/"
>> uri-prefix="{1}"/>
>> </map:act>
>> </map:match>
>>
>> the user see only the coplets in his language.
>>
>> now my problem. how can i check if the directory coplets/<lang>/...
>> exists? ive not i woult try an default coplets/en/.. directory.
>>
>> is there any soulution for this problem?
>
>
> ResourceExistsAction or ResourceExistsSelector.
>
> Joerg
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: localisation; language check
Posted by Joerg Heinicke <jo...@gmx.de>.
On 04.06.2004 13:35, Marco Friedrich wrote:
> hello users!
>
> i have an question on localisation and the sitmap.
>
> i use coplets for localisation in different directorys.
>
> coplets/de/home/hello.xml
> coplets/en/home/hello.xml
>
> here is an summary from my sitemap.xmap
>
> <map:match pattern="*/**">
> <map:act type="locale">
> <map:mount check-reload="yes" src="{lang}/{1}/" uri-prefix="{1}"/>
> </map:act>
> </map:match>
>
> the user see only the coplets in his language.
>
> now my problem. how can i check if the directory coplets/<lang>/...
> exists? ive not i woult try an default coplets/en/.. directory.
>
> is there any soulution for this problem?
ResourceExistsAction or ResourceExistsSelector.
Joerg
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org