Skip to content

Build your personal knowledge base with Trilium Notes

client/collections: update translation string and tooltip

Adorian Doranefc8c6501ec9
diff --git a/apps/client/src/translations/en/translation.json b/apps/client/src/translations/en/translation.json
index 036b695b34..05ed0548a7 100644
--- a/apps/client/src/translations/en/translation.json
+++ b/apps/client/src/translations/en/translation.json
@@ -1396,8 +1396,6 @@
"edit_attribute": "Edit this attribute",
"delete_attribute": "Delete this attribute",
"delete_confirmation": "Delete <strong>{{name}}</strong> and its values from every note in this collection? This cannot be undone.",
- "shown_on_items": "Shown on the items",
- "hidden_from_items": "Hidden from the items",
"unset-field-placeholder": "not set",
"url_placeholder": "http://website...",
"open_external_link": "Open external link",
@@ -1413,7 +1411,8 @@
"select_values_placeholder": "Select an option or create one",
"values_placeholder": "Type a value and press Enter",
"add_value": "Add this value",
- "drawn_by_collection": "The collection is arranged by this, so its items do not repeat it"
+ "drawn_by_collection": "The collection is arranged by this, so its items do not repeat it",
+ "display_on_items": "Display the attribute on the collection items"
},
"script_executor": {
"query": "Query",
diff --git a/apps/client/src/widgets/react/PromotedAttributesCard.tsx b/apps/client/src/widgets/react/PromotedAttributesCard.tsx
index 593c72cda1..be160e2657 100644
--- a/apps/client/src/widgets/react/PromotedAttributesCard.tsx
+++ b/apps/client/src/widgets/react/PromotedAttributesCard.tsx
@@ -240,10 +240,10 @@ export default function PromotedAttributesCard({
<FormToggle
currentValue={!attribute.hidden && !attribute.drawnByCollection}
disabled={attribute.drawnByCollection}
- switchOnTooltip={t("promoted_attributes.shown_on_items")}
+ switchOnTooltip={t("promoted_attributes.display_on_items")}
switchOffTooltip={attribute.drawnByCollection
? t("promoted_attributes.drawn_by_collection")
- : t("promoted_attributes.hidden_from_items")}
+ : t("promoted_attributes.display_on_items")}
onChange={(visible) => setHidden(attribute.name, !visible)}
/>
</>