From 470b031a6f2f612fcd17c2168cea33db7b136a5a Mon Sep 17 00:00:00 2001 From: miruka Date: Wed, 4 Dec 2019 09:32:07 -0400 Subject: [PATCH] Standardize usage of period in UI sentences --- TODO.md | 2 +- src/qml/Chat/Banners/InviteBanner.qml | 2 +- src/qml/Chat/Banners/LeftBanner.qml | 2 +- src/qml/Chat/Banners/UnknownDevicesBanner.qml | 2 +- src/qml/Chat/Timeline/EventList.qml | 2 +- src/qml/Pages/AddChat/FindSomeone.qml | 4 ++-- src/qml/Pages/Default.qml | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/TODO.md b/TODO.md index 02dcbcb7..ce91abe0 100644 --- a/TODO.md +++ b/TODO.md @@ -59,7 +59,7 @@ - UI - Make theme error/etc text colors more like name colors - - Standardize usage of punctuation + - In account settings, display name field text should be colored - Way to open context menus without a right mouse button - `smartVerticalFlick()` gradual acceleration diff --git a/src/qml/Chat/Banners/InviteBanner.qml b/src/qml/Chat/Banners/InviteBanner.qml index 7032476c..5c602318 100644 --- a/src/qml/Chat/Banners/InviteBanner.qml +++ b/src/qml/Chat/Banners/InviteBanner.qml @@ -13,7 +13,7 @@ Banner { avatar.displayName: inviterName avatar.mxc: inviterAvatar - labelText: qsTr("%1 invited you to this room.").arg( + labelText: qsTr("%1 invited you to this room").arg( Utils.coloredNameHtml(inviterName, inviterId) ) diff --git a/src/qml/Chat/Banners/LeftBanner.qml b/src/qml/Chat/Banners/LeftBanner.qml index 4515682e..81bc12ce 100644 --- a/src/qml/Chat/Banners/LeftBanner.qml +++ b/src/qml/Chat/Banners/LeftBanner.qml @@ -9,7 +9,7 @@ Banner { avatar.userId: chatPage.userId avatar.displayName: chatPage.userInfo.display_name avatar.mxc: chatPage.userInfo.avatar_url - labelText: qsTr("You are not part of this room anymore.") + labelText: qsTr("You are not part of this room anymore") buttonModel: [ { diff --git a/src/qml/Chat/Banners/UnknownDevicesBanner.qml b/src/qml/Chat/Banners/UnknownDevicesBanner.qml index 8626a682..b5ea400f 100644 --- a/src/qml/Chat/Banners/UnknownDevicesBanner.qml +++ b/src/qml/Chat/Banners/UnknownDevicesBanner.qml @@ -7,7 +7,7 @@ Banner { avatar.visible: false icon.svgName: "unknown-devices-warning" - labelText: "Unknown devices are present in this encrypted room." + labelText: qsTr("Unknown devices are present in this encrypted room") buttonModel: [ { diff --git a/src/qml/Chat/Timeline/EventList.qml b/src/qml/Chat/Timeline/EventList.qml index 6c9962c1..28afc4af 100644 --- a/src/qml/Chat/Timeline/EventList.qml +++ b/src/qml/Chat/Timeline/EventList.qml @@ -177,7 +177,7 @@ Rectangle { } HNoticePage { - text: qsTr("No messages to show yet.") + text: qsTr("No messages to show yet") visible: eventList.model.count < 1 anchors.fill: parent diff --git a/src/qml/Pages/AddChat/FindSomeone.qml b/src/qml/Pages/AddChat/FindSomeone.qml index 118c7dea..0b0074fa 100644 --- a/src/qml/Pages/AddChat/FindSomeone.qml +++ b/src/qml/Pages/AddChat/FindSomeone.qml @@ -33,10 +33,10 @@ HBox { let txt = qsTr("Unknown error - %1: %2").arg(type).arg(args) if (type === "InvalidUserInContext") - txt = qsTr("You cannot invite yourself!") + txt = qsTr("You can't invite yourself!") if (type === "UserNotFound") - txt = qsTr("This user does not exist.") + txt = qsTr("This user does not exist") errorMessage.text = txt }) diff --git a/src/qml/Pages/Default.qml b/src/qml/Pages/Default.qml index 68940b31..93bfbc0e 100644 --- a/src/qml/Pages/Default.qml +++ b/src/qml/Pages/Default.qml @@ -1,5 +1,5 @@ import "../Base" HNoticePage { - text: qsTr("Add or select a room to start.") + text: qsTr("No chat selected") }