You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by "Hartwig, Thomas" <t....@crapoud.com> on 2004/06/21 19:36:43 UTC
language prompt
Hello Lenya workers
If Lenya can not found the language version the user has configured in
its browser setting, Lenya prompts with a screen "Document not available
for this language" and offers the available languages. Can I turn off
this prompting and redirect to the first/default language?
How can this and other pages modified if I like?
Thomas
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: language prompt
Posted by Christian Egli <ch...@wyona.net>.
"Hartwig, Thomas" <t....@crapoud.com> writes:
> If Lenya can not found the language version the user has configured in
> its browser setting, Lenya prompts with a screen "Document not
> available for this language" and offers the available languages. Can I
> turn off this prompting and redirect to the first/default language?
> How can this and other pages modified if I like?
Look at the matcher <map:match pattern="**.html"> in
publication-sitemap.xmap. The action language-exists diverts the
control flow to a generator, transformer below (see also the comment
about "There is no version of the requested document-id for the
requested language").
Basically you are free to put in there whatever you like, e.g. a
redirect to some other page.
--
Christian Egli christian.egli@wyona.net +41 1 272 9161
Wyona AG, Hardstrasse 219, CH-8005 Zurich
Open Source CMS http://www.wyona.org http://www.wyona.com
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org
Re: language prompt
Posted by "Hartwig, Thomas" <t....@crapoud.com>.
Following the thoughts about i18n at
http://wiki.cocoondev.org/Wiki.jsp?page=LenyaI18N
I will hard code my language links in future time to prevent the question.
Thomas
Hartwig, Thomas wrote:
> Hello Lenya workers
>
> If Lenya can not found the language version the user has configured in
> its browser setting, Lenya prompts with a screen "Document not available
> for this language" and offers the available languages. Can I turn off
> this prompting and redirect to the first/default language?
> How can this and other pages modified if I like?
>
> Thomas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-user-help@cocoon.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-user-help@cocoon.apache.org