From ffd187a8324887466d48d820f2516f86456f9f09 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Fri, 4 Sep 2020 08:53:00 +0200 Subject: [PATCH] Update traduction --- addon-register.js | 6 +++++- babele-register.js | 3 ++- fr.json | 2 +- wkspace.code-workspace | 11 +++++++++++ 4 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 wkspace.code-workspace diff --git a/addon-register.js b/addon-register.js index 2495601..f43ce58 100644 --- a/addon-register.js +++ b/addon-register.js @@ -1,6 +1,7 @@ import WFRP4E from "/systems/wfrp4e/modules/system/config-wfrp4e.js" import WFRP_Tables from "/systems/wfrp4e/modules/system/tables-wfrp4e.js"; + /************************************************************************************/ const _patch_eis = () => { if ( WFRP4E && WFRP4E.symptoms && WFRP4E.symptoms["delirium"] == undefined ) { @@ -29,6 +30,7 @@ const _patch_eis = () => { } } + /************************************************************************************/ const _fix_post_module_loading = () => { @@ -406,7 +408,9 @@ Hooks.on("chatMessage", (html, content, msg) => { /************************************************************************************/ /* Additionnal hooks ready */ Hooks.once('ready', () => { - + + _patch_initiative(); + if (game.user.isGM) ChatMessage.create( { title: "Patch en progression", content: "Les modules WFRP4E sont en cours de patch pour traduction... Merci d'attendre le message de fin (dans environ 20 secondes)", whisper: ChatMessage.getWhisperRecipients("GM") } ); diff --git a/babele-register.js b/babele-register.js index bb2d527..36fb021 100644 --- a/babele-register.js +++ b/babele-register.js @@ -156,6 +156,7 @@ class ActorWfrp4e_fr extends ActorSheetWfrp4e { } } + /************************************************************************************/ var compmod = "wfrp4e"; @@ -166,7 +167,7 @@ Hooks.once('init', () => { //CONFIG.Actor.entityClass = ActorWfrp4e_fr; //Actors.unregisterSheet("core", ActorSheetWfrp4eCharacter); Actors.registerSheet("wfrp4e", ActorWfrp4e_fr, { types: ["character"], makeDefault: true }); - + // Check various settings in the installation game.modules.forEach((module, name) => { if ( name == "wfrp4e-content" && module.active) { diff --git a/fr.json b/fr.json index df4b995..6324acd 100644 --- a/fr.json +++ b/fr.json @@ -1124,7 +1124,7 @@ "Home": "Revenir à la maison", "TRAVEL.TravelMessageBase": "De {from} à {to} : ", - "TRAVEL.TravelMessageRoad": "
Route : {road_distance} km
  En diligence : {road_days} jours, dangerosité {road_danger_string}
  A cheval : {road_horse_days} jours, dangerosité {road_danger_string}
  A pieds : {road_feet_days} jours, dangerosité {road_danger_feet_string}", + "TRAVEL.TravelMessageRoad": "
Route : {road_distance} km
  En diligence : {road_days} jours, dangerosité {road_danger_string}
  A cheval (lent) : {road_horse_heavy_days} jours, dangerosité {road_danger_string}
  A cheval (rapide) : {road_horse_fast_days} jours, dangerosité {road_danger_string}
  A pieds : {road_feet_days} jours, dangerosité {road_danger_feet_string}", "TRAVEL.TravelMessageRiver": "
Rivière : {river_distance} km
  En bateau : {river_days} jours, dangerosité {river_danger_string}", "TRAVEL.TravelMessageSea": "
Mer : {sea_distance} km
  En bateau : {sea_days} jours, dangerosité {sea_danger_string}", "TRAVEL.TownPrompt": "Sélectionnez une ville de destination", diff --git a/wkspace.code-workspace b/wkspace.code-workspace new file mode 100644 index 0000000..9bfaaa1 --- /dev/null +++ b/wkspace.code-workspace @@ -0,0 +1,11 @@ +{ + "folders": [ + { + "path": "../WFRP-4th-Edition-FoundryVTT_2_SLADECRAVEN" + }, + { + "path": "." + } + ], + "settings": {} +} \ No newline at end of file