More translation keys

This commit is contained in:
sladecraven 2021-05-08 08:50:48 +02:00
parent d7bc636714
commit 50a694a5b7
4 changed files with 84 additions and 38 deletions

39
fr.json
View File

@ -385,7 +385,41 @@
"Prayer" : "Prière",
"Trait" : "Trait",
"Protects" : "Protège",
"Overcasts": "Surincantations",
"Extensions": "Extensions",
"Quantity": "Quantité",
"Weapon": "Arme",
"Default": "Défaut",
"Label": "Label",
"Hours": "Heures",
"Days": "Jours",
"Minutes": "Minutes",
"Loaded": "Chargé",
"Configure": "Configurer",
"Ranged": "A portée",
"Reason": "Raison",
"Show": "Montrer",
"Hide": "Cacher",
"Targets": "Cibles",
"Melee": "Corps à corps",
"Cost": "Prix",
"Length": "Longueur",
"Cargo": "Cargaison",
"Token": "Token",
"days": "jours",
"You": "Vous",
"Charging": "En charge",
"Yes": "Oui",
"No": "No",
"Cancel": "Annuler",
"Select": "Sélectionner",
"Confirm": "Confirmer",
"minutes": "minutes",
"hours": "heures",
"rounds": "rounds",
"ENTITY.Actor": "Acteur",
"BROWSER.ItemCategories" : "Catégorie d'items",
"BROWSER.IncludeWorld" : "Inclure les objets du monde ?",
"BROWSER.FilterOptions" : "Options de filtre",
@ -1394,6 +1428,9 @@
"EFFECT.SelectEffect" : "Sélectionnez l'effet",
"EFFECT.HideEffect": "Cacher aux joueurs",
"EFFECT.SystemEffects": "Effets systèmes",
"EFFECT.TabDetails": "Détails",
"EFFECT.TabDuration": "Durée",
"EFFECT.TabEffects": "Effets",
"TABLE.ConvertTable": "Convertir en tables WFRP4e",

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.10",
"version": "1.5.11",
"minimumCoreVersion" : "0.7.1",
"compatibleCoreVersion": "0.7.9",
"author": "LeRatierBretonnien",

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,45 @@
package.path = package.path .. ";luajson/?.lua"
local JSON = require"json"
local lfs = require"lfs"
local path = "../../WFRP4e-FoundryVTT/"
local frjsonf = "../fr.json"
fp = io.open(frjsonf, "r")
local frtags = JSON.decode( fp:read("*a") )
fp:close()
local function parse_folder( mypath )
--print("*** ENTERING", mypath)
for file in lfs.dir(mypath) do
--print(file)
if file == '.' or file == '..' then
else
if lfs.attributes(mypath.."/"..file).mode == "directory" then
parse_folder(mypath .."/".. file)
else
local fp = io.open(mypath .."/".. file, "r+")
if fp then
local html = fp:read("*a");
-- Template case
for match in html:gmatch( "{{localize \"([%w%.]*)\"") do
--print(match)
if not frtags[match] then
print("MATCH not found !!!", match)
end
end
-- Template case
for match in html:gmatch( "game.i18n.localize%(%s*\"([%w%.]*)\"") do -- .localize(%s*"
--print(match)
if not frtags[match] then
print("MATCH not found !!!", match)
end
end
fp:close()
end
end
end
end
end
parse_folder( path )