Reorganizing languages files properties
This commit is contained in:
@@ -630,7 +630,9 @@ export class CharacterGenerator {
|
||||
`<p>${game.i18n.localize("l5r5e.social.gender.title")}: ${game.i18n.localize(
|
||||
"l5r5e.social.gender." + this.data.gender
|
||||
)}</p>` +
|
||||
`<p>${game.i18n.localize("l5r5e.clan")}: ${game.i18n.localize("l5r5e.clans." + this.data.clan)}</p>` +
|
||||
`<p>${game.i18n.localize("l5r5e.clans.label")}: ${game.i18n.localize(
|
||||
"l5r5e.clans." + this.data.clan
|
||||
)}</p>` +
|
||||
`<p>${game.i18n.localize("l5r5e.social.marital_status.title")}: ${game.i18n.localize(
|
||||
"l5r5e.social.marital_status." + this.data.maritalStatus
|
||||
)}</p>`;
|
||||
|
||||
@@ -81,7 +81,7 @@ export class CombatL5r5e extends Combat {
|
||||
let roll;
|
||||
let rnkMessage;
|
||||
const flavor =
|
||||
game.i18n.localize("l5r5e.chatdices.initiative_roll") +
|
||||
game.i18n.localize("l5r5e.dice.chat.initiative_roll") +
|
||||
" (" +
|
||||
game.i18n.localize(`l5r5e.conflict.initiative.prepared_${isPrepared}`) +
|
||||
")";
|
||||
|
||||
@@ -81,10 +81,10 @@ L5R5E.skills.set("survival", "trade");
|
||||
|
||||
// *** Symbols ***
|
||||
L5R5E.symbols = new Map();
|
||||
L5R5E.symbols.set("(op)", { class: "i_opportunity", label: "l5r5e.chatdices.opportunities" });
|
||||
L5R5E.symbols.set("(su)", { class: "i_success", label: "l5r5e.chatdices.successes" });
|
||||
L5R5E.symbols.set("(ex)", { class: "i_explosive", label: "l5r5e.chatdices.explosives" });
|
||||
L5R5E.symbols.set("(st)", { class: "i_strife", label: "l5r5e.chatdices.strife" });
|
||||
L5R5E.symbols.set("(op)", { class: "i_opportunity", label: "l5r5e.dice.chat.opportunities" });
|
||||
L5R5E.symbols.set("(su)", { class: "i_success", label: "l5r5e.dice.chat.successes" });
|
||||
L5R5E.symbols.set("(ex)", { class: "i_explosive", label: "l5r5e.dice.chat.explosives" });
|
||||
L5R5E.symbols.set("(st)", { class: "i_strife", label: "l5r5e.dice.chat.strife" });
|
||||
L5R5E.symbols.set("(ring)", { class: "i_ring", label: "l5r5e.rings.title" });
|
||||
L5R5E.symbols.set("(skill)", { class: "i_skill", label: "l5r5e.skills.title" });
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@ export class DicePickerDialog extends FormApplication {
|
||||
id: "l5r5e-dice-picker-dialog",
|
||||
classes: ["l5r5e", "dice-picker-dialog"],
|
||||
template: CONFIG.l5r5e.paths.templates + "dice/dice-picker-dialog.html",
|
||||
title: "L5R Dice Roller",
|
||||
title: game.i18n.localize("l5r5e.dice.dicepicker.title"),
|
||||
actor: null,
|
||||
ringId: null,
|
||||
skillId: "",
|
||||
@@ -73,7 +73,7 @@ export class DicePickerDialog extends FormApplication {
|
||||
let buttons = super._getHeaderButtons();
|
||||
|
||||
buttons.unshift({
|
||||
label: game.i18n.localize("l5r5e.dicepicker.bt_add_macro"),
|
||||
label: game.i18n.localize("l5r5e.dice.dicepicker.bt_add_macro"),
|
||||
class: "bt-add-macro",
|
||||
icon: "fas fa-star",
|
||||
onclick: async () => {
|
||||
@@ -317,7 +317,7 @@ export class DicePickerDialog extends FormApplication {
|
||||
* @type {String}
|
||||
*/
|
||||
get title() {
|
||||
return `L5R Dice Roller` + (this._actor ? " - " + this._actor.data.name : "");
|
||||
return game.i18n.localize("l5r5e.dice.dicepicker.title") + (this._actor ? " - " + this._actor.data.name : "");
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -730,7 +730,7 @@ export class DicePickerDialog extends FormApplication {
|
||||
}
|
||||
// Wrong syntax or no target set, do manual TN
|
||||
if (!targetActor) {
|
||||
console.log("L5R5E | Fail to get actor from target selection");
|
||||
console.log("L5R5E | Fail to get actor from target selection, or no target selected");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -50,7 +50,7 @@ export class RollnKeepDialog extends FormApplication {
|
||||
id: "l5r5e-roll-n-keep-dialog",
|
||||
classes: ["l5r5e", "roll-n-keep-dialog"],
|
||||
template: CONFIG.l5r5e.paths.templates + "dice/roll-n-keep-dialog.html",
|
||||
title: game.i18n.localize("l5r5e.roll_n_keep.title"),
|
||||
title: game.i18n.localize("l5r5e.dice.roll_n_keep.title"),
|
||||
closeOnSubmit: false,
|
||||
});
|
||||
}
|
||||
@@ -255,7 +255,7 @@ export class RollnKeepDialog extends FormApplication {
|
||||
// Add Context menu to rollback choices
|
||||
new ContextMenu(html, ".l5r5e.profil", [
|
||||
{
|
||||
name: game.i18n.localize("l5r5e.roll_n_keep.undo"),
|
||||
name: game.i18n.localize("l5r5e.dice.roll_n_keep.undo"),
|
||||
icon: '<i class="fas fa-undo"></i>',
|
||||
callback: () => this._undoLastStepChoices(),
|
||||
},
|
||||
|
||||
@@ -20,7 +20,7 @@ export class GmMonitor extends FormApplication {
|
||||
id: "l5r5e-gm-monitor",
|
||||
classes: ["l5r5e", "gm-monitor"],
|
||||
template: CONFIG.l5r5e.paths.templates + "gm/gm-monitor.html",
|
||||
title: game.i18n.localize("l5r5e.gm_monitor.title"),
|
||||
title: game.i18n.localize("l5r5e.gm.monitor.title"),
|
||||
width: 800,
|
||||
height: 300,
|
||||
resizable: true,
|
||||
@@ -40,7 +40,7 @@ export class GmMonitor extends FormApplication {
|
||||
|
||||
// Switch view Characters/Armies
|
||||
buttons.unshift({
|
||||
label: game.i18n.localize("l5r5e.gm_monitor.switch_view"),
|
||||
label: game.i18n.localize("l5r5e.gm.monitor.switch_view"),
|
||||
class: "switch-view",
|
||||
icon: "fas fa-users",
|
||||
onclick: () =>
|
||||
|
||||
@@ -19,7 +19,7 @@ export class GmToolbox extends FormApplication {
|
||||
id: "l5r5e-gm-toolbox",
|
||||
classes: ["l5r5e", "gm-toolbox"],
|
||||
template: CONFIG.l5r5e.paths.templates + "gm/gm-toolbox.html",
|
||||
title: game.i18n.localize("l5r5e.gm_toolbox.title"),
|
||||
title: game.i18n.localize("l5r5e.gm.toolbox.title"),
|
||||
left: x - 627,
|
||||
top: y - 98,
|
||||
closeOnSubmit: false,
|
||||
@@ -247,7 +247,7 @@ export class GmToolbox extends FormApplication {
|
||||
}
|
||||
|
||||
ui.notifications.info(
|
||||
` <i class="fas fa-user${isAll ? "s" : ""}"></i> ` + game.i18n.localize(`l5r5e.gm_toolbox.${type}_info`)
|
||||
` <i class="fas fa-user${isAll ? "s" : ""}"></i> ` + game.i18n.localize(`l5r5e.gm.toolbox.${type}_info`)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,8 +50,8 @@ export class HelpDialog extends FormApplication {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
const name = $(event.currentTarget).data("type");
|
||||
ui.notifications.info(game.i18n.localize(`l5r5e.logo.${name}-info`));
|
||||
window.open(game.i18n.localize(`l5r5e.logo.${name}-link`), "_blank");
|
||||
ui.notifications.info(game.i18n.localize(`l5r5e.logo.${name}.info`));
|
||||
window.open(game.i18n.localize(`l5r5e.logo.${name}.link`), "_blank");
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ export class HelpersL5r5e {
|
||||
*/
|
||||
static getLocalizedClansList() {
|
||||
return Object.entries(game.i18n.translations.l5r5e.clans)
|
||||
.filter(([k, v]) => k !== "title")
|
||||
.filter(([k, v]) => !["title", "label"].includes(k))
|
||||
.map(([k, v]) => v);
|
||||
}
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ export default class HooksL5r5e {
|
||||
|
||||
// ***** UI *****
|
||||
// Add title on button dice icon
|
||||
$(".chat-control-icon")[0].title = game.i18n.localize("l5r5e.chatdices.dicepicker");
|
||||
$(".chat-control-icon")[0].title = game.i18n.localize("l5r5e.dice.dicepicker.title");
|
||||
|
||||
// Open Help dialog on clic on logo
|
||||
$("#logo")
|
||||
@@ -179,10 +179,10 @@ export default class HooksL5r5e {
|
||||
(document.data.data.ring ? ` class="i_${document.data.data.ring}"` : ``) +
|
||||
`>` +
|
||||
(document.data.data.rarity
|
||||
? `${game.i18n.localize("l5r5e.rarity")} ${document.data.data.rarity}`
|
||||
? `${game.i18n.localize("l5r5e.sheets.rarity")} ${document.data.data.rarity}`
|
||||
: "") +
|
||||
(document.data.data.rank
|
||||
? game.i18n.localize("l5r5e.rank") + " " + document.data.data.rank
|
||||
? game.i18n.localize("l5r5e.sheets.rank") + " " + document.data.data.rank
|
||||
: "") +
|
||||
`</i>`
|
||||
);
|
||||
|
||||
@@ -7,7 +7,7 @@ export class AdvancementSheetL5r5e extends ItemSheetL5r5e {
|
||||
/**
|
||||
* Sub Types of advancements
|
||||
*/
|
||||
static types = { ring: "l5r5e.rings.title", skill: "l5r5e.skill" }; // others have theirs own xp count
|
||||
static types = { ring: "l5r5e.rings.label", skill: "l5r5e.skills.label" }; // others have theirs own xp count
|
||||
|
||||
/** @override */
|
||||
static get defaultOptions() {
|
||||
|
||||
Reference in New Issue
Block a user