#31 - Various translation fixes

This commit is contained in:
sladecraven 2021-04-29 09:01:22 +02:00
parent caba5fa787
commit 8bc9a11d9f
6 changed files with 20 additions and 7 deletions

View File

@ -213,10 +213,11 @@ Hooks.once('init', () => {
var len = skills_list.length;
var re = /(.*)\((.*)\)/i;
for (i = 0; i < len; i++) {
skills_list[i] = skills_list[i].trim();
var transl = compendium.i18nName( { name: skills_list[i] } );
//console.log("List ...", skills_list[i]);
if ( transl == skills_list[i] ) {
var res = re.exec( skills_list[i]);
var res = re.exec( skills_list[i] );
if (res) {
//console.log("Matched/split:", res[1], res[2]);
var subword = game.i18n.localize(res[2].trim() );

View File

@ -526,7 +526,7 @@
{
"effects": [],
"id": "Flask of Spirits",
"name": "Fasque de Liqueur"
"name": "Flasque de Liqueur"
},
{
"description": "",

View File

@ -3,7 +3,7 @@
"name": "WH4-fr-translation",
"title": "Traduction du module WH4 en Français.",
"description": "La traduction du module WH4.",
"version": "1.5.4",
"version": "1.5.5",
"minimumCoreVersion" : "0.7.1",
"compatibleCoreVersion": "0.7.9",
"author": "LeRatierBretonnien",

View File

@ -70,7 +70,7 @@ export class WH4FRPatchConfig {
"Langue (Eltharin)",
"Commandement",
"Corps à corps (Base)",
"Navigation",
"Orientation",
"Perception",
"Musicien (Au choix)",
"Projectiles (Arc)",
@ -109,7 +109,7 @@ export class WH4FRPatchConfig {
"halfling": [
"Sens Aiguisé (Gout)",
"Vision Nocturne",
"Resistant (Chaos)",
"Résistant (Chaos)",
"Petit",
2
],
@ -125,7 +125,7 @@ export class WH4FRPatchConfig {
"Sens Aiguisé (Sight)",
"Dur à cuire, Seconde Vue",
"Vision Nocturne",
"Seconde Vue, Sixth Sense",
"Seconde Vue, Sixième Sens",
"Lire/Ecrire",
0
],

File diff suppressed because one or more lines are too long

View File

@ -65,7 +65,7 @@
"name": "Lire/Ecrire",
"range": [21, 21]
}, {
"name": "Resistant (au choix)",
"name": "Résistant (au choix)",
"range": [22, 22]
}, {
"name": "Perspicace",