mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-21 18:09:54 +02:00
Localize GM Notes header label
This commit is contained in:
parent
9d277ea8ea
commit
bb2289fa95
3 changed files with 8 additions and 2 deletions
|
|
@ -2550,6 +2550,9 @@
|
||||||
},
|
},
|
||||||
"identifier": {
|
"identifier": {
|
||||||
"label": "Identifier"
|
"label": "Identifier"
|
||||||
|
},
|
||||||
|
"gmNotes": {
|
||||||
|
"label": "GM Notes"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Ancestry": {
|
"Ancestry": {
|
||||||
|
|
|
||||||
|
|
@ -157,7 +157,10 @@ export default class BaseDataItem extends foundry.abstract.TypeDataModel {
|
||||||
const gmNotesElement = document.createElement('section');
|
const gmNotesElement = document.createElement('section');
|
||||||
gmNotesElement.classList.add('gm-notes-section');
|
gmNotesElement.classList.add('gm-notes-section');
|
||||||
gmNotesElement.dataset.visibility = 'gm';
|
gmNotesElement.dataset.visibility = 'gm';
|
||||||
gmNotesElement.innerHTML = '<header class="gm-notes">GM Notes</header>' + this.gmNotes;
|
const header = document.createElement('header');
|
||||||
|
header.classList.add('gm-notes');
|
||||||
|
header.textContent = _loc('DAGGERHEART.ITEMS.FIELDS.gmNotes.label');
|
||||||
|
gmNotesElement.innerHTML = header.outerHTML + this.gmNotes;
|
||||||
fullDescription += gmNotesElement.outerHTML;
|
fullDescription += gmNotesElement.outerHTML;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
{{#if (and systemFields.gmNotes @root.user.isGM)}}
|
{{#if (and systemFields.gmNotes @root.user.isGM)}}
|
||||||
<section class="gm-notes-section">
|
<section class="gm-notes-section">
|
||||||
{{#if enrichedGMNotes}}
|
{{#if enrichedGMNotes}}
|
||||||
<header class="gm-notes">GM Notes</header>
|
<header class="gm-notes">{{localize "DAGGERHEART.ITEMS.FIELDS.gmNotes.label"}}</header>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<prose-mirror
|
<prose-mirror
|
||||||
name="system.gmNotes"
|
name="system.gmNotes"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue