|
|
| Line 85: |
Line 85: |
| </pre></code> | | </pre></code> |
|
| |
|
| The current config file can be downloaded from https://github.com/Dolibarr/dolibarr/tree/develop/.tx , put it into .tx directory, overwriting the one created by '''tx init'''
| | 当然这个 config 配置文件可从 https://github.com/Dolibarr/dolibarr/tree/develop/.tx 下载得到的啦别担心, 下载回来并放到 .tx 目录中去, 盖掉因为使用命令 '''tx init''' 而生成的那个配置文件哦。 |
|
| |
|
| This project configuration file is used to store the project’s details and the file-to-resource mappings.
| | 此项目配置文件用于说明项目的详情和文件与源码的映射对应。 |
|
| |
|
| That is a sample of what the config file contains:
| | 下边有一个简洁的 config 配置文件所包含有哪些元素不包生仔哦: |
|
| |
|
| <source lang="ini"> | | <source lang="ini"> |
| Line 463: |
Line 463: |
| </source> | | </source> |
|
| |
|
| Here is an explanation of the sections and options used in the config file:
| | 这里有专门解释config配置文件的章节哦: |
|
| |
|
| <nowiki>[main] section</nowiki> | | <nowiki>[main] section</nowiki> |
|
| |
|
| In this section we have project-wide options, such as the default transifex host for all projects. These can be overridden by each resource, in case it is needed.
| | 本章节中我们有项目范围的选项,默认transifex为全部的项目的服务器。你也可以自建服务器然后需要修改这里相对应的选项。、 |
|
| |
|
| <nowiki>[dolibarr.resource]</nowiki> | | <nowiki>[dolibarr.resource]</nowiki> |
|
| |
|
| source_lang: this is the source language of the resource.<br/> | | source_lang: 这是资源的源语言.<br/> |
| source_file: this points to the source file directly.<br/> | | source_file: 这直接指向源文件.<br/> |
| file_filter: here we hold the expression used to identify translation files under the specific project. ''not mandatory''<br/> | | file_filter: 在这里,我们保持用于识别特定项目下的翻译文件的表达式。 ''not mandatory''<br/> |
| trans.<lang>: this is used for translation files that don’t follow a common naming schema and the file expression cannot be used to track them. ''not mandatory''<br/> | | trans.<lang>: 这是用于翻译的文件,不遵循一个共同的命名模式和文件的表达不能被用来跟踪他们。 ''not mandatory''<br/> |
| host: in case the project doesn’t use the default Transifex server as specified in the [main] section, it can override it using this option. ''not mandatory''<br/> | | host: 万一项目不使用默认的Transifex服务器那么就在 [main] 这里标记设定, it can override it using this option. ''not mandatory''<br/> |
|
| |
|
| ====TX 使用方法简要说明==== | | ====TX 使用方法简要说明==== |