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