Implementation of infrastructure that will allow l10n team to set description for localization NBMs
1.1 --- a/build.xml Tue Aug 26 18:41:33 2008 +0200
1.2 +++ b/build.xml Wed Aug 27 18:49:39 2008 +0200
1.3 @@ -276,18 +276,58 @@
1.4 </echo>
1.5 </target>
1.6
1.7 + <target name="-prepare-localizing-bundles" if="one.kit.locale">
1.8 + <echo file="build/ml/nbms/classes/${code.name.base.slashes}/Bundle_${one.kit.locale}.properties">
1.9 +OpenIDE-Module-Name=NetBeans 6.1 ${one.kit.locale} localization plugin
1.10 +OpenIDE-Module-Display-Category=Localization
1.11 +OpenIDE-Module-Short-Description=NetBeans 6.1 ${one.kit.locale} localization plugin
1.12 +OpenIDE-Module-Long-Description=Delivers ${one.kit.locale} localization of whole NetBeans 6.1
1.13 +</echo>
1.14 + <!-- try to look for Bundle properties file provided by translation team -->
1.15 + <copy file="l10n_uc_kits/${code.name.base.slashes}/../${one.kit.locale}/Bundle.properties"
1.16 + tofile="build/ml/nbms/classes/${code.name.base.slashes}/Bundle_${one.kit.locale}.properties"
1.17 + overwrite="true"
1.18 + failonerror="false"/>
1.19 + <!-- enforce display category to be "Localization", the same for all umbrella kit NBMs -->
1.20 + <propertyfile file="build/ml/nbms/classes/${code.name.base.slashes}/Bundle_${one.kit.locale}.properties">
1.21 + <entry key="OpenIDE-Module-Display-Category" value="Localization"/>
1.22 + </propertyfile>
1.23 + </target>
1.24 +
1.25 <target name="-create-kit-ml-nbm-metadata" if="is.kit">
1.26 <echo file="build/ml/nbms/tmp/manifest.mf">OpenIDE-Module: ${code.name}
1.27 OpenIDE-Module-Localizing-Bundle: ${code.name.base.slashes}/Bundle.properties
1.28 OpenIDE-Module-Specification-Version: ${spec.version}
1.29 OpenIDE-Module-Module-Dependencies: ${kit.deps}
1.30 </echo>
1.31 + <!-- prepare localization jarfiles - it's just for localized info.xml files inf NBMs -->
1.32 +<!--
1.33 + <repeat target="-prepare-localizing-bundles" name="one.kit.locale" values="${locales}"/>
1.34 + <property name="locjar.locales" value="${locales}"/>
1.35 + <locjar jarfile="${cluster}/${module.jar}"
1.36 + basedir="build/ml/nbms/classes"
1.37 + compress="false"/>
1.38 + <delete>
1.39 + <fileset dir="build/ml/nbms/classes/${code.name.base.slashes}" includes="Bundle_*.properties"/>
1.40 + </delete>
1.41 +-->
1.42 +
1.43 + <!-- create default Bundle properties -->
1.44 <echo file="build/ml/nbms/classes/${code.name.base.slashes}/Bundle.properties">
1.45 OpenIDE-Module-Name=NetBeans 6.1 ${locales} localization kit
1.46 OpenIDE-Module-Display-Category=Localization
1.47 OpenIDE-Module-Short-Description=NetBeans 6.1 ${locales} localization kit
1.48 OpenIDE-Module-Long-Description=Delivers ${locales} localization of whole NetBeans 6.1
1.49 </echo>
1.50 + <!-- try to look for Bundle properties file provided by translation team -->
1.51 + <copy file="../translatedfiles/src/nbbuild/${code.name.base.slashes}/Bundle.properties"
1.52 + tofile="build/ml/nbms/classes/${code.name.base.slashes}/Bundle.properties"
1.53 + overwrite="true"
1.54 + failonerror="false"/>
1.55 + <!-- enforce display category to be "Localization", the same for all umbrella kit NBMs -->
1.56 + <propertyfile file="build/ml/nbms/classes/${code.name.base.slashes}/Bundle.properties">
1.57 + <entry key="OpenIDE-Module-Display-Category" value="Localization"/>
1.58 + </propertyfile>
1.59 </target>
1.60
1.61 <target name="-check-ml-nbm-props">
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/l10n_uc_kits/templateBundle.properties Wed Aug 27 18:49:39 2008 +0200
2.3 @@ -0,0 +1,42 @@
2.4 +# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
2.5 +#
2.6 +# Copyright 1997-2008 Sun Microsystems, Inc. All rights reserved.
2.7 +#
2.8 +# The contents of this file are subject to the terms of either the GNU
2.9 +# General Public License Version 2 only ("GPL") or the Common
2.10 +# Development and Distribution License("CDDL") (collectively, the
2.11 +# "License"). You may not use this file except in compliance with the
2.12 +# License. You can obtain a copy of the License at
2.13 +# http://www.netbeans.org/cddl-gplv2.html
2.14 +# or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
2.15 +# specific language governing permissions and limitations under the
2.16 +# License. When distributing the software, include this License Header
2.17 +# Notice in each file and include the License file at
2.18 +# nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
2.19 +# particular file as subject to the "Classpath" exception as provided
2.20 +# by Sun in the GPL Version 2 section of the License file that
2.21 +# accompanied this code. If applicable, add the following below the
2.22 +# License Header, with the fields enclosed by brackets [] replaced by
2.23 +# your own identifying information:
2.24 +# "Portions Copyrighted [year] [name of copyright owner]"
2.25 +#
2.26 +# Contributor(s):
2.27 +#
2.28 +# The Original Software is NetBeans. The Initial Developer of the Original
2.29 +# Software is Sun Microsystems, Inc. Portions Copyright 1997-2008 Sun
2.30 +# Microsystems, Inc. All Rights Reserved.
2.31 +#
2.32 +# If you wish your version of this file to be governed by only the CDDL
2.33 +# or only the GPL Version 2, indicate your decision by adding
2.34 +# "[Contributor] elects to include this software in this distribution
2.35 +# under the [CDDL or GPL Version 2] license." If you do not indicate a
2.36 +# single choice of license, a recipient has the option to distribute
2.37 +# your version of this file under either the CDDL, the GPL Version 2 or
2.38 +# to extend the choice of license to its licensees as provided above.
2.39 +# However, if you add GPL Version 2 code and therefore, elected the GPL
2.40 +# Version 2 license, then the option applies only if the new code is
2.41 +# made subject to such option by the copyright holder.
2.42 +
2.43 +OpenIDE-Module-Name=NetBeans 6.0.1 LANG localization plugin
2.44 +OpenIDE-Module-Short-Description=NetBeans 6.0.1 LANG localization plugin. Overall percentage of localization, all modules/clusters included: OVERALL%.
2.45 +OpenIDE-Module-Long-Description=Overall localization volume percentage (all modules/clusters included): OVERALL%. Detailled localization volume percentage: platform(PPLATFORM%), baseide(PBASEIDE%), javase(PJAVASE%), webjavaee(PWEBJAVAEE%), mobility(PMOBILITY%), ruby(PRUBY%), soa(PSOA%), uml(PUML%), cnd(PCND%).