This commit is contained in:
sladecraven 2022-10-02 19:17:50 +02:00
parent a679da4674
commit 429715a416
4 changed files with 29 additions and 10 deletions

View File

@ -295,8 +295,8 @@ const __add_actors_translation = () => {
},
"entries": [
]
};
game.babele.packs.set(collection, new TranslatedCompendium(metadata, translation));
}
game.babele.packs.set(metadata, new TranslatedCompendium(metadata, translations));
//newpack = new TranslatedCompendium(pack, translations);
//console.log("Actor compendium has been replaced !!!!", pack.metadata.name);
}

View File

@ -242,15 +242,22 @@ Hooks.once('init', () => {
return chars;
},
"bestiary_traits": (beast_traits, translations) => {
if ( !beast_traits) {
console.log("No beast traits found here ...")
return beast_traits
}
for (let trait_en of beast_traits)
{
var special = "";
var nbt = "";
var name_en = trait_en.name.trim(); // strip \r in some traits name
if (trait_en.name.length == 0) {
console.log("Wrong item name found!!!!")
continue
}
//console.log(">>>>>>>> Parsing", trait_en.name)
if ( trait_en.type == "trait") {
console.log("Trait translation", compmod, trait_en)
//console.log("Trait translation", compmod, trait_en)
if ( name_en.includes("Tentacles") ) { // Process specific Tentacles case
var re = /(.d*)x Tentacles/i;
var res = re.exec( name_en );
@ -264,7 +271,7 @@ Hooks.once('init', () => {
special = " (" + game.i18n.localize( res[2].trim() ) + ")"; // And the special keyword
}
var trait_fr = game.babele.translate( compmod+'.traits', { name: name_en }, true );
console.log(">>>>> Trait ?", name_en, nbt, trait_fr, trait_fr.name, special);
//console.log(">>>>> Trait ?", name_en, nbt, trait_fr, trait_fr.name, special);
trait_en.name = nbt + trait_fr.name + special;
if ( trait_fr.system && trait_fr.system.description && trait_fr.system.description.value ) {
trait_en.system.description.value = trait_fr.system.description.value;
@ -336,16 +343,18 @@ Hooks.once('init', () => {
console.log(">>>>> Career ?", name_en, career_fr.name );
trait_en.name = career_fr.name;
trait_en.system = duplicate(career_fr.system);
} else if ( trait_en.type == "trapping" || trait_en.type == "weapon" || trait_en.type == "armour" || trait_en.type == "container" || trait_en.type == "money") {
var trapping_fr = game.babele.translate( compmod+'.trappings', trait_en, true );
//console.log(">>>>> Trapping ?", name_en, trapping_fr.name);
trait_en.name = trapping_fr.name;
trait_en.name = trapping_fr.name || trait_en.name
if ( trapping_fr.system) {
trait_en.system.description = trapping_fr.system.description;
}
}
}
return beast_traits;
//console.log(">>>>>>>><OUTPUT", beast_traits)
return beast_traits
},
// To avoid duplicateing class for all careers
"generic_localization": (value) => {

View File

@ -11,6 +11,16 @@
}
},
"entries": [
{
"description": "<p>Dark and dangerous are the paths of @UUID[JournalEntry.ozE2DMCMK64eE5pD.JournalEntryPage.UqeZNqbpV8uocCUN]{the Reikwald} Forest. Few venture beneath the forests boughs lightly and those who do are often of iron will, or complete and total lack of imagination. Imagination is dangerous, for it leads to populating the deep places of the forest with bugaboos and horrors beyond counting. Unfortunately for Kastor, hes quite an imaginative soul. Erichson quiets his many fears with fervently whispered prayers to Taal and when his nerves start to get the best of him, he seeks courage in a leather flask.</p><p>Despite the many dangers of the forest, both real and imagined, Kastor often prefers it to spending too much time midst other people. In Erichsons mind, his enemies in the forest are quite clear: bandits, Beastmen, and demons. In town, he faces a far more insidious foe: witches. Witches, as Kastor will readily tell others when drunk, are everywhere. Few witches go about looking like witches, though, and thats the real problem.</p><p>They hide among normal Gods-fearing folk to better work their clandestine evils. Keeping an eye out for witches in town is exhausting, Erichson reckons it is far better to stay in the forest where the enemies are clear. His beliefs have driven him to perfect his craft and he is an absolutely deadly shot.</p><h4>Vigilant Eyes</h4><p>After an event involving the Characters where magic of any kind was used, Erichson becomes convinced that one or more of the Characters is an ally of the hidden witches even (especially!) if one of them is an Imperial Wizard. While he may seem to be merely a crazed hunter, his intense speeches on the true perils of the world have their adherents, and if the Characters have done anything suspicious, he could very well get others to heed his rantings, especially those of the intolerant Witch Hunter strain.</p><p>Word gets around that Kastor managed to survive in a fight against a terrible Beastman @Compendium[wfrp4e-core.bestiary.cHVOdcEkuatqjYV1]{Bray-Shaman} because the creatures spells bounced right off him. Erichson holds to a great many odd superstitions and bears many strange charms, including small leather sacks holding mixtures of pine resin, rare berries, and herbs, blessed by a priest of Taal. Could one or more of his strange practices actually work and what would it take to convince him to share what he knows with the Characters?</p>",
"name": "Kastor Erichson",
"id": "Kastor Erichson"
},
{
"id": "Dieter Käsegeier",
"name": "Dieter Käsegeier",
"description": "<p>His many customers think of him as a peerless cheesemaker, but Dieter prefers to think of himself as a visionary. His father and his father before him (and so on for at least seven generations) were all involved in the making and selling of cheeses, but not particularly noteworthy ones. Dieter was not content to craft merely adequate cheese, and experimented with different methods of preparation and unique ingredients, many of which he acquired himself while on adventurous holidays. His persistent trials and ongoing research eventually lead to great successes.</p><p>Folks who get to know Dieter soon discover that he is not so much a patient cheesemaker as an obsessive one. Dieter talks of barely anything else and every anecdote-filled conversation with him inevitable returns to cheese. He has added many unusual things to his cheeses over the years from hearty spices to various beers and ales. Hes running out of conventional new ingredients to try, so hes decided to seek further afield, using materials such as ash, ground up insects, animal blood, bark shavings, goblin snot, excrement, and light doses of poison — <em>this cheese tingles</em>!.</p><h4>Where Theres a Will, Theres a Whey</h4><p>Dieter wants to hire some able sorts to help him retrieve a peculiar, rare breed of mushroom from deep in @UUID[JournalEntry.ozE2DMCMK64eE5pD.JournalEntryPage.UqeZNqbpV8uocCUN]{the Reikwald}, which hell pay well for in silver and truly delectable cheese. Unfortunately, his widespread fame brings thugs seeking to murder him and steal his secrets, not to mention the rather aggressive @UUID[Compendium.wfrp4e-core.bestiary.zzdOpKqBC28J66Mn]{Goblin} tribe who consider the mushrooms theirs.</p><p>Various folk have disappeared, or spontaneously mutated, and they all frequented Dieters shop. Has the eccentric cheese crafter finally turned to the Old Ones for new inspiration, using powdered wyrdstone in his latest batch, or has a rival set him up?</p>"
},
{
"description": "<p>Ces créatures reptiliennes à huit pattes sont solitaires et insaisissables. Considérées comme étant l'une des plus anciennes créatures du Chaos, on les dit emplies de tant de malveillance et de venin que même le sol sur lequel elles marchent est empoisonné. Leur morsure est également venimeuse, mais c'est leur regard pétrifiant qui est le plus à craindre. <br> Rarement rencontrés de nos jours, les basilics sont des ennemis des plus dangereux. Leurs glandes et leurs organes sont très prisés des Magiciens et Alchimistes. Ce qui fait que des chasseurs opportunistes écoutent souvent les rumeurs sur la présence de basilics dans les espaces sauvages du Vorbergland, et bien peu en reviennent.</p>",
"name": "Basilic",

View File

@ -8,7 +8,7 @@
}
],
"url": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr",
"version": "6.2.6",
"version": "6.2.7",
"esmodules": [
"babele-register.js",
"addon-register.js",
@ -136,7 +136,7 @@
}
],
"manifest": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/raw/v10/module.json",
"download": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/archive/foundryvtt-wh4-lang-fr-6.2.6.zip",
"download": "https://www.uberwald.me/gitea/public/foundryvtt-wh4-lang-fr-fr/archive/foundryvtt-wh4-lang-fr-6.2.7.zip",
"id": "wh4-fr-translation",
"compatibility": {
"minimum": "10",