You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by ro...@apache.org on 2004/03/13 09:20:51 UTC
cvs commit: cocoon-lenya/src/webapp/lenya/resources/i18n catalogue.xsp
roku 2004/03/13 00:20:51
Added: src/webapp/lenya/resources/i18n catalogue.xsp
Log:
Merges pub local i18n catalogue with global i18n catalogue.
Revision Changes Path
1.1 cocoon-lenya/src/webapp/lenya/resources/i18n/catalogue.xsp
Index: catalogue.xsp
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
This xsp merges a pub local i18n catalogue file with the global catalog file.
If a pub local catalogue exists, it is inserted first in order to override global messages.
See the I18NTransformer for more details about catalog files and i18n messages.
$Id$
-->
<xsp:page
language="java"
xmlns:xsp="http://apache.org/xsp"
xmlns:xi="http://www.w3.org/2001/XInclude"
>
<xsp:structure>
<xsp:include>java.io.File</xsp:include>
</xsp:structure>
<catalogue>
<xsp:logic>
if(new File(parameters.getParameter("pub-catalogue-location", "null") + parameters.getParameter("catalogue-file", "null")).exists())
{
<xi:include >
<xsp:attribute name="href">../../pubs/default/lenya/resources/i18n/<xsp:expr>parameters.getParameter("catalogue-file", "null").substring(1)</xsp:expr>#xpointer(//message)</xsp:attribute>
</xi:include>
}
<xi:include >
<xsp:attribute name="href"><xsp:expr>parameters.getParameter("catalogue-file", "null").substring(1)</xsp:expr>#xpointer(//message)</xsp:attribute>
</xi:include>
</xsp:logic>
</catalogue>
</xsp:page>
---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org