diff --git a/lang/fr.json b/lang/fr.json
index cfd7291..2525ee7 100644
--- a/lang/fr.json
+++ b/lang/fr.json
@@ -113,6 +113,7 @@
"modeDowngrade": "Dégrader",
"activeEffects": "Effets Actifs",
"noActiveEffects": "Aucun effet actif",
+ "noItemEffects": "Aucun effet sur cet item",
"effectSummary": "Résumé des modifications",
"toggleEffect": "Activer/Désactiver"
}
diff --git a/modules/applications/sheets/base-actor-sheet.mjs b/modules/applications/sheets/base-actor-sheet.mjs
index 885214a..15cdbde 100644
--- a/modules/applications/sheets/base-actor-sheet.mjs
+++ b/modules/applications/sheets/base-actor-sheet.mjs
@@ -332,7 +332,7 @@ export default class MournbladeCYD2ActorSheetV2 extends HandlebarsApplicationMix
try {
// Créer les données par défaut pour un nouvel effet
const defaultEffectData = {
- name: game.i18n.localize("MOURNBLADECYD2.EFFECT.new") || "Nouvel Effet",
+ name: game.i18n.localize("EFFECT.new") || "Nouvel Effet",
icon: "systems/fvtt-mournblade-cyd-2-0/assets/icons/capacite.webp",
description: "",
changes: [],
@@ -354,7 +354,7 @@ export default class MournbladeCYD2ActorSheetV2 extends HandlebarsApplicationMix
} catch (error) {
console.error("MournbladeCYD2 | Failed to create effect:", error);
ui.notifications.error(
- game.i18n.localize("MOURNBLADECYD2.EFFECT.createError") ||
+ game.i18n.localize("EFFECT.createError") ||
"Erreur lors de la création de l'effet"
);
}
@@ -397,8 +397,8 @@ export default class MournbladeCYD2ActorSheetV2 extends HandlebarsApplicationMix
if (effect) {
const effectName = effect.name;
const confirmed = await foundry.applications.api.DialogV2.confirm({
- title: game.i18n.localize("MOURNBLADECYD2.EFFECT.deleteConfirm") || "Supprimer l'effet",
- content: game.i18n.localize("MOURNBLADECYD2.EFFECT.deleteConfirmText", {name: effectName}) ||
+ title: game.i18n.localize("EFFECT.deleteConfirm") || "Supprimer l'effet",
+ content: game.i18n.localize("EFFECT.deleteConfirmText", {name: effectName}) ||
`Êtes-vous sûr de vouloir supprimer l'effet "${effectName}" ?`
});
@@ -408,7 +408,7 @@ export default class MournbladeCYD2ActorSheetV2 extends HandlebarsApplicationMix
} catch (error) {
console.error("MournbladeCYD2 | Failed to delete effect:", error);
ui.notifications.error(
- game.i18n.localize("MOURNBLADECYD2.EFFECT.deleteError") ||
+ game.i18n.localize("EFFECT.deleteError") ||
"Erreur lors de la suppression de l'effet"
);
}
@@ -436,7 +436,7 @@ export default class MournbladeCYD2ActorSheetV2 extends HandlebarsApplicationMix
} catch (error) {
console.error("MournbladeCYD2 | Failed to toggle effect:", error);
ui.notifications.error(
- game.i18n.localize("MOURNBLADECYD2.EFFECT.toggleError") ||
+ game.i18n.localize("EFFECT.toggleError") ||
"Erreur lors du basculement de l'effet"
);
}
diff --git a/modules/applications/sheets/base-item-sheet.mjs b/modules/applications/sheets/base-item-sheet.mjs
index 094d4f8..36c478f 100644
--- a/modules/applications/sheets/base-item-sheet.mjs
+++ b/modules/applications/sheets/base-item-sheet.mjs
@@ -193,7 +193,7 @@ export default class MournbladeCYD2ItemSheetV2 extends HandlebarsApplicationMixi
try {
// Créer les données par défaut pour un nouvel effet
const defaultEffectData = {
- name: game.i18n.localize("MOURNBLADECYD2.EFFECT.new") || "Nouvel Effet",
+ name: game.i18n.localize("EFFECT.new") || "Nouvel Effet",
icon: "systems/fvtt-mournblade-cyd-2-0/assets/icons/capacite.webp",
description: "",
changes: [],
@@ -215,7 +215,7 @@ export default class MournbladeCYD2ItemSheetV2 extends HandlebarsApplicationMixi
} catch (error) {
console.error("MournbladeCYD2 | Failed to create effect:", error);
ui.notifications.error(
- game.i18n.localize("MOURNBLADECYD2.EFFECT.createError") ||
+ game.i18n.localize("EFFECT.createError") ||
"Erreur lors de la création de l'effet"
);
}
@@ -258,8 +258,8 @@ export default class MournbladeCYD2ItemSheetV2 extends HandlebarsApplicationMixi
if (effect) {
const effectName = effect.name;
const confirmed = await foundry.applications.api.DialogV2.confirm({
- title: game.i18n.localize("MOURNBLADECYD2.EFFECT.deleteConfirm") || "Supprimer l'effet",
- content: game.i18n.localize("MOURNBLADECYD2.EFFECT.deleteConfirmText", {name: effectName}) ||
+ title: game.i18n.localize("EFFECT.deleteConfirm") || "Supprimer l'effet",
+ content: game.i18n.localize("EFFECT.deleteConfirmText", {name: effectName}) ||
`Êtes-vous sûr de vouloir supprimer l'effet "${effectName}" ?`
});
@@ -269,7 +269,7 @@ export default class MournbladeCYD2ItemSheetV2 extends HandlebarsApplicationMixi
} catch (error) {
console.error("MournbladeCYD2 | Failed to delete effect:", error);
ui.notifications.error(
- game.i18n.localize("MOURNBLADECYD2.EFFECT.deleteError") ||
+ game.i18n.localize("EFFECT.deleteError") ||
"Erreur lors de la suppression de l'effet"
);
}
@@ -297,7 +297,7 @@ export default class MournbladeCYD2ItemSheetV2 extends HandlebarsApplicationMixi
} catch (error) {
console.error("MournbladeCYD2 | Failed to toggle effect:", error);
ui.notifications.error(
- game.i18n.localize("MOURNBLADECYD2.EFFECT.toggleError") ||
+ game.i18n.localize("EFFECT.toggleError") ||
"Erreur lors du basculement de l'effet"
);
}
@@ -326,7 +326,7 @@ export default class MournbladeCYD2ItemSheetV2 extends HandlebarsApplicationMixi
// Cette méthode est placeholders - l'application devrait être gérée par drag-drop
// ou par une action spécifique qui demande à l'utilisateur de sélectionner un acteur
ui.notifications.warn(
- game.i18n.localize("MOURNBLADECYD2.EFFECT.selectActor") ||
+ game.i18n.localize("EFFECT.selectActor") ||
"Veuillez d'abord sélectionner un acteur pour appliquer cet effet."
);
}
diff --git a/modules/mournblade-cyd2-effects.js b/modules/mournblade-cyd2-effects.js
index c952399..4ffcaec 100644
--- a/modules/mournblade-cyd2-effects.js
+++ b/modules/mournblade-cyd2-effects.js
@@ -221,7 +221,7 @@ export class MournbladeCYD2Effects {
} catch (error) {
console.error("MournbladeCYD2 | Failed to apply effect:", error);
ui.notifications?.error(
- game.i18n?.localize("MOURNBLADECYD2.EFFECT.applyError") ||
+ game.i18n?.localize("EFFECT.applyError") ||
`Erreur: Impossible d'appliquer l'effet (${error.message})`
);
return null;
@@ -259,7 +259,7 @@ export class MournbladeCYD2Effects {
} catch (error) {
console.error("MournbladeCYD2 | Failed to apply item effects:", error);
ui.notifications?.error(
- game.i18n?.localize("MOURNBLADECYD2.EFFECT.applyItemError") ||
+ game.i18n?.localize("EFFECT.applyItemError") ||
`Erreur: Impossible d'appliquer les effets de l'item`
);
return [];
diff --git a/templates/item-arme-sheet.hbs b/templates/item-arme-sheet.hbs
index 7408286..9069a5f 100644
--- a/templates/item-arme-sheet.hbs
+++ b/templates/item-arme-sheet.hbs
@@ -90,11 +90,9 @@
{{!-- Effects Tab --}}
- {{#if item.effects.length}}
{{> systems/fvtt-mournblade-cyd-2-0/templates/partial-item-effects.hbs}}
- {{/if}}
\ No newline at end of file
diff --git a/templates/item-capaciteautomata-sheet.hbs b/templates/item-capaciteautomata-sheet.hbs
index f4c0c7e..fc980b0 100644
--- a/templates/item-capaciteautomata-sheet.hbs
+++ b/templates/item-capaciteautomata-sheet.hbs
@@ -19,11 +19,9 @@
{{!-- Effects Tab --}}
- {{#if item.effects.length}}
{{> systems/fvtt-mournblade-cyd-2-0/templates/partial-item-effects.hbs}}
- {{/if}}
diff --git a/templates/item-competence-sheet.hbs b/templates/item-competence-sheet.hbs
index 0e023e7..8c9c477 100644
--- a/templates/item-competence-sheet.hbs
+++ b/templates/item-competence-sheet.hbs
@@ -78,11 +78,9 @@
{{!-- Effects Tab --}}
- {{#if item.effects.length}}
{{> systems/fvtt-mournblade-cyd-2-0/templates/partial-item-effects.hbs}}
- {{/if}}
\ No newline at end of file
diff --git a/templates/item-don-sheet.hbs b/templates/item-don-sheet.hbs
index 3edd138..130a36e 100644
--- a/templates/item-don-sheet.hbs
+++ b/templates/item-don-sheet.hbs
@@ -44,10 +44,8 @@
{{!-- Effects Tab --}}
- {{#if item.effects.length}}
{{> systems/fvtt-mournblade-cyd-2-0/templates/partial-item-effects.hbs}}
- {{/if}}
diff --git a/templates/item-equipement-sheet.hbs b/templates/item-equipement-sheet.hbs
index 9d382cf..631c807 100644
--- a/templates/item-equipement-sheet.hbs
+++ b/templates/item-equipement-sheet.hbs
@@ -19,11 +19,9 @@
{{!-- Effects Tab --}}
- {{#if item.effects.length}}
{{> systems/fvtt-mournblade-cyd-2-0/templates/partial-item-effects.hbs}}
- {{/if}}
\ No newline at end of file
diff --git a/templates/item-historique-sheet.hbs b/templates/item-historique-sheet.hbs
index 73feadf..99169cc 100644
--- a/templates/item-historique-sheet.hbs
+++ b/templates/item-historique-sheet.hbs
@@ -21,11 +21,9 @@
{{!-- Effects Tab --}}
- {{#if item.effects.length}}
{{> systems/fvtt-mournblade-cyd-2-0/templates/partial-item-effects.hbs}}
- {{/if}}
\ No newline at end of file
diff --git a/templates/item-monnaie-sheet.hbs b/templates/item-monnaie-sheet.hbs
index d9135c4..9e494c0 100644
--- a/templates/item-monnaie-sheet.hbs
+++ b/templates/item-monnaie-sheet.hbs
@@ -31,11 +31,9 @@
{{!-- Effects Tab --}}
- {{#if item.effects.length}}
{{> systems/fvtt-mournblade-cyd-2-0/templates/partial-item-effects.hbs}}
- {{/if}}
diff --git a/templates/item-pacte-sheet.hbs b/templates/item-pacte-sheet.hbs
index 396c7fa..6798d1b 100644
--- a/templates/item-pacte-sheet.hbs
+++ b/templates/item-pacte-sheet.hbs
@@ -27,11 +27,9 @@
{{!-- Effects Tab --}}
- {{#if item.effects.length}}
{{> systems/fvtt-mournblade-cyd-2-0/templates/partial-item-effects.hbs}}
- {{/if}}
diff --git a/templates/item-pouvoirselementaire-sheet.hbs b/templates/item-pouvoirselementaire-sheet.hbs
index f4c0c7e..fc980b0 100644
--- a/templates/item-pouvoirselementaire-sheet.hbs
+++ b/templates/item-pouvoirselementaire-sheet.hbs
@@ -19,11 +19,9 @@
{{!-- Effects Tab --}}
- {{#if item.effects.length}}
{{> systems/fvtt-mournblade-cyd-2-0/templates/partial-item-effects.hbs}}
- {{/if}}
diff --git a/templates/item-profil-sheet.hbs b/templates/item-profil-sheet.hbs
index 22c4a9e..d74eb64 100644
--- a/templates/item-profil-sheet.hbs
+++ b/templates/item-profil-sheet.hbs
@@ -97,11 +97,9 @@
{{!-- Effects Tab --}}
- {{#if item.effects.length}}
{{> systems/fvtt-mournblade-cyd-2-0/templates/partial-item-effects.hbs}}
- {{/if}}
diff --git a/templates/item-protection-sheet.hbs b/templates/item-protection-sheet.hbs
index c8cf0ee..5c5ab21 100644
--- a/templates/item-protection-sheet.hbs
+++ b/templates/item-protection-sheet.hbs
@@ -27,11 +27,9 @@
{{!-- Effects Tab --}}
- {{#if item.effects.length}}
{{> systems/fvtt-mournblade-cyd-2-0/templates/partial-item-effects.hbs}}
- {{/if}}
\ No newline at end of file
diff --git a/templates/item-ressource-sheet.hbs b/templates/item-ressource-sheet.hbs
index c7c800e..35c0e7c 100644
--- a/templates/item-ressource-sheet.hbs
+++ b/templates/item-ressource-sheet.hbs
@@ -23,11 +23,9 @@
{{!-- Effects Tab --}}
- {{#if item.effects.length}}
{{> systems/fvtt-mournblade-cyd-2-0/templates/partial-item-effects.hbs}}
- {{/if}}
\ No newline at end of file
diff --git a/templates/item-rune-sheet.hbs b/templates/item-rune-sheet.hbs
index 84cae3a..bfc1cdd 100644
--- a/templates/item-rune-sheet.hbs
+++ b/templates/item-rune-sheet.hbs
@@ -73,10 +73,8 @@
{{!-- Effects Tab --}}
- {{#if item.effects.length}}
{{> systems/fvtt-mournblade-cyd-2-0/templates/partial-item-effects.hbs}}
- {{/if}}
diff --git a/templates/item-runeeffect-sheet.hbs b/templates/item-runeeffect-sheet.hbs
index 6043cfa..428aa18 100644
--- a/templates/item-runeeffect-sheet.hbs
+++ b/templates/item-runeeffect-sheet.hbs
@@ -61,11 +61,9 @@
{{!-- Effects Tab --}}
- {{#if item.effects.length}}
{{> systems/fvtt-mournblade-cyd-2-0/templates/partial-item-effects.hbs}}
- {{/if}}
diff --git a/templates/item-talent-sheet.hbs b/templates/item-talent-sheet.hbs
index 8b69be3..c46487f 100644
--- a/templates/item-talent-sheet.hbs
+++ b/templates/item-talent-sheet.hbs
@@ -55,11 +55,9 @@
{{!-- Effects Tab --}}
- {{#if item.effects.length}}
{{> systems/fvtt-mournblade-cyd-2-0/templates/partial-item-effects.hbs}}
- {{/if}}
\ No newline at end of file
diff --git a/templates/item-tendance-sheet.hbs b/templates/item-tendance-sheet.hbs
index 9370fdb..ea66285 100644
--- a/templates/item-tendance-sheet.hbs
+++ b/templates/item-tendance-sheet.hbs
@@ -32,11 +32,9 @@
{{!-- Effects Tab --}}
- {{#if item.effects.length}}
{{> systems/fvtt-mournblade-cyd-2-0/templates/partial-item-effects.hbs}}
- {{/if}}
diff --git a/templates/item-traitchaotique-sheet.hbs b/templates/item-traitchaotique-sheet.hbs
index 1d09f09..aa3b862 100644
--- a/templates/item-traitchaotique-sheet.hbs
+++ b/templates/item-traitchaotique-sheet.hbs
@@ -19,11 +19,9 @@
{{!-- Effects Tab --}}
- {{#if item.effects.length}}
{{> systems/fvtt-mournblade-cyd-2-0/templates/partial-item-effects.hbs}}
- {{/if}}
diff --git a/templates/item-traitdemoniaque-sheet.hbs b/templates/item-traitdemoniaque-sheet.hbs
index f57689f..2b8e9eb 100644
--- a/templates/item-traitdemoniaque-sheet.hbs
+++ b/templates/item-traitdemoniaque-sheet.hbs
@@ -19,10 +19,8 @@
{{!-- Effects Tab --}}
- {{#if item.effects.length}}
{{> systems/fvtt-mournblade-cyd-2-0/templates/partial-item-effects.hbs}}
- {{/if}}
diff --git a/templates/item-traitespece-sheet.hbs b/templates/item-traitespece-sheet.hbs
index 1d09f09..aa3b862 100644
--- a/templates/item-traitespece-sheet.hbs
+++ b/templates/item-traitespece-sheet.hbs
@@ -19,11 +19,9 @@
{{!-- Effects Tab --}}
- {{#if item.effects.length}}
{{> systems/fvtt-mournblade-cyd-2-0/templates/partial-item-effects.hbs}}
- {{/if}}
diff --git a/templates/partial-active-effects.hbs b/templates/partial-active-effects.hbs
index 62199e1..9aa16f9 100644
--- a/templates/partial-active-effects.hbs
+++ b/templates/partial-active-effects.hbs
@@ -6,11 +6,11 @@
{{!-- En-tête --}}
@@ -19,7 +19,7 @@
{{!-- Affiche un message si aucun effet --}}
{{#if (not actor.effects.length)}}
- Aucun effet actif
+ {{localize "EFFECT.noActiveEffects"}}
{{/if}}
@@ -84,7 +84,7 @@
{{!-- Affichage détaillé des effets actifs --}}
{{#if actor.effects.length}}
-
Résumé des modifications
+
{{localize "EFFECT.effectSummary"}}
{{#each actor.effects as |effect|}}
{{#if (not effect.disabled)}}
diff --git a/templates/partial-item-effects.hbs b/templates/partial-item-effects.hbs
index 6a0a060..d84efba 100644
--- a/templates/partial-item-effects.hbs
+++ b/templates/partial-item-effects.hbs
@@ -6,11 +6,11 @@
{{!-- En-tête --}}
@@ -19,7 +19,7 @@
{{!-- Affiche un message si aucun effet --}}
{{#if (not item.effects.length)}}
- Aucun effet sur cet item
+ {{localize "EFFECT.noItemEffects"}}
{{/if}}
diff --git a/templates/partial-item-nav.hbs b/templates/partial-item-nav.hbs
index f491a4e..2955110 100644
--- a/templates/partial-item-nav.hbs
+++ b/templates/partial-item-nav.hbs
@@ -3,6 +3,6 @@