You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Joern Nettingsmeier <po...@uni-due.de> on 2006/08/22 18:42:57 UTC

Re: svn commit: r433675 - /lenya/trunk/src/webapp/lenya/i18n.xmap

andreas@apache.org wrote:
> Author: andreas
> Date: Tue Aug 22 08:40:09 2006
> New Revision: 433675
> 
> URL: http://svn.apache.org/viewvc?rev=433675&view=rev
> Log:
> Fixed fallback URLs for i18n
> 
> Modified:
>     lenya/trunk/src/webapp/lenya/i18n.xmap
> 
> Modified: lenya/trunk/src/webapp/lenya/i18n.xmap
> URL: http://svn.apache.org/viewvc/lenya/trunk/src/webapp/lenya/i18n.xmap?rev=433675&r1=433674&r2=433675&view=diff
> ==============================================================================
> --- lenya/trunk/src/webapp/lenya/i18n.xmap (original)
> +++ lenya/trunk/src/webapp/lenya/i18n.xmap Tue Aug 22 08:40:09 2006
> @@ -1,13 +1,13 @@
>  <?xml version="1.0" encoding="UTF-8"?>
>  <!--
>    Copyright 1999-2004 The Apache Software Foundation
> -
> +  
>    Licensed under the Apache License, Version 2.0 (the "License");
>    you may not use this file except in compliance with the License.
>    You may obtain a copy of the License at
> -
> -      http://www.apache.org/licenses/LICENSE-2.0
> -
> +  
> +  http://www.apache.org/licenses/LICENSE-2.0
> +  
>    Unless required by applicable law or agreed to in writing, software
>    distributed under the License is distributed on an "AS IS" BASIS,
>    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> @@ -24,16 +24,16 @@
>  -->
>  
>  <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
> -
> -  <map:pipelines>
>    
> +  <map:pipelines>
> +    
>      <map:pipeline type="noncaching">
>        <map:match pattern="i18n-catalogue/**">
>          <map:select type="resource-exists">
> -          <map:when test="fallback://resources/i18n/{1}">
> -            <map:generate type="serverpages" src="fallback://resources/i18n/catalogue.xsp">
> -              <map:parameter name="pub-catalogue-location" value="fallback://resources/i18n/"/>
> -        	  <map:parameter name="catalogue-file" value="{1}"/>
> +          <map:when test="fallback://lenya/resources/i18n/{1}">
> +            <map:generate type="serverpages" src="fallback://lenya/resources/i18n/catalogue.xsp">
> +              <map:parameter name="pub-catalogue-location" value="fallback://lenya/resources/i18n/"/>
> +              <map:parameter name="catalogue-file" value="{1}"/>

haven't checked yet, but iirc this breaks i18n transformation for the
lenya gui interface, because there is no directory "lenya" in the core.
(which i agree is not strictly logical given the way fallback is
supposed to work).
at least it used to work that way when i first submitted the patch 6
months ago... maybe it got changed sometime along the way.



-- 
"I don't need backups. I need restore!" - Trad.

--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: pol-admin@uni-due.de, Telefon: 0203/379-2736


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org