fix: replace hardcoded French bleeding notifications with i18n keys
This commit is contained in:
+3
-1
@@ -624,7 +624,9 @@
|
|||||||
"messageLethargyKO": "{spellName} : Lethargy still ongoing ... ( dice result : {roll} )",
|
"messageLethargyKO": "{spellName} : Lethargy still ongoing ... ( dice result : {roll} )",
|
||||||
"messageProgressionKO": "{name} can't attack this second.",
|
"messageProgressionKO": "{name} can't attack this second.",
|
||||||
"messageProgressionOKMonster": "{name} can attack this second with {weapon}.",
|
"messageProgressionOKMonster": "{name} can attack this second with {weapon}.",
|
||||||
"messageProgressionKOMonster": "{name} can't attack this second (dice result {roll})."
|
"messageProgressionKOMonster": "{name} can't attack this second (dice result {roll}).",
|
||||||
|
"bleedingCombatEnd": "Bleeding active out of combat: {names}",
|
||||||
|
"bleedingCombatStart": "Bleeding still active on: {names}"
|
||||||
},
|
},
|
||||||
"Opponent": {
|
"Opponent": {
|
||||||
"FIELDS": {}
|
"FIELDS": {}
|
||||||
|
|||||||
+6
-2
@@ -155,7 +155,9 @@ function _registerBleedingHooks() {
|
|||||||
const bleeding = _findBleedingActors()
|
const bleeding = _findBleedingActors()
|
||||||
if (bleeding.length) {
|
if (bleeding.length) {
|
||||||
ui.notifications.warn(
|
ui.notifications.warn(
|
||||||
`Saignement actif hors combat : ${bleeding.map(a => a.name).join(", ")}`
|
game.i18n.format("LETHALFANTASY.Notifications.bleedingCombatEnd", {
|
||||||
|
names: bleeding.map(a => a.name).join(", "),
|
||||||
|
})
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
@@ -164,7 +166,9 @@ function _registerBleedingHooks() {
|
|||||||
const bleeding = _findBleedingActors()
|
const bleeding = _findBleedingActors()
|
||||||
if (bleeding.length) {
|
if (bleeding.length) {
|
||||||
ui.notifications.warn(
|
ui.notifications.warn(
|
||||||
`Saignement toujours actif sur : ${bleeding.map(a => a.name).join(", ")}`
|
game.i18n.format("LETHALFANTASY.Notifications.bleedingCombatStart", {
|
||||||
|
names: bleeding.map(a => a.name).join(", "),
|
||||||
|
})
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user