随笔 - 6  文章 - 129  trackbacks - 0
<2024年4月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

常用链接

留言簿(14)

随笔档案(6)

文章分类(467)

文章档案(423)

相册

收藏夹(18)

JAVA

搜索

  •  

积分与排名

  • 积分 - 815412
  • 排名 - 49

最新评论

阅读排行榜

评论排行榜

参照:http://wiki.openbravo.com/wiki/Localization_Process/zh_cn

注册翻译模块

When you register the module, fill in the fields as follows:

  • Module Type列表,选Module.
  • Name字段,输入Java package name of the translation, using the correct naming convention.
  • Complete the Description and Help fields, using the language that you are translating into.
  • Select the Is translation module option.
  • Clear the Has reference data, Translation required and Has chart of accounts options.
  • Select the In development option. Remember that you cannot work on a module unless the In development option is selected.
  • From the Module language menu, select the translation language. For example if you are translating into Czech, select Czech from the list.
  • On the Dependencies tab, specify the module you are translating as the dependent module. For example if you are translating the Core module, select Core as the dependent module.

When you click Register Module you will be asked to supply your username and password for the Openbravo Forge

导出数据库

When you have registered the module, the next stage is to export the database to create the necessary module folders.

  1. 执行下列命令:
    ant export.database
    Exporting the database creates a new subfolder within the Modules folder. The new folder has the same name as the java package of the translation module, for example modules/org.openbravo.translation.es_ES.
  2. Within the Modules folder, manually create a subfolder called referencedata. You must use this exact name, note that it is all lower case and has no spaces.
  3. Within the referencedata folder, create another subfolder called translation.
  4. Within the 'translation folder create another folder for the translation, using the xx_YY language / country code naming convention. For example en_US for US English.
  5. Place the translated .xml files within the folder for its respective language.

翻译.xml文件

You can now translate the .xml files using your preferred editor. When you have finished translating, copy them into the translation subfolder you have already created.

把模块打包成.obx文件

To package the module, 执行下列命令 ant package.module -Dmodule=modulename, where modulename is the Java package name of the module.





posted on 2011-02-20 14:19 Ke 阅读(466) 评论(0)  编辑  收藏 所属分类: Openbravo

只有注册用户登录后才能发表评论。


网站导航: