svn commit: r600647 - in /ofbiz/trunk/framework/example: config/ widget/example/

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r600647 - in /ofbiz/trunk/framework/example: config/ widget/example/

adrianc
Author: adrianc
Date: Mon Dec  3 11:48:39 2007
New Revision: 600647

URL: http://svn.apache.org/viewvc?rev=600647&view=rev
Log:
Updated Example component to new XML properties files. Two languages are still in need of conversion.

Added:
    ofbiz/trunk/framework/example/config/ExampleEntityLabels.xml
    ofbiz/trunk/framework/example/config/ExampleXmlUiLabels.xml
Removed:
    ofbiz/trunk/framework/example/config/ExampleEntityLabels.properties
    ofbiz/trunk/framework/example/config/ExampleEntityLabels_it.properties
    ofbiz/trunk/framework/example/config/ExampleUiLabels.properties
    ofbiz/trunk/framework/example/config/ExampleUiLabels_it.properties
    ofbiz/trunk/framework/example/config/ExampleUiLabels_ro.properties
Modified:
    ofbiz/trunk/framework/example/widget/example/CommonScreens.xml

Added: ofbiz/trunk/framework/example/config/ExampleEntityLabels.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/config/ExampleEntityLabels.xml?rev=600647&view=auto
==============================================================================
--- ofbiz/trunk/framework/example/config/ExampleEntityLabels.xml (added)
+++ ofbiz/trunk/framework/example/config/ExampleEntityLabels.xml Mon Dec  3 11:48:39 2007
@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you 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.
+-->
+<resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+    <!-- Example entity labels -->
+    <property key="ExampleType.description.REAL_WORLD">
+        <value xml:lang="en">Real World</value>
+        <value xml:lang="it">Mondo Reale</value>
+    </property>
+    <property key="ExampleType.description.MADE_UP">
+        <value xml:lang="en">Made Up</value>
+        <value xml:lang="it">Composto</value>
+    </property>
+    <property key="ExampleType.description.CONTRIVED">
+        <value xml:lang="en">Contrived</value>
+        <value xml:lang="it">Contrived</value>
+    </property>
+    <property key="ExampleType.description.INSPIRED">
+        <value xml:lang="en">Inspired</value>
+        <value xml:lang="it">Inspirato</value>
+    </property>
+    <property key="ExampleFeatureApplType.description.REQUIRED">
+        <value xml:lang="en">Required</value>
+        <value xml:lang="it">Richiesto</value>
+    </property>
+    <property key="ExampleFeatureApplType.description.DESIRED">
+        <value xml:lang="en">Desired</value>
+        <value xml:lang="it">Desiderato</value>
+    </property>
+    <property key="ExampleFeatureApplType.description.NOT_ALLOWED">
+        <value xml:lang="en">Not Allowed</value>
+        <value xml:lang="it">Non Permesso</value>
+    </property>
+</resource>

