中文翻译文档: Difference between revisions

Jump to navigation Jump to search
Line 4: Line 4:


参考:duuge。com/archives/159.html<br>
参考:duuge。com/archives/159.html<br>
Dolibarr language files are already translated in several languages.
Dolibarr 语言文件已经被翻译成多国语言文件.
English is the default and always complete. Other languages depend on contributions. This tutorial can help you complete a translation for a language not yet available or somehow incorrect.
默认语言为 English 英语并且一直为完成状态。其他语言尚有待您的大力贡献。本教程可以指引您完成一个语种的翻译或者修正已翻译的语言错误以及未审阅的翻译。
Dolibarr can be translated by three different means:
Dolibarr 有以下三种不同的翻译方式方法:


# Manually using Transifex (Official and recommended method).
# 使用 Transifex 网站手工翻译大法 (官方推荐此法).
# Manually editing language files
# 手工编辑修改语言文件法
# Completely automatic: autotranslator
# 自动化翻译: 自动翻译法


== 通过Transifex专业翻译网站在线翻译 (recommended) ==
== 通过Transifex专业翻译网站在线翻译 (推荐) ==


Transifex is a web application that provides an online platform for translation projects. It includes teams and discussion tools, translation memory, glossary, proofreading and a lot of other features.
Transifex 是一个给翻译项目提供在线翻译平台的在线应用。该平台包括翻译团队和讨论工具,翻译记忆,术语表,校对等N多功能。
It is quite easy to use and all translations can be uploaded and downloaded through the web interface or using their TX client from a terminal.
此平台相当容用并且全部翻译人员能够从WEB网页或使用该平台专用的TX命令行客户端上传及下载翻译成果
Transifex is an open source project and the "community edition" can be freely downloaded and installed, but we will use the online hosted service.
Transifex 是一个开源项目并且其社区版本允许免费下载并安装使用,但我们Dolibarr官方使用的是transifex网站的在线服务。


===通过网页在线汉化 (for translators)===
===通过网页在线汉化 (翻译人员)===
If you want to help translating Dolibarr in your own language, check the project's page at https://www.transifex.com/dolibarr-association/dolibarr/
如果您想帮助Dolibarr翻译完善您的语言,请点击 https://www.transifex.com/dolibarr-association/dolibarr/


You can then register an account and request joining the project team for language(s) you're targeting. A manager will have to accept your request, so please be patient.
您事先需要注册一个账号并申请加入Dolibarr项目翻译团队中来。管理员会给你发封邮件告知你已经被管理团队加入翻译人员之中了。


Once accepted, you can start translating right away.
一旦您认可,您即可开始翻译啦。


For more informations, please check Transifex "Getting Started" introduction http://docs.transifex.com/introduction/translators/ and the web editor tutorial http://docs.transifex.com/tutorials/txeditor/
更多信息, 请翻阅 Transifex 官方的"Getting Started" 翻译向导介绍 http://docs.transifex.com/introduction/translators/ 以及编辑人员之旅 http://docs.transifex.com/tutorials/txeditor/


====注意 en_US====
====注意 en_US====
The web interface can not be used to translate the en_US language which is source.
web接口不可翻译en_US源语言因为这是默认语言不允许动呀。
Any change must be done in Dolibarr source code and submitted using a Pull Request on our GitHub repository.
任何变更一定会体现在Dolibarr源代码中的请放心我们会将您的提交pull到Dolibarr在github的源码库中的。


=== Using TX command line client (for Dolibarr [[:Category:Yoda]] team) ===
=== 使用 TX 官方客户端命令行工具 (这是给Dolibarr [[:Category:Yoda]] 团队看的你别看哟——其实我就看完了,嘿嘿嘿费玉清) ===
This describe how to use Transifex from command line. However, this is reserved to Dolibarr admin users to synchronize Transifex with Dolibarr main sources.
此处进行描述如何使用Transifex官方客户端命令行工具。然而,这里保留Dolibarr管理员们用于同步Dolibarr的Transifex主源码。


[http://docs.transifex.com/developer/client/ Official documentation]
[http://docs.transifex.com/developer/client/ Official documentation]
Line 39: Line 39:
首先当然是安装 TX 客户端程序软件了.
首先当然是安装 TX 客户端程序软件了.
基于 Debian/Ubuntu/Mint请使用以下安装命令进行安装:
基于 Debian/Ubuntu/Mint请使用以下安装命令进行安装:
当然首先要安装python-pip
<source lang="bash">
<source lang="bash">
apt-get install python-pip
apt-get install python-pip
</source>
然后再安装transifex-client
<source lang="bash">
pip install transifex-client
pip install transifex-client
</source>
</source>
byiz注:本人用上述方法安装失败,使用
byiz注:本人用上述方法安装失败,使用下面:
<source lang="bash">
<source lang="bash">
easy_install transifex-client
easy_install transifex-client
Line 49: Line 53:
easy_install transifex-client.安装成功,
easy_install transifex-client.安装成功,
然后对 TX 运行环境初始化. 即切换到dolibarr根目录下之后运行 '''tx init''' 命令.
然后对 TX 运行环境初始化. 即切换到dolibarr根目录下之后运行 '''tx init''' 命令.
必须要先tx init初始化才行哦,见duuge笔记记录全文这里不再累述。
<source lang="bash">
<source lang="bash">
cd git/dolibarr
cd git/dolibarr
tx init
tx init
</source>
</source>
Accept to overwrite config file. Keep default value for Transifex instance, then enter your Transifex login and password.
同意盖掉config配置文件。全部保持默认值即可。因为咱也不懂想改也不知道改哪里就保持默认了一路按回车吧。最后回车不下去了原来是需要输入transifex的账号和密码呢。


After this, a .transifexrc has been created into your HOME dir and a generic config file has been created as '''.tx/config''' in project's root.
做完上边动作,会在当前用户的HOME目录下生成隐藏文件 .transifexrc ,这是这条命令用root权限 '''.tx/config''' 生成的.
So your directory's contents will look like that:
目录类似如下这样子吧(我本人的不是,我是直接mkdir一个新目录dolibarr-tx目录用来专门放翻译语言避免搞混了源文呀):
<code><pre>
<code><pre>
.
.
64

edits

Navigation menu