From d0a5566fc28e928f5ebaaa69dce39205f55849d7 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Sat, 6 Jun 2020 12:10:31 +0200 Subject: [PATCH] Fix auto-translation stuff --- babele-register.js | 4 +++- compendium/wfrp4e.careers.json | 2 +- module.json | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/babele-register.js b/babele-register.js index 52c82d0..d19dff7 100644 --- a/babele-register.js +++ b/babele-register.js @@ -429,7 +429,9 @@ Hooks.once('init', () => { //console.log(">>>>> Skill ?", name_en, special, trait_fr.name, trait_fr); if (trait_fr.translated) { trait_en.name = trait_fr.name + special; - trait_en.data.description.value = trait_fr.data.description.value; + if ( trait_fr.data. ) { + trait_en.data.description.value = trait_fr.data.description.value; + } } } else if ( trait_en.type == "prayer") { var trait_fr = fullprayers.translate( { name: name_en } ); diff --git a/compendium/wfrp4e.careers.json b/compendium/wfrp4e.careers.json index a82f8f2..37607d5 100644 --- a/compendium/wfrp4e.careers.json +++ b/compendium/wfrp4e.careers.json @@ -1224,7 +1224,7 @@ }, { "id": "Merchant", - "name": "Marchant", + "name": "Marchand", "description": "", "trappings": [ "Péniche fluviale ou 2 charriots", diff --git a/module.json b/module.json index 0a57b2e..1d64805 100644 --- a/module.json +++ b/module.json @@ -3,7 +3,7 @@ "name": "WH4-fr-translation", "title": "Traduction du module WH4 en Français.", "description": "La traduction du module WH4.", - "version": "0.81", + "version": "0.82", "minimumCoreVersion" : "0.6.0", "compatibleCoreVersion": "0.6.1", "author": "LeRatierBretonnien",