Fully localize the PlayerSheet
This commit is contained in:
parent
3819db1ce4
commit
235f8aef39
4 changed files with 9 additions and 5 deletions
|
|
@ -54,6 +54,11 @@
|
||||||
"no-attributes": "No attributes yet",
|
"no-attributes": "No attributes yet",
|
||||||
"add-new-attribute": "Add New Attribute"
|
"add-new-attribute": "Add New Attribute"
|
||||||
},
|
},
|
||||||
|
"PlayerSheet": {
|
||||||
|
"manage-attributes": "Manage Attributes",
|
||||||
|
"current-value": "Current value",
|
||||||
|
"max-value": "Maximum value"
|
||||||
|
},
|
||||||
"QueryStatus": {
|
"QueryStatus": {
|
||||||
"title": "Information Request Status",
|
"title": "Information Request Status",
|
||||||
"user-disconnected-tooltip": "This user is not logged in to Foundry",
|
"user-disconnected-tooltip": "This user is not logged in to Foundry",
|
||||||
|
|
|
||||||
|
|
@ -82,7 +82,7 @@ export class PlayerSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
|
||||||
|
|
||||||
controls.push({
|
controls.push({
|
||||||
icon: `fa-solid fa-at`,
|
icon: `fa-solid fa-at`,
|
||||||
label: `Manage Attributes`,
|
label: `taf.Apps.PlayerSheet.manage-attributes`,
|
||||||
action: `manageAttributes`,
|
action: `manageAttributes`,
|
||||||
visible: () => {
|
visible: () => {
|
||||||
const isGM = game.user.isGM;
|
const isGM = game.user.isGM;
|
||||||
|
|
@ -167,7 +167,6 @@ export class PlayerSheet extends HandlebarsApplicationMixin(ActorSheetV2) {
|
||||||
event.stopPropagation();
|
event.stopPropagation();
|
||||||
if ( event.detail > 1 ) { return }
|
if ( event.detail > 1 ) { return }
|
||||||
|
|
||||||
// const docSheetConfigWidth = TAFDocumentSheetConfig.DEFAULT_OPTIONS.position.width;
|
|
||||||
new TAFDocumentSheetConfig({
|
new TAFDocumentSheetConfig({
|
||||||
document: this.document,
|
document: this.document,
|
||||||
position: {
|
position: {
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@
|
||||||
class="attr-range__value"
|
class="attr-range__value"
|
||||||
name="{{attr.path}}.value"
|
name="{{attr.path}}.value"
|
||||||
value="{{attr.value}}"
|
value="{{attr.value}}"
|
||||||
aria-label="Current value"
|
aria-label="{{localize "taf.Apps.PlayerSheet.current-value"}}"
|
||||||
data-tooltip="@{{ attr.id }}{{#if attr.isRange}}.value{{/if}}"
|
data-tooltip="@{{ attr.id }}{{#if attr.isRange}}.value{{/if}}"
|
||||||
>
|
>
|
||||||
{{#if attr.isRange}}
|
{{#if attr.isRange}}
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
class="attr-range__max"
|
class="attr-range__max"
|
||||||
name="{{attr.path}}.max"
|
name="{{attr.path}}.max"
|
||||||
value="{{attr.max}}"
|
value="{{attr.max}}"
|
||||||
aria-label="Maximum value"
|
aria-label="{{localize "taf.Apps.PlayerSheet.max-value"}}"
|
||||||
data-tooltip="@{{ attr.id }}.max"
|
data-tooltip="@{{ attr.id }}.max"
|
||||||
>
|
>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,6 @@
|
||||||
name="name"
|
name="name"
|
||||||
class="large"
|
class="large"
|
||||||
value="{{actor.name}}"
|
value="{{actor.name}}"
|
||||||
placeholder="{{ localize 'Name' }}"
|
placeholder="{{ localize "Name" }}"
|
||||||
/>
|
/>
|
||||||
</header>
|
</header>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue