Added Translations for Tactical Grid, and some cleanup
This commit is contained in:
@@ -842,7 +842,7 @@
|
|||||||
"settings": {
|
"settings": {
|
||||||
"title": "Tactical Grid Settings",
|
"title": "Tactical Grid Settings",
|
||||||
"label": "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",
|
"cells": "spaces",
|
||||||
"world": {
|
"world": {
|
||||||
"enabled": "Enable Tactical Grid",
|
"enabled": "Enable Tactical Grid",
|
||||||
@@ -862,8 +862,7 @@
|
|||||||
"submit": "Save"
|
"submit": "Save"
|
||||||
},
|
},
|
||||||
"range_band": "Range Band {band}",
|
"range_band": "Range Band {band}",
|
||||||
"range": "Range {range}",
|
"range_abbreviation": "RB {range}"
|
||||||
"range_abbriviation": "RB {range}"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -837,6 +837,32 @@
|
|||||||
"the_scroll_or_the_blade": "El pergamino o la espada",
|
"the_scroll_or_the_blade": "El pergamino o la espada",
|
||||||
"legacies_of_war": "Legacies of War",
|
"legacies_of_war": "Legacies of War",
|
||||||
"children_of_the_five_winds": "Children of the Five Winds"
|
"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}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -837,6 +837,32 @@
|
|||||||
"the_scroll_or_the_blade": "Le Parchemin ou le Sabre",
|
"the_scroll_or_the_blade": "Le Parchemin ou le Sabre",
|
||||||
"legacies_of_war": "Les Flambeaux de la Guerre",
|
"legacies_of_war": "Les Flambeaux de la Guerre",
|
||||||
"children_of_the_five_winds": "Les Enfants des Cinq Vents"
|
"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}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -799,6 +799,32 @@
|
|||||||
"the_scroll_or_the_blade": "The Scroll or the Blade",
|
"the_scroll_or_the_blade": "The Scroll or the Blade",
|
||||||
"legacies_of_war": "Legacies of War",
|
"legacies_of_war": "Legacies of War",
|
||||||
"children_of_the_five_winds": "Children of the Five Winds"
|
"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}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ export class RulerL5r5e extends foundry.canvas.interaction.Ruler {
|
|||||||
const diagonalCost = game.canvas.grid.distance * waypoint.measurement.diagonals;
|
const diagonalCost = game.canvas.grid.distance * waypoint.measurement.diagonals;
|
||||||
context.distance.total = waypoint.measurement.distance.toNearest(0.1) + diagonalCost; //Diagonals count twice
|
context.distance.total = waypoint.measurement.distance.toNearest(0.1) + diagonalCost; //Diagonals count twice
|
||||||
context.additional = {
|
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;
|
return context;
|
||||||
@@ -60,7 +60,7 @@ export class TokenRulerL5r5e extends foundry.canvas.placeables.tokens.TokenRuler
|
|||||||
const diagonalCost = game.canvas.grid.distance * waypoint.measurement.diagonals;
|
const diagonalCost = game.canvas.grid.distance * waypoint.measurement.diagonals;
|
||||||
context.cost.total = waypoint.measurement.cost.toNearest(0.1) + diagonalCost; //Diagonals count twice
|
context.cost.total = waypoint.measurement.cost.toNearest(0.1) + diagonalCost; //Diagonals count twice
|
||||||
context.additional = {
|
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;
|
return context;
|
||||||
|
|||||||
Reference in New Issue
Block a user