-
Notifications
You must be signed in to change notification settings - Fork 12
/
config_example.xml
88 lines (66 loc) · 3.49 KB
/
config_example.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?xml version="1.0" encoding="UTF-8"?>
<config>
<!-- Server setup
-->
<server-mode>development</server-mode>
<server-host>localhost</server-host>
<server-port>8000</server-port>
<authentication>development</authentication>
<!-- Project data
-->
<stable-languages>stable_languages</stable-languages> <!-- Language meta-data of stable languages -->
<unstable-languages/> <!-- Language meta-data of unstable languages (lacking sufficient translators) -->
<project-root>root_dir</project-root>
<project-cache>1</project-cache>
<project-types>game-script newgrf</project-types>
<storage-format>one-file</storage-format> <!-- Standard storage format. -->
<!-- <storage-format>split-languages</storage-format> -->
<data-format>xml</data-format>
<!-- <data-format>json</data-format> --> <!-- Json format does not implement text-sharing in the file -->
<language-file-size>100000</language-file-size> <!-- about 100K -->
<num-backup-files>5</num-backup-files>
<max-num-changes>5</max-num-changes>
<min-num-changes>2</min-num-changes> <!-- 1 last uploaded string, and 1 translation. -->
<change-stable-age>600</change-stable-age> <!-- 10 minutes -->
<redmine>
<!-- Data base interfacing
-->
<db-type>postgress</db-type> <!-- Type of data base. Tested 'postgress', but 'mysql' and 'sqlite3' probably work too. -->
<db-schema></db-schema> <!-- Postgress may need a schema search path. -->
<db-name>redmine_default</db-name> <!-- Name of the data base. -->
<db-user>db-user</db-user> <!-- DB user to authenticate and query roles of users -->
<db-password> <!-- SET A PASSWORD HERE. --> </db-password> <!-- DB password to authenticate and query roles of users -->
<db-host>localhost</db-host> <!-- Hostname of the machine running the data base. -->
<db-port> <!-- SET A PORT NUMBER HERE. --> </db-port> <!-- Port number to access the data base at the host. -->
<!-- Role setup
-->
<owner-role>manager</owner-role>
<!-- Redmine role name for translator of the 'en_GB' language. -->
<translator-role language="en_GB">translator_en_GB</translator-role>
<!-- Roles not mentioned here are assumed not to exist.
- What that means for page access depends on the Eints page access configuration.
-->
</redmine>
<ldap>
<!-- Ldap interfacing
-->
<host>ldaps://localhost</host> <!-- Protocol, hostname and port for Ldap connection: scheme://hostname:hostport -->
<basedn-users>ou=People,dc=example,dc=net</basedn-users> <!-- Base DN for users: cn=Username,ou=People,dc=example,dc=net -->
<basedn-groups>ou=Groups,dc=example,dc=net</basedn-groups> <!-- Base DN for groups: cn=Groupname,ou=Groups,dc=example,dc=net -->
<!-- Group setup
-->
<owner-group>Translator-Admin</owner-group>
<!-- posixGroup CN for translator of the 'de_DE' language. -->
<translator-group language="de_DE">Translator-German</translator-group>
<!-- Roles not mentioned here are assumed not to exist.
- What that means for page access depends on the Eints page access configuration.
-->
</ldap>
<github>
<!-- Github interfacing -->
<organization>OpenTTD</organization> <!-- Organisation with translator teams -->
<org-api-token>secret github access token</org-api-token> <!-- API token with scope read:org for the organisation -->
<oauth2-client-id>client id of oauth2 app</oauth2-client-id> <!-- redirect URL is https://translator.openttd.org/oauth2 -->
<oauth2-client-secret>client secret of oauth2 app</oauth2-client-secret>
</github>
</config>