forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From che...@apache.org
Subject cvs commit: xml-forrest/src/core/fresh-site/src/documentation/translations tabs.xml tabs_es.xml
Date Mon, 09 Feb 2004 13:33:28 GMT
cheche      2004/02/09 05:33:28

  Modified:    .        status.xml
               src/core/context sitemap.xmap
  Added:       src/core/context tabs.xmap
               src/core/fresh-site/src/documentation/translations tabs.xml
                        tabs_es.xml
  Log:
  I18N support for tabs
  
  Revision  Changes    Path
  1.285     +4 -1      xml-forrest/status.xml
  
  Index: status.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/status.xml,v
  retrieving revision 1.284
  retrieving revision 1.285
  diff -u -r1.284 -r1.285
  --- status.xml	9 Feb 2004 02:47:45 -0000	1.284
  +++ status.xml	9 Feb 2004 13:33:28 -0000	1.285
  @@ -29,6 +29,9 @@
   
     <changes>
       <release version="0.6-dev" date="unreleased">
  +      <action dev="jjp" type="update" context="core">
  +        Add i18n to tabs
  +      </action>
         <action dev="rdg" type="update" context="skins">
           Putting a jettyconf.xml file in your document directory will override
           the one supplied in the default Forrest context. Also no longer copies 
  
  
  
  1.12      +2 -7      xml-forrest/src/core/context/sitemap.xmap
  
  Index: sitemap.xmap
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/core/context/sitemap.xmap,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- sitemap.xmap	5 Feb 2004 14:24:12 -0000	1.11
  +++ sitemap.xmap	9 Feb 2004 13:33:28 -0000	1.12
  @@ -323,12 +323,7 @@
         </map:match>
   
         <map:match pattern="**tab-*.html">
  -        <map:generate src="{project:content.xdocs}tabs.xml" />
  -        <map:transform type="linkrewriter" src="cocoon:/{1}linkmap-{2}.html"/>
  -        <map:call resource="skinit">
  -          <map:parameter name="type" value="tab2menu"/>
  -          <map:parameter name="path" value="{1}{2}.html"/>
  -        </map:call>
  +        <map:mount uri-prefix="" src="tabs.xmap" check-reload="yes" />
         </map:match>
   
         <map:match pattern="**book-*.html">
  
  
  
  1.1                  xml-forrest/src/core/context/tabs.xmap
  
  Index: tabs.xmap
  ===================================================================
  <?xml version="1.0"?>
  <map:sitemap xmlns:map="http://apache.org/cocoon/sitemap/1.0">
    <map:components>
      <map:generators default="file"/>
      <map:serializers default="html"/>
      <map:matchers default="wildcard"/>
      <map:selectors default="browser">
        <map:selector logger="sitemap.selector.config" name="config" src="org.apache.cocoon.selection.SimpleSelector"
/>
      </map:selectors>
      <map:transformers default="xslt">
        <map:transformer name="i18n" src="org.apache.cocoon.transformation.I18nTransformer">
          <catalogues default="tabs">
            <catalogue id="tabs" name="tabs" location="{project:translations}"/>
          </catalogues>
          <!-- <untranslated-text>untranslated</untranslated-text-->
          <cache-at-startup>true</cache-at-startup>
        </map:transformer>
      </map:transformers>
      <map:actions>
        <map:action name="locale" src="org.apache.cocoon.acting.LocaleAction" />
      </map:actions>
    </map:components> 
  
    <map:resources>
      <map:resource name="skinit">
        <map:select type="exists">
          <map:when test="{project:skins-dir}{forrest:skin}/xslt/html/{type}.xsl">
            <map:transform src="{project:skins-dir}{forrest:skin}/xslt/html/{type}.xsl">
              <map:parameter name="notoc" value="{notoc}"/>
              <!-- For backwards-compat with 0.2 - 0.4 skins -->
              <map:parameter name="isfaq" value="{notoc}"/>
              <map:parameter name="nopdf" value="{nopdf}"/>
              <map:parameter name="path" value="{path}"/>
              <map:parameter name="config-file" value="{project:skinconf}"/>
            </map:transform>
          </map:when>
          <map:otherwise>
            <map:transform src="{forrest:home}context/skins/{forrest:skin}/xslt/html/{type}.xsl">
              <map:parameter name="notoc" value="{notoc}"/>
              <!-- For backwards-compat with 0.2 - 0.4 skins -->
              <map:parameter name="isfaq" value="{notoc}"/>
              <map:parameter name="nopdf" value="{nopdf}"/>
              <map:parameter name="path" value="{path}"/>
              <map:parameter name="config-file" value="{project:skinconf}"/>
            </map:transform>
          </map:otherwise>
        </map:select>
        <map:serialize/>
      </map:resource>
    </map:resources>
  
    <map:pipelines>
      <map:pipeline >
        <map:match pattern="**tab-*.html">
          <map:generate src="{project:content.xdocs}tabs.xml"/>
          <map:select type="config">
            <map:parameter name="value" value="{defaults:i18n}"/>
            <map:when test="true">
              <map:act type="locale">
                <map:transform src="{forrest:stylesheets}/i18n.xsl"/>
                <map:transform type="i18n">
                  <map:parameter name="locale" value="{lang}{country}{variant}"/>
                </map:transform>
              </map:act>
            </map:when>
          </map:select>
          <map:transform type="linkrewriter" src="cocoon:/{1}linkmap-{2}.html"/>
          <map:call resource="skinit">
            <map:parameter name="type" value="tab2menu"/>
            <map:parameter name="path" value="{1}{2}.html"/>
          </map:call>
        </map:match>      
      </map:pipeline>
    </map:pipelines>
  
  </map:sitemap>
  
  
  
  1.1                  xml-forrest/src/core/fresh-site/src/documentation/translations/tabs.xml
  
  Index: tabs.xml
  ===================================================================
  <?xml version="1.0"?>
  <catalogue xml:lang="en">
    <message key="Home">Home</message>
    <message key="Samples">Samples</message>
    <message key="Apache XML Projects">Apache XML Projects</message>
  </catalogue>
  
  
  
  1.1                  xml-forrest/src/core/fresh-site/src/documentation/translations/tabs_es.xml
  
  Index: tabs_es.xml
  ===================================================================
  <?xml version="1.0"?>
  <catalogue xml:lang="es">
    <message key="Home">Inicio</message>
    <message key="Samples">Ejemplos</message>
    <message key="Apache XML Projects">Projectos XML Apache</message>
  </catalogue>
  
  
  

Mime
View raw message