Enhance auto-translate again
This commit is contained in:
parent
316069d64f
commit
69bbf569fb
@ -68,6 +68,15 @@ Hooks.once('init', () => {
|
|||||||
talents_list[i] = transl;
|
talents_list[i] = transl;
|
||||||
}
|
}
|
||||||
return talents_list;
|
return talents_list;
|
||||||
|
},
|
||||||
|
// To avoid duplicateing class for all careers
|
||||||
|
"career_class": (value) => {
|
||||||
|
return game.i18n.localize( value.trim() );
|
||||||
|
},
|
||||||
|
// Search back in careers the translated name of the groupe (as it is the name of the level career itself)
|
||||||
|
"career_careergroup": (value) => {
|
||||||
|
var compendium = game.packs.find(p => p.collection === 'wfrp4e.careers');
|
||||||
|
return compendium.i18nName( value );
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,14 @@
|
|||||||
"talents": {
|
"talents": {
|
||||||
"path": "data.talents",
|
"path": "data.talents",
|
||||||
"converter": "career_talents"
|
"converter": "career_talents"
|
||||||
|
},
|
||||||
|
"class": {
|
||||||
|
"path": "data.class.value",
|
||||||
|
"converter": "career_class"
|
||||||
|
},
|
||||||
|
"careergroup": {
|
||||||
|
"path": "data.careergroup.value",
|
||||||
|
"converter": "career_careergroup"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"entries": [
|
"entries": [
|
||||||
|
13
fr.json
13
fr.json
@ -551,7 +551,18 @@
|
|||||||
"Knighty Order": "Ordre chevaleresque",
|
"Knighty Order": "Ordre chevaleresque",
|
||||||
"Guilder": "Guilde",
|
"Guilder": "Guilde",
|
||||||
"Soldiers": "Soldats",
|
"Soldiers": "Soldats",
|
||||||
|
|
||||||
"Silver": "Argent",
|
"Silver": "Argent",
|
||||||
"Gold": "Or",
|
"Gold": "Or",
|
||||||
"Brass": "Bronze"
|
"Brass": "Bronze",
|
||||||
|
|
||||||
|
"Academics": "Lettrés",
|
||||||
|
"Burgher": "Citadins",
|
||||||
|
"Rogues": "Roublards",
|
||||||
|
"Riverfolk": "Riverains",
|
||||||
|
"Peasants": "Ruraux",
|
||||||
|
"Warrior": "Guerriers",
|
||||||
|
"Ranger": "Itinérants",
|
||||||
|
"Courtier": "Courtisans"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "WH4-fr-translation",
|
"name": "WH4-fr-translation",
|
||||||
"title": "Traduction du module WH4 en Français.",
|
"title": "Traduction du module WH4 en Français.",
|
||||||
"description": "La traduction du module WH4.",
|
"description": "La traduction du module WH4.",
|
||||||
"version": "0.19",
|
"version": "0.20",
|
||||||
"minimumCoreVersion" : "0.5.1",
|
"minimumCoreVersion" : "0.5.1",
|
||||||
"author": "LeRatierBretonnien",
|
"author": "LeRatierBretonnien",
|
||||||
"esmodules": ["babele-register.js"],
|
"esmodules": ["babele-register.js"],
|
||||||
|
Loading…
Reference in New Issue
Block a user