-
Notifications
You must be signed in to change notification settings - Fork 0
/
toolkit13-de.js
159 lines (143 loc) · 4.38 KB
/
toolkit13-de.js
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
import ModConfig from './src/config.js';
import * as Util from './src/util.js';
const module_id = 'toolkit13-de';
const module_lang = 'de';
Hooks.once('ready', () => {
// Create settings
ModConfig.forEach((cfg) => {
// Skip settings not applicable for this system version
if ('onlyUntilSystemVersionIncluding' in cfg &&
isNewerVersion(game.system.data.version,
cfg.onlyUntilSystemVersionIncluding)) {
return;
} else {
game.settings.register(module_id, cfg.name, cfg.data);
}
});
if (game.i18n.lang !== 'de' || !CONFIG.ARCHMAGE) {
return;
}
Util.setAllIfExist(CONFIG.ARCHMAGE.powerSources, {
'class': 'Klasse',
'race': 'Volk',
'item': 'Gegenstand',
'other': 'Andere'
});
Util.setAllIfExist(CONFIG.ARCHMAGE.powerTypes, {
'power': 'Kraft',
'feature': 'Merkmal',
'talent': 'Talent',
'flexible': 'Flexibler Angriff',
'spell': 'Zauber',
'other': 'Andere'
});
Util.setAllIfExist(CONFIG.ARCHMAGE.powerUsages, {
'at-will': 'Beliebig',
'once-per-battle': 'Pro Kampf',
'recharge': 'Aufladen',
'daily': 'Pro Volle Erholung',
'other': 'Andere'
});
Util.setAllIfExist(CONFIG.ARCHMAGE.equipUsages, {
'daily': 'Pro Volle Erholung',
'recharge': 'Aufladen',
'once-per-battle': 'Pro Kampf',
'other': 'Andere'
});
Util.setAllIfExist(CONFIG.ARCHMAGE.actionTypes, {
'standard': 'Standard',
'move': 'Bewegung',
'quick': 'Schnell',
'free': 'Frei',
'interrupt': 'Unterbrechung'
});
Util.setAllIfExist(CONFIG.ARCHMAGE.actionTypesShort, {
'standard': 'AKT',
'move': 'BEW',
'quick': 'SCH',
'free': 'FREI',
'interrupt': 'UNT'
});
Util.setAllIfExist(CONFIG.ARCHMAGE.creatureTypes, {
'aberration': 'Aberration',
'beast': 'Bestie',
'celestial': 'Himmelswesen',
'construct': 'Konstrukt',
'demon': 'Dämon',
'devil': 'Teufel',
'dragon': 'Drache',
'elemental': 'Elementar',
'fey': 'Fee',
'giant': 'Riese',
'humanoid': 'Humanoider',
'monstrosity': 'Monstrosität',
'ooze': 'Schleim',
'plant': 'Pflanze',
'spirit': 'Geist',
'undead': 'Untoter'
});
Util.setAllIfExist(CONFIG.ARCHMAGE.creatureSizes, {
'normal': 'Normal',
'large': 'Groß',
'huge': 'Riesig',
'double': 'Doppelt stark',
'triple': 'Dreifach stark',
'weakling': 'Schwächling',
'elite': 'Elite'
});
Util.setAllIfExist(CONFIG.ARCHMAGE.creatureRoles, {
'archer': 'Schütze',
'blocker': 'Verteidiger',
'caster': 'Zauberer',
'leader': 'Anführer',
'mook': 'Scherge',
'spoiler': 'Störer',
'troop': 'Fußvolk',
'wrecker': 'Zerstörer'
});
Util.setAllIfExist(CONFIG.ARCHMAGE.raceList, {
'darkelf': "Dunkelelf",
'dragonspawn': "Drachenbrut",
'dragonic': "Dragonier",
'dwarf': "Zwerg",
'dwarfforged': "Zwergenkonstrukt",
'forgeborn': "Kind der Esse",
'gnome': "Gnom",
'halfelf': "Halbelf",
'halforc': "Halbork",
'halfling': "Halbling",
'highelf': "Hochelf",
'holyone': "Gesegneter",
'aasimar': "Aasimar",
'human': "Mensch",
'tiefling': "Tiefling",
'demontouched': "Dämonenbrut",
'woodelf': "Waldelf"
});
Util.setAllIfExist(CONFIG.ARCHMAGE.classList, {
'barbarian': 'Barbar',
'bard': 'Barde',
'cleric': 'Kleriker',
'fighter': 'Kämpfer',
'paladin': 'Paladin',
'ranger': 'Waldläufer',
'rogue': 'Dieb',
'sorcerer': 'Zauberer',
'wizard': 'Magier',
'chaosmage': 'Chaosmagier',
'commander': 'Kommandant',
'druid': 'Druide',
'monk': 'Mönch',
'necromancer': 'Nekromant',
'occultist': 'Okkultist'
});
// Register Babele compendium translations if module is present
if (typeof Babele !== 'undefined' &&
game.settings.get(module_id, 'enableCompendiumTranslation')) {
Babele.get().register({
module: module_id,
lang: module_lang,
dir: 'compendium'
});
}
});