2 Star 3 Fork 0

apache-netbeans / netbeans-l10n

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
Apache-2.0

netbeans-l10n

要构建自己的本地化模块,请使用german模块作为模板。区域设置需要在netbeans-l10n-zip/src/下面可用。

构建自己的本地化模块的步骤:

  1. 拷贝local_de并粘贴为local_zh_CN
  2. 修改包locale_zh_CN/src/org/apache/netbeans/l10n/delocale_de/src/org/apache/netbeans/l10n/zh_CN
  3. 修改Bundle.properties文件中的OpenIDE-Module-Name属性为你所在区域的名称,如下
    OpenIDE-Module-Name=Simplified Chinese
  4. 修改manifest.mf文件中的OpenIDE-Module OpenIDE-Module-Localizing-Bundle
    Manifest-Version: 1.0
    AutoUpdate-Show-In-Client: true
    OpenIDE-Module: org.apache.netbeans.l10n.zh_CN
    OpenIDE-Module-Localizing-Bundle: org/apache/netbeans/l10n/zh_CN/Bundle.properties
    OpenIDE-Module-Specification-Version: 0.0.1
  5. 修改build.xml文件中<project>
    <project name="org.apache.netbeans.l10n.zh_CN" default="netbeans" basedir=".">
  6. 修改build.xml文件中<description>
    <description>Builds, tests, and runs the project org.apache.netbeans.l10n.zh_CN.</description>
  7. 修改build.xml文件中<property name="locale"
    <property name="locale" value="zh_CN" />
  8. 修改nbproject/build-impl.xml文件中<project>
     <project name="org.apache.netbeans.l10n.zh_CN-impl" basedir="..">
  9. 修改nbproject/project.xml文件中<code-name-base>
    <code-name-base>org.apache.netbeans.l10n.zh_CN</code-name-base>
  10. l10nantext右键菜单清理并构建

注意 在构建l10nantext之前需要先下载好 ant.jar ,使用netbeans打开工程时,会提示并要求指定 ant.jar 文件

  1. locale_zh_CN右键菜单清理并构建
  2. locale_zh_CN右键菜单创建NBM
  3. 此时完成构建所有步骤,文件生成所在位置locale_zh_CN/build/org-apache-netbeans-l10n-zh_CN.nbm大小约6.5M

注意 以上步骤需要在Netbeans IDE中完成,将生成的nbm文件在插件中安装并重启即可生效

<!--- 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. 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.

简介

暂无描述 展开 收起
Java 等 3 种语言
Apache-2.0
取消

发行版 (1)

全部

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/apache-netbeans/netbeans-l10n.git
git@gitee.com:apache-netbeans/netbeans-l10n.git
apache-netbeans
netbeans-l10n
netbeans-l10n
zh_CN

搜索帮助