Oscar Scholten pushed to branch master at cms-community / hippo-cms-translations


Commits:
abc87bfb by Oscar Scholten at 2016-05-30T17:24:27+02:00
CMS-10145 Setting up configuration to build Chinese localization packages

- - - - -
d0e1b8f2 by Oscar Scholten at 2016-06-06T11:23:25+02:00
CMS-10139 Merge master changes into feature/chinese-translation

- - - - -
3f1f4846 by Oscar Scholten at 2016-06-06T11:52:50+02:00
CMS-10139 Merge master changes into feature/chinese-translation

- - - - -
f8965f23 by Oscar Scholten at 2016-06-06T14:14:05+02:00
CMS-10139 Reintegrating feature/chinese-translation into master

- - - - -


2 changed files:

- + hippo-cms/resources/extensions/zh/hippoecm-extension.xml
- pom.xml


Changes:

=====================================
hippo-cms/resources/extensions/zh/hippoecm-extension.xml
=====================================
--- /dev/null
+++ b/hippo-cms/resources/extensions/zh/hippoecm-extension.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?><sv:node 
xmlns:sv="http://www.jcp.org/jcr/sv/1.0"; sv:name="hippo:initialize">
+  <sv:property sv:name="jcr:primaryType" sv:type="Name">
+    <sv:value>hippo:initializefolder</sv:value>
+  </sv:property>
+  <sv:node sv:name="hippo-cms-add-locale_zh">
+    <sv:property sv:name="jcr:primaryType" sv:type="Name">
+      <sv:value>hippo:initializeitem</sv:value>
+    </sv:property>
+    <sv:property sv:name="hippo:sequence" sv:type="Double">
+      <sv:value>1004</sv:value>
+    </sv:property>
+    <sv:property sv:name="hippo:contentroot" sv:type="String">
+      <sv:value>/hippo:configuration/hippo:frontend/settings/locales</sv:value>
+    </sv:property>
+    <sv:property sv:name="hippo:contentpropadd" sv:type="String">
+      <sv:value>zh</sv:value>
+    </sv:property>
+  </sv:node>
+</sv:node>
\ No newline at end of file


=====================================
pom.xml
=====================================
--- a/pom.xml
+++ b/pom.xml
@@ -16,7 +16,7 @@
   
   <properties>
     <hippo.l10n-tooling.version>1.0.0-SNAPSHOT</hippo.l10n-tooling.version>
-    <locales>fr,nl,de</locales>
+    <locales>fr,nl,de,zh</locales>
     <locale/>
     <format>Default</format>
     <full>false</full>
@@ -112,6 +112,18 @@
                 
<classesDirectory>${project.build.outputDirectory}/de</classesDirectory>
               </configuration>
             </execution>
+            <execution>
+              <!-- zh locale classifier build -->
+              <id>zh_jar</id>
+              <phase>package</phase>
+              <goals>
+                <goal>jar</goal>
+              </goals>
+              <configuration>
+                <classifier>zh</classifier>
+                
<classesDirectory>${project.build.outputDirectory}/zh</classesDirectory>
+              </configuration>
+            </execution>
           </executions>
         </plugin>
       </plugins>
@@ -162,6 +174,14 @@
           <include>**/de.json</include>
         </includes>
       </resource>
+      <resource>
+        <directory>resources</directory>
+        <targetPath>zh</targetPath>
+        <includes>
+          <include>**/*_zh.*</include>
+          <include>**/zh.json</include>
+        </includes>
+      </resource>
     </resources>
   </build>
   



View it on GitLab: 
https://code.onehippo.org/cms-community/hippo-cms-translations/compare/3e7f9e07f9c03d38e87faf585682a14790795926...f8965f235be548afe1ada3dbcfc377d6a12ece1e
_______________________________________________
Hippocms-svn mailing list
Hippocms-svn@lists.onehippo.org
https://lists.onehippo.org/mailman/listinfo/hippocms-svn

Reply via email to