Fix talent Sprinter

This commit is contained in:
sladecraven 2022-02-01 22:41:49 +01:00
parent 004c463c4e
commit d16d5ef76e
3 changed files with 8 additions and 4 deletions

View File

@ -320,11 +320,11 @@ Hooks.once('init', () => {
special = " (" + game.i18n.localize( res[2].trim() ) + ")"; // And the special keyword
}
var trait_fr = game.babele.translate( compmod+'.talents', { name: name_en }, true );
//console.log(">>>>> Talent ?", name_en, special, trait_fr.name);
if ( trait_fr.name == name_en) { // If no translation, test ugtalents
//console.log(">>>>> Talent ?", trait_fr, name_en, special, trait_fr.name);
if ( trait_fr.name != "Sprinter" && trait_fr.name == name_en) { // If no translation, test ugtalents
trait_fr = game.babele.translate( 'wfrp4e-unofficial-grimoire.ug-careerstalentstraits', { name: name_en }, true );
}
if ( trait_fr.name != name_en) { // Talent translated!
if ( trait_fr.name == "Sprinter" || trait_fr.name != name_en) { // Talent translated!
trait_en.name = trait_fr.name.trim() + special;
if ( trait_fr.data ) { // Why ???
trait_en.data.description.value = trait_fr.data.description.value;

View File

@ -579,6 +579,10 @@
"XP":"XP",
"comma separated":"éparé par des virgules",
"TABLE.Column":"Colonne de la Table",
"TABLE.Key":"Clé de la Table",
"UPDATER.OverwriteTables":"Re-écrire les tables",
"APPLYREQUESTGM":"La demande d'application d'Effet a été envoye au MJ",
"APPLYREQUESTOWNER":"La demande d'application d'Effet a été envoyé au propriétaire",
"Actor Settings":"Paramètres d'Acteur",

View File

@ -6,7 +6,7 @@
"authors": [],
"url": "https://gitlab.com/LeRatierBretonnien/foundryvtt-wh4-lang-fr-fr",
"flags": {},
"version": "5.0.20",
"version": "5.0.21",
"minimumCoreVersion": "0.8.0",
"compatibleCoreVersion": "9",
"scripts": [],