83
edits
| Line 140: | Line 140: | ||
</pre></code> | </pre></code> | ||
Here is an explanation of the sections and options used in the config file: | Here is an explanation of the sections and options used in the config file: | ||
< | <nowiki>[main] section</nowiki> | ||
[main] section | |||
In this section we have project-wide options, such as the default transifex host for all projects. These can be overriden by each resource, in case it is needed. | In this section we have project-wide options, such as the default transifex host for all projects. These can be overriden by each resource, in case it is needed. | ||
[project_slug.resource_slug] | <nowiki>[project_slug.resource_slug]</nowiki> | ||
source_lang: this is the source language of the resource. | source_lang: this is the source language of the resource. | ||
source_file: this points to the source file directly. | source_file: this points to the source file directly. | ||
file_filter: here we hold the expression used to identify translation files under the specific project. [not mandatory] | file_filter: here we hold the expression used to identify translation files under the specific project. [not mandatory] | ||
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. | 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'' | ||
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. | 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'' | ||
So if you ever need to change the language of a file or correct the file path for a specific translation, you can edit this file directly. | So if you ever need to change the language of a file or correct the file path for a specific translation, you can edit this file directly. | ||
== Integrate its translation into Dolibarr == | == Integrate its translation into Dolibarr == | ||
edits