More translation keys
This commit is contained in:
parent
d7bc636714
commit
50a694a5b7
39
fr.json
39
fr.json
@ -385,7 +385,41 @@
|
|||||||
"Prayer" : "Prière",
|
"Prayer" : "Prière",
|
||||||
"Trait" : "Trait",
|
"Trait" : "Trait",
|
||||||
"Protects" : "Protège",
|
"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.ItemCategories" : "Catégorie d'items",
|
||||||
"BROWSER.IncludeWorld" : "Inclure les objets du monde ?",
|
"BROWSER.IncludeWorld" : "Inclure les objets du monde ?",
|
||||||
"BROWSER.FilterOptions" : "Options de filtre",
|
"BROWSER.FilterOptions" : "Options de filtre",
|
||||||
@ -1394,6 +1428,9 @@
|
|||||||
"EFFECT.SelectEffect" : "Sélectionnez l'effet",
|
"EFFECT.SelectEffect" : "Sélectionnez l'effet",
|
||||||
"EFFECT.HideEffect": "Cacher aux joueurs",
|
"EFFECT.HideEffect": "Cacher aux joueurs",
|
||||||
"EFFECT.SystemEffects": "Effets systèmes",
|
"EFFECT.SystemEffects": "Effets systèmes",
|
||||||
|
"EFFECT.TabDetails": "Détails",
|
||||||
|
"EFFECT.TabDuration": "Durée",
|
||||||
|
"EFFECT.TabEffects": "Effets",
|
||||||
|
|
||||||
"TABLE.ConvertTable": "Convertir en tables WFRP4e",
|
"TABLE.ConvertTable": "Convertir en tables WFRP4e",
|
||||||
|
|
||||||
|
@ -3,7 +3,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": "1.5.10",
|
"version": "1.5.11",
|
||||||
"minimumCoreVersion" : "0.7.1",
|
"minimumCoreVersion" : "0.7.1",
|
||||||
"compatibleCoreVersion": "0.7.9",
|
"compatibleCoreVersion": "0.7.9",
|
||||||
"author": "LeRatierBretonnien",
|
"author": "LeRatierBretonnien",
|
||||||
|
File diff suppressed because one or more lines are too long
45
tools/parse_template_for_localization.lua
Normal file
45
tools/parse_template_for_localization.lua
Normal 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 )
|
Loading…
Reference in New Issue
Block a user