Compare commits
6 Commits
foundryvtt
...
foundryvtt
Author | SHA1 | Date | |
---|---|---|---|
037ba87761 | |||
e2178329f7 | |||
83da960d30 | |||
4f22403c5f | |||
6e9df6e59a | |||
43d78c5c68 |
@ -289,6 +289,7 @@ Hooks.once('init', () => {
|
|||||||
console.log("No beast traits found here ...")
|
console.log("No beast traits found here ...")
|
||||||
return beast_traits
|
return beast_traits
|
||||||
}
|
}
|
||||||
|
//console.log("TRANS:", beast_traits)
|
||||||
for (let trait_en of beast_traits) {
|
for (let trait_en of beast_traits) {
|
||||||
let special = "";
|
let special = "";
|
||||||
let nbt = "";
|
let nbt = "";
|
||||||
@ -403,7 +404,7 @@ Hooks.once('init', () => {
|
|||||||
}
|
}
|
||||||
if (trait_fr.name && (trait_fr.name == "Sprinter" || trait_fr.name != name_en)) { // Talent translated!
|
if (trait_fr.name && (trait_fr.name == "Sprinter" || trait_fr.name != name_en)) { // Talent translated!
|
||||||
trait_en.name = trait_fr.name.trim() + special
|
trait_en.name = trait_fr.name.trim() + special
|
||||||
if (trait_fr.system) { // Why ???
|
if (trait_fr.system?.description?.value) { // Why ???
|
||||||
trait_en.system.description.value = trait_fr.system.description.value;
|
trait_en.system.description.value = trait_fr.system.description.value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -412,21 +413,23 @@ Hooks.once('init', () => {
|
|||||||
if (game.system.version.match("7.")) {
|
if (game.system.version.match("7.")) {
|
||||||
compendiumCareers = 'wfrp4e-core.items'
|
compendiumCareers = 'wfrp4e-core.items'
|
||||||
}
|
}
|
||||||
let career_fr = game.babele.translate(compendiumCareers, trait_en, true);
|
let career_fr = game.babele.translate(compendiumCareers, { name: name_en }, true);
|
||||||
career_fr.name = career_fr.name || trait_en.name
|
trait_en.name = career_fr.name || trait_en.name
|
||||||
//console.log(">>>>> Career ?", career_fr.name );
|
//console.log(">>>>> Career ?", career_fr.name );
|
||||||
trait_en.system = duplicate(career_fr.system);
|
if ( career_fr?.system) {
|
||||||
|
trait_en.system = duplicate(career_fr.system);
|
||||||
|
}
|
||||||
|
|
||||||
} else if (trait_en.type == "trapping" || trait_en.type == "weapon" || trait_en.type == "armour" || trait_en.type == "container" || trait_en.type == "money") {
|
} else if (trait_en.type == "trapping" || trait_en.type == "weapon" || trait_en.type == "armour" || trait_en.type == "container" || trait_en.type == "money") {
|
||||||
let compendiumTrappings = 'wfrp4e-core.trappings' // Per default
|
let compendiumTrappings = 'wfrp4e-core.trappings' // Per default
|
||||||
if (game.system.version.match("7.")) {
|
if (game.system.version.match("7.")) {
|
||||||
compendiumTrappings = 'wfrp4e-core.items'
|
compendiumTrappings = 'wfrp4e-core.items'
|
||||||
}
|
}
|
||||||
let trapping_fr = game.babele.translate(compendiumTrappings, trait_en, true);
|
let trapping_fr = game.babele.translate(compendiumTrappings, { name: name_en }, true);
|
||||||
//console.log(">>>>> Trapping ?", name_en, trapping_fr.name);
|
//console.log(">>>>> Trapping ?", name_en, trapping_fr.name);
|
||||||
trapping_fr.name = trapping_fr.name || trait_en.name
|
trait_en.name = trapping_fr.name || trait_en.name
|
||||||
if (trapping_fr.system) {
|
if (trapping_fr.system?.description?.value) {
|
||||||
trait_en.system.description = trapping_fr.system.description;
|
trait_en.system.description.value = trapping_fr.system.description.value
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
17
fr.json
17
fr.json
@ -1523,14 +1523,19 @@
|
|||||||
|
|
||||||
"Academics": "Lettrés",
|
"Academics": "Lettrés",
|
||||||
"Academic": "Lettré",
|
"Academic": "Lettré",
|
||||||
"Burgher": "Citadins",
|
"Burghers": "Citadins",
|
||||||
"Rogues": "Roublards",
|
"Burgher": "Citadin",
|
||||||
|
"Rogues": "Roublards",
|
||||||
|
"Rogue": "Roublard",
|
||||||
"Riverfolk": "Riverains",
|
"Riverfolk": "Riverains",
|
||||||
"Peasants": "Ruraux",
|
"Peasants": "Ruraux",
|
||||||
"Peasant": "Ruraux",
|
"Peasant": "Rural",
|
||||||
"Warrior": "Guerriers",
|
"Warriors": "Guerriers",
|
||||||
"Ranger": "Itinérants",
|
"Warrior": "Guerrier",
|
||||||
"Courtier": "Courtisans",
|
"Rangers": "Itinérants",
|
||||||
|
"Ranger": "Itinérant",
|
||||||
|
"Courtiers": "Courtisans",
|
||||||
|
"Courtier": "Courtisan",
|
||||||
|
|
||||||
"Calvalry": "Cavalerie",
|
"Calvalry": "Cavalerie",
|
||||||
"Flail": "Fléau",
|
"Flail": "Fléau",
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"url": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr",
|
"url": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr",
|
||||||
"version": "7.0.3",
|
"version": "7.0.6",
|
||||||
"esmodules": [
|
"esmodules": [
|
||||||
"babele-register.js",
|
"babele-register.js",
|
||||||
"addon-register.js",
|
"addon-register.js",
|
||||||
@ -127,7 +127,7 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"manifest": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/raw/v10/module.json",
|
"manifest": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/raw/v10/module.json",
|
||||||
"download": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/archive/foundryvtt-wh4-lang-fr-7.0.3.zip",
|
"download": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/archive/foundryvtt-wh4-lang-fr-7.0.6.zip",
|
||||||
"id": "wh4-fr-translation",
|
"id": "wh4-fr-translation",
|
||||||
"compatibility": {
|
"compatibility": {
|
||||||
"minimum": "10",
|
"minimum": "10",
|
||||||
|
@ -176,6 +176,12 @@ export class WH4FRPatchConfig {
|
|||||||
game.wfrp4e.config.species["welf"] = "Elfe Sylvain";
|
game.wfrp4e.config.species["welf"] = "Elfe Sylvain";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (game.wfrp4e.config.classTrappings) {
|
||||||
|
for(const c of Object.keys(game.wfrp4e.config.classTrappings)) {
|
||||||
|
game.wfrp4e.config.classTrappings[game.i18n.localize(c)] = game.wfrp4e.config.classTrappings[c];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.patch_species_skills();
|
this.patch_species_skills();
|
||||||
this.patch_species_talents();
|
this.patch_species_talents();
|
||||||
this.patch_subspecies();
|
this.patch_subspecies();
|
||||||
|
Reference in New Issue
Block a user