Mezryss / FVTT-Genesys

Foundry VTT: Unoffocial implementation of the Genesys RPG
MIT License
26 stars 9 forks source link

I find why the translation didn't make for the standard distribution : foundryvtt error. Just for information #128

Closed ZolOnTheNet closed 7 months ago

ZolOnTheNet commented 7 months ago

I find where the error come from ! in the game the variable in french language : game.i18n.translations.Genesys.Characteristics Object { Brawn: "Brawn", Agility: "Agility", Intellect: "Intellect", Cunning: "Cunning", Willpower: "Willpower", Presence: "Presence" } ​Agility: "Agility" ​Brawn: "Brawn" ​Cunning: "Cunning" ​Intellect: "Intellect" ​Presence: "Presence" ​Willpower: "Willpower" ​: Object { … }

and if you see the order of load of lang JSON : Foundry VTT | Loaded localization file systems/genesys/lang/fr.json foundry.js:7533:15 Foundry VTT | Loaded localization file modules/fr-core/fr.json foundry.js:7533:15 Foundry VTT | Loaded localization file systems/genesys/lang/en.json foundry.js:7533:15 Foundry VTT | Loaded localization file lang/en.json foundry.js:7533:15

Something go wrong and crash the game.i18n.translations.Genesys.Characteristics (and some other, Tabs it's ok but, SkillCategory ) if I modify the variable into Brawn to Vigueur, I have the good result... Strange no ? I try to find why the program crush this particular object. I hope I was correct explain...

ZolOnTheNet commented 7 months ago

To help french, pour aider les français qui souhaiterai changer les bonnes valeurs de traduction vous pouvez faire une marcro "Script" avec le code ci dessous : game.i18n.translations.Genesys.Characteristics.Brawn = "Vigueur" game.i18n.translations.Genesys.Characteristics.Agility = "Agilité" game.i18n.translations.Genesys.Characteristics.Intellect = "Intelligence" game.i18n.translations.Genesys.Characteristics.Cunning = "Ruse" game.i18n.translations.Genesys.Characteristics.Willpower = "Volonté" game.i18n.translations.Genesys.Characteristics.Presence = "Présence"

Assembling-Kings commented 7 months ago

I can't reproduce this problem. Here's a test world on FVTT v11. image image

ZolOnTheNet commented 7 months ago

Thank for you answer. I have the v.11 build 325. And you answer give me a indice and, i find the reason : it's a module ! I have desatived all module and I have the good translation. Thank again for you job and for the answer...

I have made a HUD Module, and I have a make a error : it's now correcting and recieves my Apologize

Assembling-Kings commented 7 months ago

Good thing it was a simple fix. 😄