This is an automated email from the ASF dual-hosted git repository.

jtulach pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans-l10n.git


The following commit(s) were added to refs/heads/master by this push:
     new 0783b6a  Added czech locale folder. Added detailed description of 
creating new locale project folder.
     new ece0023  Merge pull request #5 from hubeny/locale_cs
0783b6a is described below

commit 0783b6ac1b1af8789f829bfadbc630af671e17d9
Author: Jan Hubený <hub...@soma-eng.com>
AuthorDate: Thu Jun 17 16:05:20 2021 +0200

    Added czech locale folder.
    Added detailed description of creating new locale project folder.
---
 README.md                                          | 38 +++++++++++-
 locale_cs/build.xml                                | 71 ++++++++++++++++++++++
 locale_cs/manifest.mf                              |  6 ++
 locale_cs/nbproject/build-impl.xml                 | 58 ++++++++++++++++++
 locale_cs/nbproject/platform.properties            | 33 ++++++++++
 locale_cs/nbproject/project.properties             | 18 ++++++
 locale_cs/nbproject/project.xml                    | 32 ++++++++++
 .../org/apache/netbeans/l10n/cs/Bundle.properties  | 17 ++++++
 8 files changed, 272 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index b2af732..249dd256 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,41 @@
+<!---
+
+    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.
+
+-->
+
 # netbeans-l10n
 
-To build your own localization module, use the german module as template. Copy 
"local_de" and rename it (e. g. "locale_fr"). The locale needs to be available 
below netbeans-l10n-zip/src/. Then adapt `<property name="locale" value="de"/>` 
in build.xml.
+To build your own localization module, use the german module as template. The 
locale needs to be available below netbeans-l10n-zip/src/.
+## Steps to build your own localization module:
+* Copy "local_de" and rename it (e. g. "locale_fr").
+* Change the bundle dir in `src/org/apache/netbeans/l10n` from `de` to your 
locale (e. g. `fr`).
+* Change module name in  `src/org/apache/netbeans/l10n/Bundle.properties` to 
your locale (e. g. `French`).
+* In file `manifest.mf` change 
+       * line `OpenIDE-Module: org.apache.netbeans.l10n.de` to your locale (e. 
g. `org.apache.netbeans.l10n.fr`)
+       * line `OpenIDE-Module-Localizing-Bundle: 
org/apache/netbeans/l10n/de/Bundle.properties` to your locale 
(`org/apache/netbeans/l10n/fr/Bundle.properties`)
+* In file `build.xml` change 
+       * line `<project name="org.apache.netbeans.l10n.de" default="netbeans" 
basedir=".">` to your locale
+       * line `<description>Builds, tests, and runs the project 
org.apache.netbeans.l10n.de.</description>` to your locale
+       * line `<property name="locale" value="de"/>` to your locale
+* In file `nbproject/build-impl.xml`
+       * Adapt line `<project name="org.apache.netbeans.l10n.de-impl" 
basedir="..">`
+       * Adapt line 
`<code-name-base>org.apache.netbeans.l10n.de</code-name-base>`
+
 
 Build l10nantext before building the locale. 
