localize warning

This commit is contained in:
Johannes Loher 2021-01-07 12:04:25 +01:00
parent 714efeb4ab
commit 7685efa8a6
2 changed files with 3 additions and 5 deletions

View file

@ -101,5 +101,6 @@
"DS4.ProfilHairColor": "Hair Color",
"DS4.ProfileWeight": "Weight",
"DS4.ProfileEyeColor": "Eye Color",
"DS4.ProfileSpecialCharacteristics": "Special Characteristics"
"DS4.ProfileSpecialCharacteristics": "Special Characteristics",
"DS4.WarningManageActiveEffectOnOwnedItem": "Managing Active Effects within an Owned Item is not currently supported and will be added in a subsequent update."
}

View file

@ -52,9 +52,6 @@ export class DS4ItemSheet extends ItemSheet<DS4ItemDataType, DS4Item> {
return position;
}
private readonly ownedItemActiveEffectWarning =
"Managing Active Effects within an Owned Item is not currently supported and will be added in a subsequent update.";
/* -------------------------------------------- */
/** @override */
@ -74,7 +71,7 @@ export class DS4ItemSheet extends ItemSheet<DS4ItemDataType, DS4Item> {
event.preventDefault();
if (this.item.isOwned) {
return ui.notifications.warn(this.ownedItemActiveEffectWarning);
return ui.notifications.warn(game.i18n.localize("DS4.WarningManageActiveEffectOnOwnedItem"));
}
const a = event.currentTarget;
const li = $(a).parents(".effect");