Added: ofbiz/trunk/framework/example/config/ExampleXmlUiLabels.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/config/ExampleXmlUiLabels.xml?rev=600647&view=auto
==============================================================================
--- ofbiz/trunk/framework/example/config/ExampleXmlUiLabels.xml (added)
+++ ofbiz/trunk/framework/example/config/ExampleXmlUiLabels.xml Mon Dec  3 11:48:39 2007
@@ -0,0 +1,221 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you 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.
+-->
+<resource xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+    <!-- Example component properties -->
+    <property key="ExampleApplication">
+        <value xml:lang="en">Example Application</value>
+        <value xml:lang="it">Applicazione Esempi</value>
+        <value xml:lang="ro">Aplicatie Exemple</value>
+    </property>
+    <property key="ExampleCompanyName">
+        <value xml:lang="en">OFBiz: Example</value>
+        <value xml:lang="it">OFBiz: Esempi</value>
+        <value xml:lang="ro">OFBiz: Exemple</value>
+    </property>
+    <property key="ExampleCompanySubtitle">
+        <value xml:lang="en">Part of the Open For Business Family of Open Source Software</value>
+        <value xml:lang="it">Part of the Open For Business Family of Open Source Software</value>
+        <value xml:lang="ro">Part of the Open For Business Family of Open Source Software</value>
+    </property>
+    <property key="ExampleExampleId">
+        <value xml:lang="en">Example ID</value>
+        <value xml:lang="it">Codice Esempio</value>
+        <value xml:lang="ro">Cod Exemplu</value>
+    </property>
+    <property key="ExampleExample">
+        <value xml:lang="en">Example</value>
+        <value xml:lang="it">Esempio</value>
+        <value xml:lang="ro">Exemplu</value>
+    </property>
+    <property key="ExampleExamples">
+        <value xml:lang="en">Examples</value>
+        <value xml:lang="it">Esempi</value>
+        <value xml:lang="ro">Exemple</value>
+    </property>
+    <property key="ExampleFeature">
+        <value xml:lang="en">Feature</value>
+        <value xml:lang="it">Caratteristica</value>
+        <value xml:lang="ro">Caracteristica</value>
+    </property>
+    <property key="ExampleFeatures">
+        <value xml:lang="en">Features</value>
+        <value xml:lang="it">Caratteristiche</value>
+        <value xml:lang="ro">Caracteristici</value>
+    </property>
+    <property key="ExampleFeatureSource">
+        <value xml:lang="en">Feature Source</value>
+        <value xml:lang="it">Caratteristica Origine</value>
+        <value xml:lang="ro">Origine Caracteristici </value>
+    </property>
+    <property key="ExampleExampleFeature">
+        <value xml:lang="en">Example Feature</value>
+        <value xml:lang="it">Caratteristica Esempio</value>
+        <value xml:lang="ro">Caracteristica Exemplu</value>
+    </property>
+    <property key="ExampleExampleFeatureId">
+        <value xml:lang="en">Example Feature ID</value>
+        <value xml:lang="it">Codice Caratteristica Esempio</value>
+        <value xml:lang="ro">Cod Caracteristica Exemplu </value>
+    </property>
+    <property key="ExampleExplicitOption">
+        <value xml:lang="en">Explicit Option</value>
+        <value xml:lang="it">Opzione Esplicita</value>
+        <value xml:lang="ro">Explicit Option</value>
+    </property>
+    <property key="ExampleFormWidgetExamples">
+        <value xml:lang="en">Form Widget Examples</value>
+        <value xml:lang="it">Form Widget Examples</value>
+        <value xml:lang="ro">Form Widget Examples</value>
+    </property>
+    <property key="ExampleMainPage">
+        <value xml:lang="en">Example Main Page</value>
+        <value xml:lang="it">Pagina Principale Esempi</value>
+        <value xml:lang="ro">Example Main Page</value>
+    </property>
+    <property key="ExampleMessage">
+        <value xml:lang="en">For something interesting make sure you are logged in, try username:admin, password:ofbiz.</value>
+        <value xml:lang="it">Per qualsiasi interesse devi essere sicuro di essere entrato, provare nome utente:admin, password:ofbiz.</value>
+        <value xml:lang="ro">Pentru a fi sigur ca te-ai logat, incearca username:admin, password:ofbiz.</value>
+    </property>
+    <property key="ExampleNewExample">
+        <value xml:lang="en">New Example</value>
+        <value xml:lang="it">Nuovo Esempio</value>
+        <value xml:lang="ro">Nou Exemplu</value>
+    </property>
+    <property key="ExampleNewExampleFeature">
+        <value xml:lang="en">New Example Feature</value>
+        <value xml:lang="it">Nuova Caratteristica Esempio</value>
+        <value xml:lang="ro">Noua Caracteristica Exemplu</value>
+    </property>
+    <property key="ExampleOriginalExample">
+        <value xml:lang="en">Original Example</value>
+        <value xml:lang="it">Original Example</value>
+        <value xml:lang="ro">Original Example</value>
+    </property>
+    <property key="ExampleErrorNoExampleStatusValidChange">
+        <value xml:lang="en">Error: status change from [${lookedUpValue.statusId}] to [${parameters.statusId}] is not allowed.</value>
+        <value xml:lang="it">Errore: stato cambiato da [${lookedUpValue.statusId}] a [${parameters.statusId}] non &#232; permesso</value>
+        <value xml:lang="ro">Eroare: stato schimbat de la [${lookedUpValue.statusId}] la [${parameters.statusId}] nu este permis</value>
+    </property>
+    <property key="ExamplePermissionError">
+        <value xml:lang="en">Security Error: to run ${resourceDescription} you must have the EXAMPLE_${mainAction} or EXAMPLE_ADMIN permission</value>
+        <value xml:lang="it">Errore Sicurezza: per eseguire ${resourceDescription} tu devi avere il permesso EXAMPLE${mainAction} o EXAMPLE_ADMIN</value>
+        <value xml:lang="ro">Eroare Siguranta: pentru executare ${resourceDescription} trebuie sa ai permisul EXAMPLE${mainAction} sau EXAMPLE_ADMIN</value>
+    </property>
+    <property key="ExampleViewPermissionError">
+        <value xml:lang="en">You do not have permission to view this page. ("EXAMPLE_VIEW" or "EXAMPLE_ADMIN" needed)</value>
+        <value xml:lang="it">Tu non sei autorizzare a vedere questa pagina. (Permesso "EXAMPLE_VIEW" o "EXAMPLE_ADMIN" necessario)</value>
+        <value xml:lang="ro">Nu esti autorizat sa vezi aceasta pagina. (Este necesar Permisul "EXAMPLE_VIEW" sau "EXAMPLE_ADMIN")</value>
+    </property>
+    <property key="ExampleWelcome">
+        <value xml:lang="en">Welcome to the Example application!</value>
+        <value xml:lang="it">Benvenuto nell'Applicazione Esempi!</value>
+        <value xml:lang="ro">Bine ai venit in Aplicatia Exemple!</value>
+    </property>
+
+    <!-- Page Titles -->
+    <property key="PageTitleFindExample">
+        <value xml:lang="en">Find Example</value>
+        <value xml:lang="it">Ricerca Esempio</value>
+        <value xml:lang="ro">Cauta Exemplu</value>
+    </property>
+    <property key="PageTitleFormWidgetExamples">
+        <value xml:lang="en">Form Widget Examples</value>
+        <value xml:lang="it">Form Widget Examples</value>
+        <value xml:lang="ro">Form Widget Examples</value>
+    </property>
+    <property key="PageTitleEditExample">
+        <value xml:lang="en">Edit Example</value>
+        <value xml:lang="it">Aggiorna Esempio</value>
+        <value xml:lang="ro">Actualizeaza Exemplu</value>
+    </property>
+    <property key="PageTitleEditExampleItems">
+        <value xml:lang="en">Edit Example Items</value>
+        <value xml:lang="it">Aggiorna Righe Esempio</value>
+        <value xml:lang="ro">Actualizeaza Linii Exemplu</value>
+    </property>
+    <property key="PageTitleEditExampleFeatureAppls">
+        <value xml:lang="en">Edit Example Features</value>
+        <value xml:lang="it">Aggiorna Caratteristiche Esempio</value>
+        <value xml:lang="ro">Actualizeaza Carateristici Exemplu</value>
+    </property>
+    <property key="PageTitleFindExampleFeature">
+        <value xml:lang="en">Find Example Feature</value>
+        <value xml:lang="it">Ricerca Caratteristica Esempio</value>
+        <value xml:lang="ro">Cauta Caracteristica Exemplu</value>
+    </property>
+    <property key="PageTitleEditExampleFeature">
+        <value xml:lang="en">Edit Example Feature</value>
+        <value xml:lang="it">Aggiorna Caratteristica Esempio</value>
+        <value xml:lang="ro">Actualizeaza Caracteristica Exemplu</value>
+    </property>
+    <property key="PageTitleEditExampleFeatureExampleAppls">
+        <value xml:lang="en">Edit Example Feature Examples</value>
+        <value xml:lang="it">Aggiorna Esempio Caratteristica Esempi</value>
+        <value xml:lang="ro">Actualizeaza Exemplu Caratteristica Exemple</value>
+    </property>
+    <property key="PageTitleLookupExampleFeature">
+        <value xml:lang="en">Lookup Example Feature</value>
+        <value xml:lang="it">Ricerca Caratteristica Esempio</value>
+        <value xml:lang="ro">Cauta Caracteristica Exemplu</value>
+    </property>
+
+    <!-- Form Field Labels -->
+    <property key="FormFieldTitle_amount">
+        <value xml:lang="en">Amount</value>
+        <value xml:lang="it">Importo</value>
+        <value xml:lang="ro">Import</value>
+    </property>
+    <property key="FormFieldTitle_exampleName">
+        <value xml:lang="en">Example Name</value>
+        <value xml:lang="it">Nome Esempio</value>
+        <value xml:lang="ro">Nume Exemplu</value>
+    </property>
+    <property key="FormFieldTitle_longDescription">
+        <value xml:lang="en">Long Description</value>
+        <value xml:lang="it">Descrizione Lunga</value>
+        <value xml:lang="ro">Descriere Lunga</value>
+    </property>
+    <property key="FormFieldTitle_comments">
+        <value xml:lang="en">Comments</value>
+        <value xml:lang="it">Commenti</value>
+        <value xml:lang="ro">Comentarii</value>
+    </property>
+    <property key="FormFieldTitle_exampleSize">
+        <value xml:lang="en">Example Size</value>
+        <value xml:lang="it">Esempio Taglia</value>
+        <value xml:lang="ro">Marime-size Exemplu</value>
+    </property>
+    <property key="FormFieldTitle_exampleDate">
+        <value xml:lang="en">Example Date</value>
+        <value xml:lang="it">Esempio Data</value>
+        <value xml:lang="ro">Data Exemplu</value>
+    </property>
+    <property key="FormFieldTitle_anotherDate">
+        <value xml:lang="en">Another Date</value>
+        <value xml:lang="it">Altra Data</value>
+        <value xml:lang="ro">Another Date</value>
+    </property>  
+    <property key="FormFieldTitle_anotherText">
+        <value xml:lang="en">Another Text</value>
+        <value xml:lang="it">Altro Testo</value>
+        <value xml:lang="ro">Another Text</value>
+    </property>
+</resource>

Modified: ofbiz/trunk/framework/example/widget/example/CommonScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/example/widget/example/CommonScreens.xml?rev=600647&r1=600646&r2=600647&view=diff
==============================================================================
--- ofbiz/trunk/framework/example/widget/example/CommonScreens.xml (original)
+++ ofbiz/trunk/framework/example/widget/example/CommonScreens.xml Mon Dec  3 11:48:39 2007
@@ -23,8 +23,9 @@
     <screen name="main-decorator">
         <section>
             <actions>
-                <!-- base/top/specific map first, then more common map added for shared labels -->
-                <property-map resource="ExampleUiLabels" map-name="uiLabelMap" global="true"/>
+                <!-- base/top/specific map first, then more common map added for shared labels -->
+                <!-- XML Properties - the preferred properties file format -->
+                <property-map resource="component://example/config/ExampleXmlUiLabels.xml" map-name="uiLabelMap" global="true"/>
                 <property-map resource="CommonUiLabels" map-name="uiLabelMap" global="true"/>
 
                 <set field="layoutSettings.companyName" from-field="uiLabelMap.ExampleCompanyName" global="true"/>