From f52c533fde600dc019e7d678c899f1146209d8ab Mon Sep 17 00:00:00 2001 From: sladecraven Date: Thu, 10 Nov 2022 11:44:01 +0100 Subject: [PATCH] Fix bestiary import --- addon-register.js | 6 +++--- compendium/wfrp4e-core.bestiary.json | 1 + module.json | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/addon-register.js b/addon-register.js index 0ee1f24..bd84ecd 100644 --- a/addon-register.js +++ b/addon-register.js @@ -273,13 +273,13 @@ const __add_actors_translation = () => { if (lang == "fr") { let pack_array = []; for (let metadata of game.packs) { - if (!game.babele.isTranslated(metadata) && metadata.documentName === 'Actor') { - //console.log("PACK : ", metadata); + if (!game.babele.isTranslated(metadata) && metadata.collection != "wfrp4e-core.bestiary" && metadata.documentName === 'Actor') { + //console.log("REPLACE PACK : ", metadata); let translations = { "label": metadata.name, "mapping": { "name": "name", - "description": "system.biography.value", + "description": "system.details.biography.value", "items": { "path": "items", "converter": "bestiary_traits" diff --git a/compendium/wfrp4e-core.bestiary.json b/compendium/wfrp4e-core.bestiary.json index 3ca7a97..a8af01b 100644 --- a/compendium/wfrp4e-core.bestiary.json +++ b/compendium/wfrp4e-core.bestiary.json @@ -1,6 +1,7 @@ { "label": "Bestiaire", "mapping": { + "description": "system.details.biography.value", "items": { "path": "items", "converter": "bestiary_traits" diff --git a/module.json b/module.json index 46c78bf..e5ad90f 100644 --- a/module.json +++ b/module.json @@ -8,7 +8,7 @@ } ], "url": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr", - "version": "6.2.14", + "version": "6.2.15", "esmodules": [ "babele-register.js", "addon-register.js", @@ -136,11 +136,11 @@ } ], "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-6.2.14.zip", + "download": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/archive/foundryvtt-wh4-lang-fr-6.2.15.zip", "id": "wh4-fr-translation", "compatibility": { "minimum": "10", - "verified": "10.285", + "verified": "10", "maximum": "10" }, "relationships": {