diff --git a/locale_cs/build.xml b/locale_cs/build.xml
new file mode 100644
index 0000000..424e578
--- /dev/null
+++ b/locale_cs/build.xml
@@ -0,0 +1,71 @@
+<?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.
+
+-->
+<project name="org.apache.netbeans.l10n.cs" default="netbeans" basedir=".">
+    <description>Builds, tests, and runs the project 
org.apache.netbeans.l10n.cs.</description>
+    <import file="nbproject/build-impl.xml"/>
+    
+    <target name="build" 
depends="build-language-jars,projectized-common.build"/>
+    
+    <target name="build-language-jars">
+        <!--        <taskdef name="jhindexer"
+        classname="org.netbeans.nbbuild.JHIndexer"
+        classpath="${nbantext.jar}"/>
+<taskdef name="locjhindexer"
+        classname="org.netbeans.nbbuild.LocJHIndexer"
+        classpath="${nbantext.jar}"/>-->
+        <!--        <taskdef name="repeat"
+        classname="org.netbeans.nbbuild.Repeat"
+        classpath="${nbantext.jar}"/> -->
+
+        <!--<property name="locjhindexer.jhall" 
value="${main.dir}/${jh.jar}"/>-->
+        <!--<property name="locales" value="ja,zh_CN,pt_BR"/>-->
+        <property name="locale" value="cs"/>
+        <!--<property name="dist.dir" location="locsrc"/>-->
+        <property name="dist.dir" 
location="../netbeans-l10n-zip/src/${locale}"/>
+        <property name="nbms.dist.dir" location="nbms"/>
+        <property name="nbms.dir" location="../nbbuild/nbms"/>
+        <property name="keystore" location=""/>
+        <property name="storepass" value=""/>
+        <property name="nbm_alias" value="nb_ide"/>
+     
+        <taskdef name="package-build" classname="org.netbeans.l10n.Package">
+            <classpath>
+                <pathelement path="../l10nantext/dist/l10nantext.jar"/>
+                <!--<pathelement path="nbantext.jar"/>-->
+            </classpath>
+        </taskdef>
+        <package-build src="locsrc" locales="${locale}" 
dist="release/modules/locale" nbms="${nbms.dir}" nbmsDist="${nbms.dist.dir}" 
+                       keystore="${keystore}" storepass="${storepass}" 
alias="${nbm_alias}">
+            <classpath>
+                <pathelement location="nbantext.jar"/>
+                <fileset dir="${main.dir}">
+                    <include name="apisupport.harness/external/jsearch*.jar"/>
+                </fileset>
+                <fileset dir="${netbeans.dest.dir}">
+                    <include name="harness/jsearch*.jar"/>
+                </fileset>
+            </classpath>
+        </package-build>
+        <!--<repeat target="copy-docs-for-locale" name="one.locale" 
values="${locales}"/>-->
+    </target>
+    
+</project>
diff --git a/locale_cs/manifest.mf b/locale_cs/manifest.mf
new file mode 100644
index 0000000..73403fe
--- /dev/null
+++ b/locale_cs/manifest.mf
@@ -0,0 +1,6 @@
+Manifest-Version: 1.0
+AutoUpdate-Show-In-Client: true
+OpenIDE-Module: org.apache.netbeans.l10n.cs
+OpenIDE-Module-Localizing-Bundle: org/apache/netbeans/l10n/cs/Bundle.properties
+OpenIDE-Module-Specification-Version: 0.0.1
+
diff --git a/locale_cs/nbproject/build-impl.xml 
b/locale_cs/nbproject/build-impl.xml
new file mode 100644
index 0000000..a670192
--- /dev/null
+++ b/locale_cs/nbproject/build-impl.xml
@@ -0,0 +1,58 @@
+<?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.
+-->
+<!--
+*** GENERATED FROM project.xml - DO NOT EDIT  ***
+***         EDIT ../build.xml INSTEAD         ***
+-->
+<project name="org.apache.netbeans.l10n.cs-impl" basedir="..">
+    <fail message="Please build using Ant 1.7.1 or higher.">
+        <condition>
+            <not>
+                <antversion atleast="1.7.1"/>
+            </not>
+        </condition>
+    </fail>
+    <property file="nbproject/private/platform-private.properties"/>
+    <property file="nbproject/platform.properties"/>
+    <macrodef name="property" 
uri="http://www.netbeans.org/ns/nb-module-project/2";>
+        <attribute name="name"/>
+        <attribute name="value"/>
+        <sequential>
+            <property name="@{name}" value="${@{value}}"/>
+        </sequential>
+    </macrodef>
+    <macrodef name="evalprops" 
uri="http://www.netbeans.org/ns/nb-module-project/2";>
+        <attribute name="property"/>
+        <attribute name="value"/>
+        <sequential>
+            <property name="@{property}" value="@{value}"/>
+        </sequential>
+    </macrodef>
+    <property file="${user.properties.file}"/>
+    <nbmproject2:property name="harness.dir" 
value="nbplatform.${nbplatform.active}.harness.dir" 
xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
+    <nbmproject2:property name="nbplatform.active.dir" 
value="nbplatform.${nbplatform.active}.netbeans.dest.dir" 
xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
+    <nbmproject2:evalprops property="cluster.path.evaluated" 
value="${cluster.path}" 
xmlns:nbmproject2="http://www.netbeans.org/ns/nb-module-project/2"/>
+    <fail message="Path to 'platform' cluster missing in $${cluster.path} 
property or using corrupt Netbeans Platform (missing harness).">
+        <condition>
+            <not>
+                <contains string="${cluster.path.evaluated}" 
substring="platform"/>
+            </not>
+        </condition>
+    </fail>
+    <import file="${harness.dir}/build.xml"/>
+</project>
diff --git a/locale_cs/nbproject/platform.properties 
b/locale_cs/nbproject/platform.properties
new file mode 100644
index 0000000..f94a320
--- /dev/null
+++ b/locale_cs/nbproject/platform.properties
@@ -0,0 +1,33 @@
+# 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.
+cluster.path=\
+    ${nbplatform.active.dir}/groovy:\
+    ${nbplatform.active.dir}/ide:\
+    ${nbplatform.active.dir}/java:\
+    ${nbplatform.active.dir}/enterprise:\
+    ${nbplatform.active.dir}/websvccommon:\
+    ${nbplatform.active.dir}/javafx:\
+    ${nbplatform.active.dir}/profiler:\
+    ${nbplatform.active.dir}/nb:\
+    ${nbplatform.active.dir}/php:\
+    ${nbplatform.active.dir}/platform:\
+    ${nbplatform.active.dir}/harness:\
+    ${nbplatform.active.dir}/apisupport:\
+    ${nbplatform.active.dir}/webcommon:\
+    ${nbplatform.active.dir}/extide:\
+    ${nbplatform.active.dir}/ergonomics
+nbplatform.active=default
\ No newline at end of file
diff --git a/locale_cs/nbproject/project.properties 
b/locale_cs/nbproject/project.properties
new file mode 100644
index 0000000..4cdfb33
--- /dev/null
+++ b/locale_cs/nbproject/project.properties
@@ -0,0 +1,18 @@
+# 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.
+javac.source=1.8
+javac.compilerargs=-Xlint -Xlint:-serial
\ No newline at end of file
diff --git a/locale_cs/nbproject/project.xml b/locale_cs/nbproject/project.xml
new file mode 100644
index 0000000..d10ee4b
--- /dev/null
+++ b/locale_cs/nbproject/project.xml
@@ -0,0 +1,32 @@
+<?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.
+
+-->
+<project xmlns="http://www.netbeans.org/ns/project/1";>
+    <type>org.netbeans.modules.apisupport.project</type>
+    <configuration>
+        <data xmlns="http://www.netbeans.org/ns/nb-module-project/3";>
+            <code-name-base>org.apache.netbeans.l10n.cs</code-name-base>
+            <standalone/>
+            <module-dependencies/>
+            <public-packages/>
+        </data>
+    </configuration>
+</project>
diff --git a/locale_cs/src/org/apache/netbeans/l10n/cs/Bundle.properties 
b/locale_cs/src/org/apache/netbeans/l10n/cs/Bundle.properties
new file mode 100644
index 0000000..76fe8f8
--- /dev/null
+++ b/locale_cs/src/org/apache/netbeans/l10n/cs/Bundle.properties
@@ -0,0 +1,17 @@
+# 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.
+OpenIDE-Module-Name=Czech

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to