You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2006/11/09 23:47:05 UTC

svn commit: r473119 - in /lenya/trunk/src/modules: editors/resources/i18n/ export/config/cocoon-xconf/ export/resources/ export/resources/i18n/ export/usecases/

Author: andreas
Date: Thu Nov  9 14:47:04 2006
New Revision: 473119

URL: http://svn.apache.org/viewvc?view=rev&rev=473119
Log:
Adding importExampleContent usecase

Added:
    lenya/trunk/src/modules/export/config/cocoon-xconf/usecase-importExampleContent.xconf
    lenya/trunk/src/modules/export/resources/
    lenya/trunk/src/modules/export/resources/i18n/
    lenya/trunk/src/modules/export/resources/i18n/cmsui.xml
    lenya/trunk/src/modules/export/resources/i18n/cmsui_de.xml
    lenya/trunk/src/modules/export/usecases/importExampleContent.jx
Modified:
    lenya/trunk/src/modules/editors/resources/i18n/cmsui_de.xml

Modified: lenya/trunk/src/modules/editors/resources/i18n/cmsui_de.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/editors/resources/i18n/cmsui_de.xml?view=diff&rev=473119&r1=473118&r2=473119
==============================================================================
--- lenya/trunk/src/modules/editors/resources/i18n/cmsui_de.xml (original)
+++ lenya/trunk/src/modules/editors/resources/i18n/cmsui_de.xml Thu Nov  9 14:47:04 2006
@@ -17,7 +17,7 @@
 
 <!-- $Id: cmsui.xml 447395 2006-09-18 13:01:33Z andreas $ -->
 
-<catalogue xml:lang="en" xmlns:xhtml="http://www.w3.org/1999/xhtml">
+<catalogue xml:lang="de" xmlns:xhtml="http://www.w3.org/1999/xhtml">
   
   <message key="Reformat">Formatieren</message>
 

Added: lenya/trunk/src/modules/export/config/cocoon-xconf/usecase-importExampleContent.xconf
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/export/config/cocoon-xconf/usecase-importExampleContent.xconf?view=auto&rev=473119
==============================================================================
--- lenya/trunk/src/modules/export/config/cocoon-xconf/usecase-importExampleContent.xconf (added)
+++ lenya/trunk/src/modules/export/config/cocoon-xconf/usecase-importExampleContent.xconf Thu Nov  9 14:47:04 2006
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2005 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
+
+  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.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- $Id: usecases-workflow-deactivate.xconf 348547 2005-11-23 20:13:01Z chestnut $ -->
+<!--
+    This file defines the publication specific use-cases
+-->
+
+  <xconf xpath="/cocoon/usecases" unless="/cocoon/usecases/component-instance[@name = 'export.importExampleContent']">
+    <component-instance name="export.importExampleContent" logger="lenya.export"
+      class="org.apache.lenya.cms.export.Import">
+      <view template="modules/export/usecases/importExampleContent.jx" menu="false"/>
+    </component-instance>
+  </xconf>

Added: lenya/trunk/src/modules/export/resources/i18n/cmsui.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/export/resources/i18n/cmsui.xml?view=auto&rev=473119
==============================================================================
--- lenya/trunk/src/modules/export/resources/i18n/cmsui.xml (added)
+++ lenya/trunk/src/modules/export/resources/i18n/cmsui.xml Thu Nov  9 14:47:04 2006
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 1999-2005 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
+
+  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.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- $Id: cmsui.xml 447395 2006-09-18 13:01:33Z andreas $ -->
+
+<catalogue xml:lang="en" xmlns:xhtml="http://www.w3.org/1999/xhtml">
+  
+  <message key="getting-started">Getting Started</message>
+  <message key="thanks">Thank you for considering Apache Lenya!</message>
+  <message key="import-example-content">Import example pages</message>
+  <message key="create-own-page">Start with own page</message>
+  <message key="may-take-a-while">This may take a couple of seconds.</message>
+  
+</catalogue>

Added: lenya/trunk/src/modules/export/resources/i18n/cmsui_de.xml
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/export/resources/i18n/cmsui_de.xml?view=auto&rev=473119
==============================================================================
--- lenya/trunk/src/modules/export/resources/i18n/cmsui_de.xml (added)
+++ lenya/trunk/src/modules/export/resources/i18n/cmsui_de.xml Thu Nov  9 14:47:04 2006
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Copyright 1999-2005 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
+
+  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.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<!-- $Id: cmsui.xml 447395 2006-09-18 13:01:33Z andreas $ -->
+
+<catalogue xml:lang="de" xmlns:xhtml="http://www.w3.org/1999/xhtml">
+  
+  <message key="getting-started">Erste Schritte</message>
+  <message key="thanks">Vielen Dank, dass Sie sich Apache Lenya näher anschauen!</message>
+  <message key="import-example-content">Beispiel-Inhalt importieren</message>
+  <message key="create-own-page">Eigene Seite anlegen</message>
+  <message key="may-take-a-while">Dies kann einige Sekunden dauern.</message>
+  
+</catalogue>

Added: lenya/trunk/src/modules/export/usecases/importExampleContent.jx
URL: http://svn.apache.org/viewvc/lenya/trunk/src/modules/export/usecases/importExampleContent.jx?view=auto&rev=473119
==============================================================================
--- lenya/trunk/src/modules/export/usecases/importExampleContent.jx (added)
+++ lenya/trunk/src/modules/export/usecases/importExampleContent.jx Thu Nov  9 14:47:04 2006
@@ -0,0 +1,62 @@
+<?xml version="1.0"?>
+<!--
+  Copyright 1999-2005 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
+  
+  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.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<!-- $Id: forms.jx 416646 2006-06-23 09:02:03Z andreas $ -->
+<page:page
+  xmlns:jx="http://apache.org/cocoon/templates/jx/1.0"
+  xmlns:page="http://apache.org/cocoon/lenya/cms-page/1.0"
+  xmlns="http://www.w3.org/1999/xhtml"
+  xmlns:i18n="http://apache.org/cocoon/i18n/2.1"
+  xmlns:ci="http://apache.org/cocoon/include/1.0"
+  >
+  
+  <page:title><i18n:text>getting-started</i18n:text></page:title>
+  <page:body>
+    
+    <jx:import uri="fallback://lenya/usecases/templates/messages.jx"/>
+    
+    <jx:choose>
+      <jx:when test="${! usecase.hasErrors()}">
+        <p><i18n:text>thanks</i18n:text></p>
+        <form method="post">
+          <p>
+            <input type="hidden" name="lenya.continuation" value="${continuation.id}"/>
+            <input type="hidden" name="lenya.usecase" value="${usecase.getName()}"/>
+            <input type="submit" name="submit" value="import-example-content" i18n:attr="value"/>
+            <i18n:text>may-take-a-while</i18n:text>
+          </p>
+        </form>
+        <form method="get">
+          <p>
+            <input type="hidden" name="lenya.usecase" value="sitemanagement.create"/>
+            <input type="hidden" name="path" value="/index"/>
+            <input type="submit" name="submit" value="create-own-page" i18n:attr="value"/>
+          </p>
+        </form>
+      </jx:when>
+      <jx:otherwise>
+        <p>
+          <form method="post">
+            <input type="hidden" name="lenya.continuation" value="${continuation.id}"/>
+            <input type="hidden" name="lenya.usecase" value="${usecase.getName()}"/>
+            <input type="submit" value="Cancel" i18n:attr="value"/>
+          </form>
+        </p>
+      </jx:otherwise>
+    </jx:choose>
+    
+  </page:body>
+</page:page>
\ No newline at end of file



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