Don't call direct messages friends
Not every person I communicate with is necessarily my friend Use a more neutral term BUG: 480167
This commit is contained in:
@@ -22,12 +22,12 @@ Labs.MenuBar {
|
|||||||
|
|
||||||
Labs.MenuItem {
|
Labs.MenuItem {
|
||||||
icon.name: "list-add-user"
|
icon.name: "list-add-user"
|
||||||
text: i18nc("@action:inmenu", "Find your Friends")
|
text: i18nc("@action:inmenu", "Find User")
|
||||||
enabled: root.connection
|
enabled: root.connection
|
||||||
onTriggered: root.appWindow.pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat', 'UserSearchPage'), {
|
onTriggered: root.appWindow.pageStack.pushDialogLayer(Qt.createComponent('org.kde.neochat', 'UserSearchPage'), {
|
||||||
connection: root.connection
|
connection: root.connection
|
||||||
}, {
|
}, {
|
||||||
title: i18nc("@title", "Find your friends")
|
title: i18nc("@title", "Find User")
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
Labs.MenuItem {
|
Labs.MenuItem {
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ SearchPage {
|
|||||||
*/
|
*/
|
||||||
required property NeoChatConnection connection
|
required property NeoChatConnection connection
|
||||||
|
|
||||||
title: i18nc("@action:title", "Find Your Friends")
|
title: i18nc("@action:title", "Find User")
|
||||||
|
|
||||||
Component.onCompleted: focusSearch()
|
Component.onCompleted: focusSearch()
|
||||||
|
|
||||||
@@ -81,7 +81,7 @@ SearchPage {
|
|||||||
}
|
}
|
||||||
QQC2.Label {
|
QQC2.Label {
|
||||||
visible: userDelegate.directChatExists
|
visible: userDelegate.directChatExists
|
||||||
text: i18nc("@info", "Friends")
|
text: i18nc("@info", "Direct Messages")
|
||||||
textFormat: Text.PlainText
|
textFormat: Text.PlainText
|
||||||
color: Kirigami.Theme.positiveTextColor
|
color: Kirigami.Theme.positiveTextColor
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ public:
|
|||||||
ServerNotice, /**< Official messages from the server. */
|
ServerNotice, /**< Official messages from the server. */
|
||||||
Deprioritized, /**< The room is set as low priority. */
|
Deprioritized, /**< The room is set as low priority. */
|
||||||
Space, /**< The room is a space. */
|
Space, /**< The room is a space. */
|
||||||
AddDirect, /**< So we can show the add friend delegate. */
|
AddDirect, /**< So we can show the add direct message delegate. */
|
||||||
TypesCount, /**< Number of different types (this should always be last). */
|
TypesCount, /**< Number of different types (this should always be last). */
|
||||||
};
|
};
|
||||||
Q_ENUM(Types);
|
Q_ENUM(Types);
|
||||||
@@ -66,7 +66,7 @@ public:
|
|||||||
case NeoChatRoomType::Favorite:
|
case NeoChatRoomType::Favorite:
|
||||||
return i18n("Favorite");
|
return i18n("Favorite");
|
||||||
case NeoChatRoomType::Direct:
|
case NeoChatRoomType::Direct:
|
||||||
return i18n("Friends");
|
return i18n("Direct Messages");
|
||||||
case NeoChatRoomType::Normal:
|
case NeoChatRoomType::Normal:
|
||||||
return i18n("Normal");
|
return i18n("Normal");
|
||||||
case NeoChatRoomType::Deprioritized:
|
case NeoChatRoomType::Deprioritized:
|
||||||
|
|||||||
@@ -136,10 +136,10 @@ QQC2.Control {
|
|||||||
|
|
||||||
text: {
|
text: {
|
||||||
if (directChatButton.hasCountableNotifications) {
|
if (directChatButton.hasCountableNotifications) {
|
||||||
return i18ncp("@button View all one-on-one chats with your friends.", "Friends (%1 notification)", "Friends (%1 notifications)", root.connection.directChatNotifications + root.connection.directChatInvites);
|
return i18ncp("@button View all one-on-one chats.", "Direct Messages (%1 notification)", "Direct Messages (%1 notifications)", root.connection.directChatNotifications + root.connection.directChatInvites);
|
||||||
}
|
}
|
||||||
|
|
||||||
return i18nc("@button View all one-on-one chats with your friends.", "Friends");
|
return i18nc("@button View all one-on-one chats.", "Direct Messages");
|
||||||
}
|
}
|
||||||
contentItem: Kirigami.Icon {
|
contentItem: Kirigami.Icon {
|
||||||
source: "system-users-symbolic"
|
source: "system-users-symbolic"
|
||||||
|
|||||||
Reference in New Issue
Block a user