Fix contacts relationships field is confusing

Fixed by changing the heading to `Related people` because the field is
 between a contact and another person, not between the contact book
 owner and the contact

Close #8681
This commit is contained in:
bir 2025-10-13 15:52:36 +02:00 committed by paw
parent b5338bdf80
commit b1133a83b3
6 changed files with 2141 additions and 2137 deletions

View file

@ -2108,3 +2108,4 @@ export type TranslationKeyType =
| "zoomIn_action" | "zoomIn_action"
| "zoomOut_action" | "zoomOut_action"
| "emptyString_msg" | "emptyString_msg"
| "relatedPeople_label"

View file

@ -243,7 +243,7 @@ export class ContactEditor {
]), ]),
]), ]),
m(".relationship.mt-xl", [ m(".relationship.mt-xl", [
m(".h4", lang.get("relationships_label")), m(".h4", lang.get("relatedPeople_label")),
m(".aggregateEditors", [ m(".aggregateEditors", [
this.relationships.map(([relationship, id], index) => { this.relationships.map(([relationship, id], index) => {
const lastEditor = index === lastIndex(this.relationships) const lastEditor = index === lastIndex(this.relationships)

View file

@ -289,7 +289,7 @@ export class ContactViewer implements ClassComponent<ContactViewerAttrs> {
m(".dates.mt-l", dates.length > 0 ? [m(".h4", lang.get("dates_label")), m(".aggregateEditors", dates)] : null), m(".dates.mt-l", dates.length > 0 ? [m(".h4", lang.get("dates_label")), m(".aggregateEditors", dates)] : null),
m( m(
".relationships.mt-l", ".relationships.mt-l",
relationships.length > 0 ? [m(".h4", lang.get("relationships_label")), m(".aggregateEditors", relationships)] : null, relationships.length > 0 ? [m(".h4", lang.get("relatedPeople_label")), m(".aggregateEditors", relationships)] : null,
), ),
]) ])
: null : null

File diff suppressed because it is too large Load diff

View file

@ -2132,6 +2132,7 @@ export default {
"yourMessage_label": "Ihre Nachricht", "yourMessage_label": "Ihre Nachricht",
"you_label": "Sie", "you_label": "Sie",
"zoomIn_action": "Hereinzoomen", "zoomIn_action": "Hereinzoomen",
"zoomOut_action": "Herauszoomen" "zoomOut_action": "Herauszoomen",
"relatedPeople_label": "Related people"
} }
} }

View file

@ -2128,6 +2128,7 @@ export default {
"yourMessage_label": "Your message", "yourMessage_label": "Your message",
"you_label": "You", "you_label": "You",
"zoomIn_action": "Zoom In", "zoomIn_action": "Zoom In",
"zoomOut_action": "Zoom Out" "zoomOut_action": "Zoom Out",
"relatedPeople_label": "Related people"
} }
} }