From 222aa75a1da7950292b7fcb60d0b0e70bd41f813 Mon Sep 17 00:00:00 2001 From: Vlyan Date: Fri, 30 Jan 2026 09:28:15 +0100 Subject: [PATCH] Added Translations for Tactical Grid, and some cleanup --- system/lang/en-en.json | 5 ++--- system/lang/es-es.json | 26 ++++++++++++++++++++++++++ system/lang/fr-fr.json | 26 ++++++++++++++++++++++++++ system/lang/it-it.json | 26 ++++++++++++++++++++++++++ system/scripts/tatical-grid-rulers.js | 4 ++-- 5 files changed, 82 insertions(+), 5 deletions(-) diff --git a/system/lang/en-en.json b/system/lang/en-en.json index 0f14570..8b92d49 100644 --- a/system/lang/en-en.json +++ b/system/lang/en-en.json @@ -842,7 +842,7 @@ "settings": { "title": "Tactical Grid Settings", "label": "Tactical Grid Settings", - "hint":"Configures tactical grid range band distances (GM only) and their visual appearance colors and transparency (all users).", + "hint": "Configures tactical grid range band distances (GM only) and their visual appearance colors and transparency (all users).", "cells": "spaces", "world": { "enabled": "Enable Tactical Grid", @@ -862,8 +862,7 @@ "submit": "Save" }, "range_band": "Range Band {band}", - "range": "Range {range}", - "range_abbriviation": "RB {range}" + "range_abbreviation": "RB {range}" } } } diff --git a/system/lang/es-es.json b/system/lang/es-es.json index 367ef5a..8e52bef 100644 --- a/system/lang/es-es.json +++ b/system/lang/es-es.json @@ -837,6 +837,32 @@ "the_scroll_or_the_blade": "El pergamino o la espada", "legacies_of_war": "Legacies of War", "children_of_the_five_winds": "Children of the Five Winds" + }, + "tactical_grid": { + "settings": { + "title": "Tactical Grid Settings", + "label": "Tactical Grid Settings", + "hint": "Configures tactical grid range band distances (GM only) and their visual appearance colors and transparency (all users).", + "cells": "spaces", + "world": { + "enabled": "Enable Tactical Grid", + "enabled_hint": "Enables or Disable tactical grid for everyone", + "start": "Start" + }, + "client": { + "color": "Color", + "alpha": "Alpha" + }, + "range": "Range {index}", + "validate": { + "start-too-small": "Must be greater than Range Band {previousRangeIndex} ({previousStart})", + "start-too-large": "Must be lower then Range Band {nextRangeIndex} ({nextStart})" + }, + "reset": "Reset to Default", + "submit": "Save" + }, + "range_band": "Range Band {band}", + "range_abbreviation": "RB {range}" } } } diff --git a/system/lang/fr-fr.json b/system/lang/fr-fr.json index 4b3648a..88f86e5 100644 --- a/system/lang/fr-fr.json +++ b/system/lang/fr-fr.json @@ -837,6 +837,32 @@ "the_scroll_or_the_blade": "Le Parchemin ou le Sabre", "legacies_of_war": "Les Flambeaux de la Guerre", "children_of_the_five_winds": "Les Enfants des Cinq Vents" + }, + "tactical_grid": { + "settings": { + "title": "Plan Tactique", + "label": "Paramètres du Plan Tactique", + "hint": "Configure les Niveaux de Portée (GM uniquement), ainsi que les différentes couleurs et transparence (tous les utilisateurs).", + "cells": "cases", + "world": { + "enabled": "Activer le Plan Tactique", + "enabled_hint": "Active ou désactive le plan tactique pour tout le monde", + "start": "Début" + }, + "client": { + "color": "Couleur", + "alpha": "Alpha" + }, + "range": "Portée {index}", + "validate": { + "start-too-small": "Doit être supérieur à la Portée {previousRangeIndex} ({previousStart})", + "start-too-large": "Doit être inférieur à la Portée {nextRangeIndex} ({nextStart})" + }, + "reset": "Réinitialiser les paramètres par défaut", + "submit": "Enregistrer" + }, + "range_band": "Portée {band}", + "range_abbreviation": "NP {range}" } } } diff --git a/system/lang/it-it.json b/system/lang/it-it.json index c0f3982..54b8653 100644 --- a/system/lang/it-it.json +++ b/system/lang/it-it.json @@ -799,6 +799,32 @@ "the_scroll_or_the_blade": "The Scroll or the Blade", "legacies_of_war": "Legacies of War", "children_of_the_five_winds": "Children of the Five Winds" + }, + "tactical_grid": { + "settings": { + "title": "Tactical Grid Settings", + "label": "Tactical Grid Settings", + "hint": "Configures tactical grid range band distances (GM only) and their visual appearance colors and transparency (all users).", + "cells": "spaces", + "world": { + "enabled": "Enable Tactical Grid", + "enabled_hint": "Enables or Disable tactical grid for everyone", + "start": "Start" + }, + "client": { + "color": "Color", + "alpha": "Alpha" + }, + "range": "Range {index}", + "validate": { + "start-too-small": "Must be greater than Range Band {previousRangeIndex} ({previousStart})", + "start-too-large": "Must be lower then Range Band {nextRangeIndex} ({nextStart})" + }, + "reset": "Reset to Default", + "submit": "Save" + }, + "range_band": "Range Band {band}", + "range_abbreviation": "RB {range}" } } } diff --git a/system/scripts/tatical-grid-rulers.js b/system/scripts/tatical-grid-rulers.js index 425c358..92a0d0a 100644 --- a/system/scripts/tatical-grid-rulers.js +++ b/system/scripts/tatical-grid-rulers.js @@ -24,7 +24,7 @@ export class RulerL5r5e extends foundry.canvas.interaction.Ruler { const diagonalCost = game.canvas.grid.distance * waypoint.measurement.diagonals; context.distance.total = waypoint.measurement.distance.toNearest(0.1) + diagonalCost; //Diagonals count twice context.additional = { - label: game.i18n.format("l5r5e.tactical_grid.range_abbriviation", {range: getRangeband(gridSettings, waypoint.measurement.distance)}) + label: game.i18n.format("l5r5e.tactical_grid.range_abbreviation", {range: getRangeband(gridSettings, waypoint.measurement.distance)}) }; } return context; @@ -60,7 +60,7 @@ export class TokenRulerL5r5e extends foundry.canvas.placeables.tokens.TokenRuler const diagonalCost = game.canvas.grid.distance * waypoint.measurement.diagonals; context.cost.total = waypoint.measurement.cost.toNearest(0.1) + diagonalCost; //Diagonals count twice context.additional = { - label: game.i18n.format("l5r5e.tactical_grid.range_abbriviation", {range: getRangeband(gridSettings, waypoint.measurement.distance)}) + label: game.i18n.format("l5r5e.tactical_grid.range_abbreviation", {range: getRangeband(gridSettings, waypoint.measurement.distance)}) }; } return context;