diff --git a/langs/en-ca.json b/langs/en-ca.json index 82a7438..b768f0e 100644 --- a/langs/en-ca.json +++ b/langs/en-ca.json @@ -38,13 +38,22 @@ "no-data-submitted": "No data submitted", "data-query-notif-header": "Data Query Notification", "cancel": "Cancel", - "confirm-and-close": "Confirm and Close" + "confirm-and-close": "Confirm and Close", + "save-and-close": "Save and Close", + "delete": "Delete" }, "Apps": { "Ask": { "title": "Questions", "invalid-input-type": "Invalid input type provided: {type}" }, + "AttributeManager": { + "title": "Attributes: {name}", + "has-max": "Has Maximum?", + "name-placeholder": "Attribute Name...", + "no-attributes": "No attributes yet", + "add-new-attribute": "Add New Attribute" + }, "QueryStatus": { "title": "Information Request Status", "user-disconnected-tooltip": "This user is not logged in to Foundry", diff --git a/module/apps/AttributeManager.mjs b/module/apps/AttributeManager.mjs index c81bb1a..5e92b25 100644 --- a/module/apps/AttributeManager.mjs +++ b/module/apps/AttributeManager.mjs @@ -1,5 +1,6 @@ import { __ID__, filePath } from "../consts.mjs"; import { attributeSorter } from "../utils/attributeSort.mjs"; +import { localizer } from "../utils/localizer.mjs"; import { toID } from "../utils/toID.mjs"; const { HandlebarsApplicationMixin, ApplicationV2 } = foundry.applications.api; @@ -52,7 +53,10 @@ export class AttributeManager extends HandlebarsApplicationMixin(ApplicationV2) }; get title() { - return `Attributes: ${this.#doc.name}`; + return localizer( + `taf.Apps.AttributeManager.title`, + this.#doc, + ); }; // #endregion Instance Data @@ -102,7 +106,6 @@ export class AttributeManager extends HandlebarsApplicationMixin(ApplicationV2) attrs.push({ id, name: data.name, - displayName: data.isNew ? `New Attribute` : data.name, sort: data.sort, isRange: data.isRange, isNew: data.isNew ?? false, diff --git a/templates/AttributeManager/attribute-list.hbs b/templates/AttributeManager/attribute-list.hbs index 5899acb..b6ea745 100644 --- a/templates/AttributeManager/attribute-list.hbs +++ b/templates/AttributeManager/attribute-list.hbs @@ -15,13 +15,13 @@ type="text" data-bind="{{ attr.id }}.name" value="{{ attr.name }}" - placeholder="Attribute Name..." + placeholder="{{localize "taf.Apps.AttributeManager.name-placeholder"}}" > {{else}} {{ attr.name }} {{/if}}