本地化openbravo
Ob源代码提供中文的本地化文件,虽然目前还不完善,但大体都已经翻译。同时ob也提供工具来导入语言
在dos下转到E:\project\openbravo目录
E:\project\openbravo\localization\translations下的zh_CN就是中文语言包
· 查看openbravo.properties 中的attach.path=E:/openbravo/attachment。在这个目录下新建目录lang,然后拷贝E:\project\openbravo\localization\translations下的zh_CN目录到 lang下面。
· 登录ob系统
· 点击左上角小人形的图标
http://www.javaeye.com/images/magplus.gif), pointer;" alt="" />
设置role为 System Administrator
· 点击 General Setup > language
http://www.javaeye.com/images/magplus.gif), pointer;" alt="" />
点击图标
来显示所有语言的列表
http://www.javaeye.com/images/magplus.gif), pointer;" alt="" />
双击zh_CN行
http://www.javaeye.com/images/magplus.gif), pointer;" alt="" />
选中 System Language 但不要选中 Base Language
然后点击 Save图标 
http://www.javaeye.com/images/magplus.gif), pointer;" alt="" />
然后点击 Verify Language
http://www.javaeye.com/images/magplus.gif), pointer;" alt="" />
点击OK
http://www.javaeye.com/images/magplus.gif), pointer;" alt="" />
会显示 Created=22716 表示22716个词条创建了,这个时候的还是英文的,但你可以在以_trl结尾的表中发现有ad_language=zh_CN的记录。
· 导入语言包
点击 General Setup > Import/Export Translations
http://www.javaeye.com/images/magplus.gif), pointer;" alt="" />
Language里选择Chinese(china)
然后点击Import,会花费几分钟,后显示导入完成
http://www.javaeye.com/images/magplus.gif), pointer;" alt="" />
停止tomcat,重新执行ant task eclipse.compile.complete
执行后,选择项目openbravo,clean该项目,重新编译,然后启动tomcat,这个过程可能需要一些时间。
· 登录ob系统,然后点击左上角小人形的图标,
http://www.javaeye.com/images/magplus.gif), pointer;" alt="" />
设置Language为chinese(china)
你在页面上就可以看到中文了
http://www.javaeye.com/images/magplus.gif), pointer;" alt="" />
但目前还不够完善。也已经翻译了基本差不多了。
运行installbuilder-enterprise-5.2.0-windows-installer.exe。
一步步安装就可以了。
下载setup脚本。
在dos下转到E:\project\openbravo目录
installer目录下会有两个目录 installer,和 setup。 Setup下面就是setup相关的东西。
运行bitrock
点击打开
选择 installer/setup下面的setup-properties.xml,点击open
点击build
注意这行Installer placed at D:/Program Files/BitRock InstallBuilder Enterprise 5.2.0/output/setup-properties-windows. 这个就是build出来的exe文件位置。将它拷贝到E:\project\openbravo\AppsOpenbravo\config目录下,就可以运行。
评论
现在的https://dev.openbravo.com/
现在的https://dev.openbravo.com/svn/openbravo/localization 没有包含翻译包啊。
发表新评论