diff --git a/ui/app/AppLayouts/Browser/BrowserLayout.qml b/ui/app/AppLayouts/Browser/BrowserLayout.qml index f8f470b1ae..4e70885dc8 100644 --- a/ui/app/AppLayouts/Browser/BrowserLayout.qml +++ b/ui/app/AppLayouts/Browser/BrowserLayout.qml @@ -65,15 +65,13 @@ Rectangle { property Component signMessageModalComponent: SignMessageModal {} property MessageDialog sendingError: MessageDialog { - //% "Error sending the transaction" - title: qsTrId("error-sending-the-transaction") + title: qsTr("Error sending the transaction") icon: StandardIcon.Critical standardButtons: StandardButton.Ok } property MessageDialog signingError: MessageDialog { - //% "Error signing message" - title: qsTrId("error-signing-message") + title: qsTr("Error signing message") icon: StandardIcon.Critical standardButtons: StandardButton.Ok } @@ -344,12 +342,9 @@ Rectangle { property var certErrors: [] icon: StandardIcon.Warning standardButtons: StandardButton.No | StandardButton.Yes - //% "Server's certificate not trusted" - title: qsTrId("server-s-certificate-not-trusted") - //% "Do you wish to continue?" - text: qsTrId("do-you-wish-to-continue-") - //% "If you wish so, you may continue with an unverified certificate. Accepting an unverified certificate means you may not be connected with the host you tried to connect to.\nDo you wish to override the security check and continue?" - detailedText: qsTrId("if-you-wish-so--you-may-continue-with-an-unverified-certificate--accepting-an-unverified-certificate-means-you-may-not-be-connected-with-the-host-you-tried-to-connect-to--ndo-you-wish-to-override-the-security-check-and-continue-") + title: qsTr("Server's certificate not trusted") + text: qsTr("Do you wish to continue?") + detailedText: qsTr("If you wish so, you may continue with an unverified certificate. Accepting an unverified certificate means you may not be connected with the host you tried to connect to.\nDo you wish to override the security check and continue?") onYes: { certErrors.shift().ignoreCertificateError(); presentError(); diff --git a/ui/app/AppLayouts/Browser/controls/styles/BrowserTabStyle.qml b/ui/app/AppLayouts/Browser/controls/styles/BrowserTabStyle.qml index aaef794b89..b0b25f2f14 100644 --- a/ui/app/AppLayouts/Browser/controls/styles/BrowserTabStyle.qml +++ b/ui/app/AppLayouts/Browser/controls/styles/BrowserTabStyle.qml @@ -75,8 +75,7 @@ TabViewStyle { anchors.rightMargin: Style.current.halfPadding icon.name: "close" type: StatusFlatRoundButton.Type.Quaternary - //% "Start Page" - visible: control.count > 1 || styleData.title !== qsTrId("start-page") + visible: control.count > 1 || styleData.title !== qsTr("Start Page") enabled: visible onClicked: control.closeButtonClicked(styleData.index) } diff --git a/ui/app/AppLayouts/Browser/panels/BrowserHeader.qml b/ui/app/AppLayouts/Browser/panels/BrowserHeader.qml index a9c0621cec..2427bab033 100644 --- a/ui/app/AppLayouts/Browser/panels/BrowserHeader.qml +++ b/ui/app/AppLayouts/Browser/panels/BrowserHeader.qml @@ -105,8 +105,7 @@ Rectangle { } leftPadding: Style.current.padding rightPadding: addFavoriteBtn.width + reloadBtn.width + Style.current.bigPadding - //% "Enter URL" - placeholderText: qsTrId("enter-url") + placeholderText: qsTr("Enter URL") focus: true text: "" color: Style.current.textColor diff --git a/ui/app/AppLayouts/Browser/panels/BrowserTabView.qml b/ui/app/AppLayouts/Browser/panels/BrowserTabView.qml index 98e049bd71..6694f82471 100644 --- a/ui/app/AppLayouts/Browser/panels/BrowserTabView.qml +++ b/ui/app/AppLayouts/Browser/panels/BrowserTabView.qml @@ -26,12 +26,10 @@ QQC1.TabView { tabTitle = tab.item.title } else if (createAsStartPage) { - //% "Start Page" - tabTitle = qsTrId("start-page") + tabTitle = qsTr("Start Page") } else { - //% "New Tab" - tabTitle = qsTrId("new-tab") + tabTitle = qsTr("New Tab") } return Utils.escapeHtml(tabTitle); @@ -51,8 +49,7 @@ QQC1.TabView { function createDownloadTab(profile) { var tab = addTab("", tabComponent); tab.active = true; - //% "Downloads Page" - tab.title = qsTrId("downloads-page") + tab.title = qsTr("Downloads Page") tab.item.profile = profile tab.item.url = "status://downloads"; } diff --git a/ui/app/AppLayouts/Browser/panels/DownloadBar.qml b/ui/app/AppLayouts/Browser/panels/DownloadBar.qml index d1006b4242..33a89f28c9 100644 --- a/ui/app/AppLayouts/Browser/panels/DownloadBar.qml +++ b/ui/app/AppLayouts/Browser/panels/DownloadBar.qml @@ -59,12 +59,10 @@ Rectangle { primaryText: downloadFileName downloadText: { if (isCanceled) { - //% "Cancelled" - return qsTrId("cancelled") + return qsTr("Cancelled") } if (isPaused) { - //% "Paused" - return qsTrId("paused") + return qsTr("Paused") } return `${downloadsModel.downloads[index] ? (downloadsModel.downloads[index].receivedBytes / 1000000).toFixed(2) : 0}/${downloadsModel.downloads[index] ? (downloadsModel.downloads[index].totalBytes / 1000000).toFixed(2) : 0} MB` //"14.4/109 MB, 26 sec left" } @@ -97,8 +95,7 @@ Rectangle { StatusButton { id: showAllBtn size: StatusBaseButton.Size.Small - //% "Show All" - text: qsTrId("show-all") + text: qsTr("Show All") anchors.verticalCenter: parent.verticalCenter anchors.right: closeBtn.left anchors.rightMargin: Style.current.padding diff --git a/ui/app/AppLayouts/Browser/panels/DownloadView.qml b/ui/app/AppLayouts/Browser/panels/DownloadView.qml index 3e07238632..f7f8db52de 100644 --- a/ui/app/AppLayouts/Browser/panels/DownloadView.qml +++ b/ui/app/AppLayouts/Browser/panels/DownloadView.qml @@ -34,12 +34,10 @@ import "../controls" primaryText: downloadFileName downloadText: { if (isCanceled) { - //% "Cancelled" - return qsTrId("cancelled") + return qsTr("Cancelled") } if (isPaused) { - //% "Paused" - return qsTrId("paused") + return qsTr("Paused") } return `${downloadsModel.downloads[index] ? (downloadsModel.downloads[index].receivedBytes / 1000000).toFixed(2) : 0}/${downloadsModel.downloads[index] ? (downloadsModel.downloads[index].totalBytes / 1000000).toFixed(2) : 0} MB` //"14.4/109 MB, 26 sec left" } @@ -73,8 +71,7 @@ import "../controls" anchors.horizontalCenter: parent.horizontalCenter anchors.verticalCenter: parent.verticalCenter font.pixelSize: 15 - //% "Downloaded files will appear here." - text: qsTrId("downloaded-files-will-appear-here-") + text: qsTr("Downloaded files will appear here.") color: Style.current.secondaryText } } diff --git a/ui/app/AppLayouts/Browser/popups/AddFavoriteModal.qml b/ui/app/AppLayouts/Browser/popups/AddFavoriteModal.qml index 8bda917cdb..a3f668e3be 100644 --- a/ui/app/AppLayouts/Browser/popups/AddFavoriteModal.qml +++ b/ui/app/AppLayouts/Browser/popups/AddFavoriteModal.qml @@ -67,12 +67,9 @@ ModalPopup { title: modifiyModal ? toolbarMode ? - //% "Favorite added" - qsTrId("favorite-added") : - //% "Edit" - qsTrId("edit") - //% "Add favorite" - : qsTrId("add-favorite") + qsTr("Favorite added") : + qsTr("Edit") + : qsTr("Add favorite") Column { width: parent.width @@ -132,8 +129,7 @@ ModalPopup { anchors.right: addBtn.left anchors.rightMargin: Style.current.padding visible: popup.modifiyModal - //% "Remove" - text: qsTrId("remove") + text: qsTr("Remove") anchors.bottom: parent.bottom type: StatusBaseButton.Type.Danger onClicked: { @@ -147,10 +143,8 @@ ModalPopup { anchors.right: parent.right anchors.rightMargin: Style.current.smallPadding text: popup.modifiyModal ? - //% "Done" - qsTrId("done") : - //% "Add" - qsTrId("add") + qsTr("Done") : + qsTr("Add") anchors.bottom: parent.bottom enabled: nameInput.valid && !!nameInput.text && urlInput.valid && !!urlInput.text onClicked: { diff --git a/ui/app/AppLayouts/Browser/popups/BrowserConnectionModal.qml b/ui/app/AppLayouts/Browser/popups/BrowserConnectionModal.qml index 8dce5977fb..8b1981612c 100644 --- a/ui/app/AppLayouts/Browser/popups/BrowserConnectionModal.qml +++ b/ui/app/AppLayouts/Browser/popups/BrowserConnectionModal.qml @@ -94,8 +94,7 @@ StatusModal { StatusBaseText { id: titleText - //% "'%1' would like to connect to" - text: qsTrId("--1--would-like-to-connect-to").arg(request.title) + text: qsTr("'%1' would like to connect to").arg(request.title) wrapMode: Text.WordWrap font.weight: Font.Bold font.pixelSize: 17 @@ -140,10 +139,8 @@ StatusModal { id: infoText text: { switch(request.permission){ - //% "Allowing authorizes this DApp to retrieve your wallet address and enable Web3" - case Constants.permission_web3: return qsTrId("allowing-authorizes-this-dapp"); - //% "Granting access authorizes this DApp to retrieve your chat key" - case Constants.permission_contactCode: return qsTrId("your-contact-code"); + case Constants.permission_web3: return qsTr("Allowing authorizes this DApp to retrieve your wallet address and enable Web3"); + case Constants.permission_contactCode: return qsTr("Granting access authorizes this DApp to retrieve your chat key"); default: return qsTr("Unknown permission: " + request.permission); } } @@ -163,8 +160,7 @@ StatusModal { StatusButton { type: StatusBaseButton.Type.Danger width: 151 - //% "Deny" - text: qsTrId("deny") + text: qsTr("Deny") onClicked: { postMessage(false); browserConnectionModal.close(); @@ -175,8 +171,7 @@ StatusModal { normalColor: Utils.setColorAlpha(Style.current.success, 0.1) textColor: Style.current.success width: 151 - //% "Allow" - text: qsTrId("allow") + text: qsTr("Allow") onClicked: { postMessage(true); browserConnectionModal.close(); diff --git a/ui/app/AppLayouts/Browser/popups/BrowserSettingsMenu.qml b/ui/app/AppLayouts/Browser/popups/BrowserSettingsMenu.qml index 6379389e00..3217d9184e 100644 --- a/ui/app/AppLayouts/Browser/popups/BrowserSettingsMenu.qml +++ b/ui/app/AppLayouts/Browser/popups/BrowserSettingsMenu.qml @@ -27,8 +27,7 @@ PopupMenu { closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutsideParent Action { - //% "New Tab" - text: qsTrId("new-tab") + text: qsTr("New Tab") shortcut: StandardKey.AddTab onTriggered: addNewTab() } @@ -37,10 +36,8 @@ PopupMenu { id: offTheRecordEnabled // TODO show an indicator on the browser or tab? text: checked ? - //% "Exit Incognito mode" - qsTrId("exit-incognito-mode") : - //% "Go Incognito" - qsTrId("go-incognito") + qsTr("Exit Incognito mode") : + qsTr("Go Incognito") checkable: true checked: isIncognito onToggled: goIncognito(checked) @@ -50,15 +47,13 @@ PopupMenu { // TODO find a way to put both in one button Action { - //% "Zoom In" - text: qsTrId("zoom-in") + text: qsTr("Zoom In") shortcut: StandardKey.ZoomIn onTriggered: zoomIn() } Action { - //% "Zoom Out" - text: qsTrId("zoom-out") + text: qsTr("Zoom Out") shortcut: StandardKey.ZoomOut onTriggered: zoomOut() } @@ -71,23 +66,20 @@ PopupMenu { Separator {} Action { - //% "Find" - text: qsTrId("find") + text: qsTr("Find") shortcut: StandardKey.Find onTriggered: launchFindBar() } Action { - //% "Compatibility mode" - text: qsTrId("compatibility-mode") + text: qsTr("Compatibility mode") checkable: true checked: true onToggled: toggleCompatibilityMode(checked) } Action { - //% "Developer Tools" - text: qsTrId("developer-tools") + text: qsTr("Developer Tools") shortcut: "F12" onTriggered: { localAccountSensitiveSettings.devToolsEnabled = !localAccountSensitiveSettings.devToolsEnabled @@ -97,8 +89,7 @@ PopupMenu { Separator {} Action { - //% "Settings" - text: qsTrId("settings") + text: qsTr("Settings") shortcut: "Ctrl+," onTriggered: launchBrowserSettings() } diff --git a/ui/app/AppLayouts/Browser/popups/BrowserWalletMenu.qml b/ui/app/AppLayouts/Browser/popups/BrowserWalletMenu.qml index 89dbf6b7e5..80e3a64ee0 100644 --- a/ui/app/AppLayouts/Browser/popups/BrowserWalletMenu.qml +++ b/ui/app/AppLayouts/Browser/popups/BrowserWalletMenu.qml @@ -73,7 +73,7 @@ Popup { switch (Web3ProviderStore.chainName) { case Constants.networkMainnet: return qsTr("Mainnet"); case Constants.networkRopsten: return qsTr("Ropsten"); - default: return qsTrId("Unknown") + default: return qsTr("Unknown") } } font.pixelSize: 15 @@ -190,7 +190,7 @@ Popup { StatusTabButton { id: historyBtn width: implicitWidth - text: qsTrId("History") + text: qsTr("History") } } diff --git a/ui/app/AppLayouts/Browser/popups/DownloadMenu.qml b/ui/app/AppLayouts/Browser/popups/DownloadMenu.qml index fae6e1ab00..f006bfb827 100644 --- a/ui/app/AppLayouts/Browser/popups/DownloadMenu.qml +++ b/ui/app/AppLayouts/Browser/popups/DownloadMenu.qml @@ -23,16 +23,14 @@ PopupMenu { icon.source: Style.svg("browser/file") icon.width: 16 icon.height: 16 - //% "Open" - text: qsTrId("open") + text: qsTr("Open") onTriggered: DownloadsStore.openFile(index) } Action { icon.source: Style.svg("add_watch_only") icon.width: 13 icon.height: 9 - //% "Show in folder" - text: qsTrId("show-in-folder") + text: qsTr("Show in folder") onTriggered: DownloadsStore.openDirectory(index) } Action { @@ -40,8 +38,7 @@ PopupMenu { icon.source: Style.svg("browser/pause") icon.width: 16 icon.height: 16 - //% "Pause" - text: qsTrId("pause") + text: qsTr("Pause") onTriggered: { download.pause() } @@ -51,8 +48,7 @@ PopupMenu { icon.source: Style.svg("browser/play") icon.width: 16 icon.height: 16 - //% "Resume" - text: qsTrId("resume") + text: qsTr("Resume") onTriggered: { download.resume() } @@ -65,8 +61,7 @@ PopupMenu { icon.source: Style.svg("block-icon") icon.width: 13 icon.height: 13 - //% "Cancel" - text: qsTrId("browsing-cancel") + text: qsTr("Cancel") onTriggered: { download.cancel() cancelClicked() diff --git a/ui/app/AppLayouts/Browser/popups/FavoriteMenu.qml b/ui/app/AppLayouts/Browser/popups/FavoriteMenu.qml index 77033c1ad5..9124b93825 100644 --- a/ui/app/AppLayouts/Browser/popups/FavoriteMenu.qml +++ b/ui/app/AppLayouts/Browser/popups/FavoriteMenu.qml @@ -21,8 +21,7 @@ PopupMenu { closePolicy: Popup.CloseOnEscape | Popup.CloseOnPressOutside Action { - //% "Open in new Tab" - text: qsTrId("open-in-new-tab") + text: qsTr("Open in new Tab") icon.source: Style.svg("generate_account") icon.width: 16 icon.height: 16 @@ -34,8 +33,7 @@ PopupMenu { Separator {} Action { - //% "Edit" - text: qsTrId("edit") + text: qsTr("Edit") icon.source: Style.svg("edit") icon.width: 16 icon.height: 16 @@ -47,8 +45,7 @@ PopupMenu { } Action { - //% "Remove" - text: qsTrId("remove") + text: qsTr("Remove") icon.source: Style.svg("remove") icon.color: Style.current.danger icon.width: 16 diff --git a/ui/app/AppLayouts/Browser/popups/JSDialogWindow.qml b/ui/app/AppLayouts/Browser/popups/JSDialogWindow.qml index 7352b22034..b56a0b5a39 100644 --- a/ui/app/AppLayouts/Browser/popups/JSDialogWindow.qml +++ b/ui/app/AppLayouts/Browser/popups/JSDialogWindow.qml @@ -63,8 +63,7 @@ ModalPopup { StatusButton { id: okButton anchors.right: parent.right - //% "Ok" - text: qsTrId("ok") + text: qsTr("Ok") anchors.bottom: parent.bottom onClicked: { request.dialogAccept(prompt.text); @@ -76,8 +75,7 @@ ModalPopup { id: cancelButton anchors.right: okButton.left anchors.rightMargin: Style.current.smallPadding - //% "Cancel" - text: qsTrId("browsing-cancel") + text: qsTr("Cancel") anchors.bottom: parent.bottom onClicked: { request.dialogReject(); diff --git a/ui/app/AppLayouts/Browser/popups/SignMessageModal.qml b/ui/app/AppLayouts/Browser/popups/SignMessageModal.qml index 9fe68f619c..81f1351611 100644 --- a/ui/app/AppLayouts/Browser/popups/SignMessageModal.qml +++ b/ui/app/AppLayouts/Browser/popups/SignMessageModal.qml @@ -34,8 +34,7 @@ StatusModal { anchors.centerIn: parent id: root - //% "Signature request" - header.title: qsTrId("signature-request") + header.title: qsTr("Signature request") height: 504 onClosed: { @@ -96,8 +95,7 @@ StatusModal { anchors.leftMargin: Style.current.padding LabelValueRow { - //% "From" - label: qsTrId("from") + label: qsTr("From") value: Item { id: itmFromValue anchors.fill: parent @@ -139,8 +137,7 @@ StatusModal { } LabelValueRow { - //% "Data" - label: qsTrId("data") + label: qsTr("Data") value: Item { anchors.fill: parent anchors.verticalCenter: parent.verticalCenter @@ -148,8 +145,7 @@ StatusModal { // TODO; replace with StatusModal ModalPopup { id: messagePopup - //% "Message" - title: qsTrId("message") + title: qsTr("Message") height: 286 width: 400 Item { @@ -212,8 +208,7 @@ StatusModal { leftButtons: [ StatusFlatButton { id: btnReject - //% "Reject" - text: qsTrId("reject") + text: qsTr("Reject") type: StatusBaseButton.Type.Danger onClicked: close() } @@ -223,10 +218,8 @@ StatusModal { StatusButton { id: btnNext text: showSigningPhrase ? - //% "Sign" - qsTrId("transactions-sign") : - //% "Sign with password" - qsTrId("sign-with-password") + qsTr("Sign") : + qsTr("Sign with password") onClicked: { if(!showSigningPhrase){ showSigningPhrase = true; diff --git a/ui/app/AppLayouts/Chat/controls/Contact.qml b/ui/app/AppLayouts/Chat/controls/Contact.qml index 9b7a050221..7d4bfcef41 100644 --- a/ui/app/AppLayouts/Chat/controls/Contact.qml +++ b/ui/app/AppLayouts/Chat/controls/Contact.qml @@ -79,8 +79,7 @@ Rectangle { StyledText { visible: isUser - //% "Admin" - text: qsTrId("group-chat-admin") + text: qsTr("Admin") anchors.right: parent.right anchors.rightMargin: Style.current.padding font.pixelSize: 15 diff --git a/ui/app/AppLayouts/Chat/panels/ActivityCenterPopupTopBarPanel.qml b/ui/app/AppLayouts/Chat/panels/ActivityCenterPopupTopBarPanel.qml index f932e375ea..12337495d6 100644 --- a/ui/app/AppLayouts/Chat/panels/ActivityCenterPopupTopBarPanel.qml +++ b/ui/app/AppLayouts/Chat/panels/ActivityCenterPopupTopBarPanel.qml @@ -37,8 +37,7 @@ Item { StatusFlatButton { id: allBtn - //% "All" - text: qsTrId("all") + text: qsTr("All") size: StatusBaseButton.Size.Small highlighted: root.allBtnHighlighted onClicked: root.allBtnClicked(); @@ -46,8 +45,7 @@ Item { StatusFlatButton { id: mentionsBtn - //% "Mentions" - text: qsTrId("mentions") + text: qsTr("Mentions") enabled: hasMentions size: StatusBaseButton.Size.Small highlighted: root.mentionsBtnHighlighted @@ -58,8 +56,7 @@ Item { StatusFlatButton { id: repliesbtn - //% "Replies" - text: qsTrId("replies") + text: qsTr("Replies") enabled: hasReplies size: StatusBaseButton.Size.Small highlighted: root.repliesBtnHighlighted @@ -71,7 +68,7 @@ Item { // StatusFlatButton { // id: contactRequestsBtn // //% "Contact requests" -// text: qsTrId("contact-requests") +// text: qsTr("Replies") // enabled: hasContactRequests // size: StatusBaseButton.Size.Small // highlighted: activityCenter.currentFilter === ActivityCenter.Filter.ContactRequests @@ -96,8 +93,7 @@ Item { StatusToolTip { visible: markAllReadBtn.hovered - //% "Mark all as Read" - text: qsTrId("mark-all-as-read") + text: qsTr("Mark all as Read") } } @@ -118,17 +114,14 @@ Item { StatusMenuItem { icon.name: "hide" text: hideReadNotifications ? - //% "Show read notifications" - qsTrId("show-read-notifications") : - //% "Hide read notifications" - qsTrId("hide-read-notifications") + qsTr("Show read notifications") : + qsTr("Hide read notifications") onTriggered: hideReadNotifications = !hideReadNotifications } StatusMenuItem { icon.name: "notification" - //% "Notification settings" - text: qsTrId("chat-notification-preferences") + text: qsTr("Notification settings") onTriggered: { root.preferencesClicked(); } diff --git a/ui/app/AppLayouts/Chat/panels/ChatRequestMessagePanel.qml b/ui/app/AppLayouts/Chat/panels/ChatRequestMessagePanel.qml index 4619f243be..1177671261 100644 --- a/ui/app/AppLayouts/Chat/panels/ChatRequestMessagePanel.qml +++ b/ui/app/AppLayouts/Chat/panels/ChatRequestMessagePanel.qml @@ -25,12 +25,9 @@ Item { StatusBaseText { id: contactText1 - //% "You need to be mutual contacts with this person for them to receive your messages" - text: qsTrId("you-need-to-be-mutual-contacts-with-this-person-for-them-to-receive-your-messages") - //% "You need to be mutual contacts with this person for them to receive your messages" - // text: !isContact ? qsTrId("you-need-to-be-mutual-contacts-with-this-person-for-them-to-receive-your-messages") : - //% "Waiting for %1 to accept your request" - // qsTrId("waiting-for--1-to-accept-your-request").arg(Utils.removeStatusEns(chatsModel.channelView.activeChannel.name)) + text: qsTr("You need to be mutual contacts with this person for them to receive your messages") + // text: !isContact ? qsTr("You need to be mutual contacts with this person for them to receive your messages") : + // qsTr("Waiting for %1 to accept your request").arg(Utils.removeStatusEns(chatsModel.channelView.activeChannel.name)) anchors.top: waveImg.bottom horizontalAlignment: Text.AlignHCenter wrapMode: Text.WordWrap @@ -43,8 +40,7 @@ Item { StatusBaseText { id: contactText2 visible: !isContact - //% "Just click this button to add them as contact. They will receive a notification. Once they accept the request, you'll be able to chat" - text: qsTrId("just-click-this-button-to-add-them-as-contact--they-will-receive-a-notification--once-they-accept-the-request--you-ll-be-able-to-chat") + text: qsTr("Just click this button to add them as contact. They will receive a notification. Once they accept the request, you'll be able to chat") horizontalAlignment: Text.AlignHCenter wrapMode: Text.WordWrap anchors.top: contactText1.bottom @@ -56,8 +52,7 @@ Item { StatusButton { visible: !isContact - //% "Add to contacts" - text: qsTrId("add-to-contacts") + text: qsTr("Add to contacts") anchors.top: contactText2.bottom anchors.topMargin: Style.current.smallPadding anchors.horizontalCenter: parent.horizontalCenter diff --git a/ui/app/AppLayouts/Chat/panels/ClosedEmptyPanel.qml b/ui/app/AppLayouts/Chat/panels/ClosedEmptyPanel.qml index 46e2a37c9c..1ef4f7f32a 100644 --- a/ui/app/AppLayouts/Chat/panels/ClosedEmptyPanel.qml +++ b/ui/app/AppLayouts/Chat/panels/ClosedEmptyPanel.qml @@ -13,8 +13,7 @@ Item { Layout.fillWidth: true StyledText { - //% "Your chats will appear here. To start new chats press the  button at the top" - text: qsTrId("your-chats-will-appear-here--to-start-new-chats-press-the---button-at-the-top") + text: qsTr("Your chats will appear here. To start new chats press the  button at the top") anchors.verticalCenterOffset: -80 horizontalAlignment: Text.AlignHCenter wrapMode: Text.WordWrap diff --git a/ui/app/AppLayouts/Chat/panels/EmptyChatPanel.qml b/ui/app/AppLayouts/Chat/panels/EmptyChatPanel.qml index 805bb23a03..da0d9314d5 100644 --- a/ui/app/AppLayouts/Chat/panels/EmptyChatPanel.qml +++ b/ui/app/AppLayouts/Chat/panels/EmptyChatPanel.qml @@ -32,8 +32,7 @@ Item { StyledText { id: shareKeyLink - //% "Share your chat key" - text: qsTrId("share-your-chat-key") + text: qsTr("Share your chat key") font.pixelSize: 15 color: Style.current.blue @@ -53,8 +52,7 @@ Item { StyledText { id: orText - //% "or" - text: qsTrId("or") + text: qsTr("or") font.pixelSize: 15 color: Style.current.secondaryText anchors.left: shareKeyLink.right @@ -64,8 +62,7 @@ Item { StyledText { id: inviteLink - //% "invite" - text: qsTrId("invite") + text: qsTr("invite") font.pixelSize: 15 color: Style.current.blue anchors.left: orText.right @@ -90,8 +87,7 @@ Item { } StyledText { - //% "friends to start messaging in Status" - text: qsTrId("friends-to-start-messaging-in-status") + text: qsTr("friends to start messaging in Status") font.pixelSize: 15 color: Style.current.secondaryText anchors.horizontalCenter: walkieTalkieImage.horizontalCenter diff --git a/ui/app/AppLayouts/Chat/panels/EmptyViewPanel.qml b/ui/app/AppLayouts/Chat/panels/EmptyViewPanel.qml index f4e36b7eec..03fd2b3ab7 100644 --- a/ui/app/AppLayouts/Chat/panels/EmptyViewPanel.qml +++ b/ui/app/AppLayouts/Chat/panels/EmptyViewPanel.qml @@ -73,8 +73,7 @@ Rectangle { StatusBaseText { id: chatAndTransactText - //% "Chat and transact privately with your friends" - text: qsTrId("chat-and-transact-privately-with-your-friends") + text: qsTr("Chat and transact privately with your friends") anchors.top: parent.top anchors.topMargin: 56 horizontalAlignment: Text.AlignHCenter @@ -88,8 +87,7 @@ Rectangle { } StatusQControls.StatusButton { - //% "Invite friends" - text: qsTrId("invite-friends") + text: qsTr("Invite friends") anchors.horizontalCenter: parent.horizontalCenter anchors.bottom: parent.bottom anchors.bottomMargin: Style.current.xlPadding @@ -130,8 +128,7 @@ Rectangle { StatusBaseText { id: suggestionsText width: parent.width - //% "Follow your interests in one of the many Public Chats." - text: qsTrId("follow-your-interests-in-one-of-the-many-public-chats.") + text: qsTr("Follow your interests in one of the many Public Chats.") anchors.top: parent.top anchors.topMargin: Style.current.xlPadding font.pointSize: 15 diff --git a/ui/app/AppLayouts/Chat/panels/communities/BackUpCommuntyBannerPanel.qml b/ui/app/AppLayouts/Chat/panels/communities/BackUpCommuntyBannerPanel.qml index 0dd3d21e30..9a943f8922 100644 --- a/ui/app/AppLayouts/Chat/panels/communities/BackUpCommuntyBannerPanel.qml +++ b/ui/app/AppLayouts/Chat/panels/communities/BackUpCommuntyBannerPanel.qml @@ -64,8 +64,7 @@ Rectangle { StatusBaseText { id: backUpText - //% "Back up community key" - text: qsTrId("back-up-community-key") + text: qsTr("Back up community key") anchors.top: parent.top anchors.topMargin: 48 horizontalAlignment: Text.AlignHCenter @@ -80,8 +79,7 @@ Rectangle { StatusButton { id: backUpBtn - //% "Back up" - text: qsTrId("back-up") + text: qsTr("Back up") anchors.horizontalCenter: parent.horizontalCenter anchors.top: backUpText.bottom anchors.topMargin: Style.current.padding diff --git a/ui/app/AppLayouts/Chat/panels/communities/CommunityChannelsAndCategoriesBannerPanel.qml b/ui/app/AppLayouts/Chat/panels/communities/CommunityChannelsAndCategoriesBannerPanel.qml index 245a42756e..7187e09db7 100644 --- a/ui/app/AppLayouts/Chat/panels/communities/CommunityChannelsAndCategoriesBannerPanel.qml +++ b/ui/app/AppLayouts/Chat/panels/communities/CommunityChannelsAndCategoriesBannerPanel.qml @@ -82,7 +82,7 @@ Rectangle { StatusButton { id: addMembersBtn - text: qsTrId("Add channels") + text: qsTr("Add channels") anchors.horizontalCenter: parent.horizontalCenter anchors.top: descriptionText.bottom anchors.topMargin: Style.current.padding diff --git a/ui/app/AppLayouts/Chat/panels/communities/CommunityMembersSettingsPanel.qml b/ui/app/AppLayouts/Chat/panels/communities/CommunityMembersSettingsPanel.qml index e67329e5df..f4ab65cc14 100644 --- a/ui/app/AppLayouts/Chat/panels/communities/CommunityMembersSettingsPanel.qml +++ b/ui/app/AppLayouts/Chat/panels/communities/CommunityMembersSettingsPanel.qml @@ -47,8 +47,7 @@ SettingsPageLayout { Layout.fillWidth: true visible: root.editable && root.pendingRequests > 0 - //% "Membership requests" - title: qsTrId("membership-requests") + title: qsTr("Membership requests") requestsCount: root.pendingRequests sensor.onClicked: root.membershipRequestsClicked() } @@ -65,8 +64,7 @@ SettingsPageLayout { Layout.alignment: Qt.AlignHCenter visible: memberList.count === 0 - //% "Community members will appear here" - text: qsTrId("community-members-will-appear-here") + text: qsTr("Community members will appear here") font.pixelSize: 15 color: Theme.palette.baseColor1 } @@ -75,8 +73,7 @@ SettingsPageLayout { Layout.alignment: Qt.AlignHCenter visible: !!memberSearch.input.text && memberList.height == 0 - //% "No contacts found" - text: qsTrId("no-contacts-found") + text: qsTr("No contacts found") font.pixelSize: 15 color: Theme.palette.baseColor1 } @@ -105,8 +102,7 @@ SettingsPageLayout { title: { if (memberItem.itsMe) { - //% "You" - return qsTrId("You") + return qsTr("You") } return !model.displayName.endsWith(".eth") ? model.displayName : Utils.removeStatusEns(model.displayName) } diff --git a/ui/app/AppLayouts/Chat/panels/communities/CommunityProfilePopupInviteFriendsPanel.qml b/ui/app/AppLayouts/Chat/panels/communities/CommunityProfilePopupInviteFriendsPanel.qml index 7c29013bf0..d6e8df0a7d 100644 --- a/ui/app/AppLayouts/Chat/panels/communities/CommunityProfilePopupInviteFriendsPanel.qml +++ b/ui/app/AppLayouts/Chat/panels/communities/CommunityProfilePopupInviteFriendsPanel.qml @@ -23,8 +23,7 @@ Column { property alias contactListSearch: contactFieldAndList StatusDescriptionListItem { - //% "Share community" - title: qsTrId("share-community") + title: qsTr("Share community") subTitle: `${Constants.communityLinkPrefix}${root.community && root.community.id.substring(0, 4)}...${root.community && root.community.id.substring(root.community.id.length -2)}` tooltip.text: qsTr("Copied!") icon.name: "copy" diff --git a/ui/app/AppLayouts/Chat/panels/communities/CommunityProfilePopupOverviewPanel.qml b/ui/app/AppLayouts/Chat/panels/communities/CommunityProfilePopupOverviewPanel.qml index 080618f79a..98286bc783 100644 --- a/ui/app/AppLayouts/Chat/panels/communities/CommunityProfilePopupOverviewPanel.qml +++ b/ui/app/AppLayouts/Chat/panels/communities/CommunityProfilePopupOverviewPanel.qml @@ -45,8 +45,7 @@ Column { } StatusDescriptionListItem { - //% "Share community" - title: qsTrId("share-community") + title: qsTr("Share community") subTitle: `${Constants.communityLinkPrefix}${root.community.id.substring(0, 4)}...${root.community.id.substring(root.community.id.length -2)}` tooltip.text: qsTr("Copied!") icon.name: "copy" @@ -66,8 +65,7 @@ Column { StatusListItem { anchors.horizontalCenter: parent.horizontalCenter visible: root.community.amISectionAdmin - //% "Transfer ownership" - title: qsTrId("transfer-ownership") + title: qsTr("Transfer ownership") icon.name: "exchange" type: StatusListItem.Type.Secondary sensor.onClicked: root.transferOwnershipButtonClicked() @@ -75,8 +73,7 @@ Column { StatusListItem { anchors.horizontalCenter: parent.horizontalCenter - //% "Leave community" - title: qsTrId("leave-community") + title: qsTr("Leave community") icon.name: "arrow-right" icon.height: 16 icon.width: 20 @@ -85,13 +82,12 @@ Column { sensor.onClicked: root.leaveButtonClicked() } - //% "Roles" /* // TODO add this back when roles exist */ /* // Loader { */ /* // active: root.community.isAdmin */ /* // width: parent.width */ /* // sourceComponent: CommunityPopupButton { */ -/* // label: qsTrId("community-roles") */ +/* // label: qsTr("Roles") */ /* // iconName: "roles" */ /* // width: parent.width */ /* // onClicked: console.log("TODO:") */ diff --git a/ui/app/AppLayouts/Chat/panels/communities/CommunityWelcomeBannerPanel.qml b/ui/app/AppLayouts/Chat/panels/communities/CommunityWelcomeBannerPanel.qml index 2b80970b6d..2f2747b177 100644 --- a/ui/app/AppLayouts/Chat/panels/communities/CommunityWelcomeBannerPanel.qml +++ b/ui/app/AppLayouts/Chat/panels/communities/CommunityWelcomeBannerPanel.qml @@ -81,8 +81,7 @@ Rectangle { StatusBaseText { id: welcomeText - //% "Welcome to your community!" - text: qsTrId("welcome-to-your-community-") + text: qsTr("Welcome to your community!") anchors.top: parent.top anchors.topMargin: 60 horizontalAlignment: Text.AlignHCenter @@ -97,8 +96,7 @@ Rectangle { StatusQControls.StatusButton { id: addMembersBtn - //% "Add members" - text: qsTrId("add-members") + text: qsTr("Add members") anchors.horizontalCenter: parent.horizontalCenter anchors.bottom: manageBtn.top anchors.bottomMargin: Style.current.halfPadding @@ -111,8 +109,7 @@ Rectangle { StatusQControls.StatusFlatButton { id: manageBtn - //% "Manage community" - text: qsTrId("manage-community") + text: qsTr("Manage community") anchors.horizontalCenter: parent.horizontalCenter anchors.bottom: parent.bottom anchors.bottomMargin: Style.current.padding diff --git a/ui/app/AppLayouts/Chat/popups/ActivityCenterPopup.qml b/ui/app/AppLayouts/Chat/popups/ActivityCenterPopup.qml index fc5a12582c..065ff87518 100644 --- a/ui/app/AppLayouts/Chat/popups/ActivityCenterPopup.qml +++ b/ui/app/AppLayouts/Chat/popups/ActivityCenterPopup.qml @@ -241,8 +241,7 @@ Popup { height: visible ? showMoreBtn.height + showMoreBtn.anchors.topMargin : 0 StatusButton { id: showMoreBtn - //% "Show more" - text: qsTrId("show-more") + text: qsTr("Show more") anchors.horizontalCenter: parent.horizontalCenter anchors.top: parent.top anchors.topMargin: Style.current.smallPadding diff --git a/ui/app/AppLayouts/Chat/popups/ChatCommandModal.qml b/ui/app/AppLayouts/Chat/popups/ChatCommandModal.qml index 3a14b897b7..f48995b17a 100644 --- a/ui/app/AppLayouts/Chat/popups/ChatCommandModal.qml +++ b/ui/app/AppLayouts/Chat/popups/ChatCommandModal.qml @@ -48,8 +48,7 @@ StatusModal { TransactionFormGroup { id: group1 headerText: root.commandTitle - //% "Continue" - footerText: qsTrId("continue") + footerText: qsTr("Continue") StatusAccountSelector { id: selectFromAccount @@ -65,10 +64,8 @@ StatusModal { width: stack.width label: { return root.isRequested ? - //% "Receive on account" - qsTrId("receive-on-account") : - //% "From account" - qsTrId("from-account") + qsTr("Receive on account") : + qsTr("From account") } } SeparatorWithIcon { @@ -83,8 +80,7 @@ StatusModal { anchors.right: selectRecipient.right anchors.bottom: selectRecipient.top anchors.bottomMargin: -Style.current.padding - //% "Address request required" - text: qsTrId("address-request-required") + text: qsTr("Address request required") color: Theme.palette.dangerColor1 visible: addressRequiredValidator.isWarn } @@ -94,10 +90,8 @@ StatusModal { accounts: root.store.accounts contactsStore: root.contactsStore label: root.isRequested ? - //% "From" - qsTrId("from") : - //% "To" - qsTrId("to") + qsTr("From") : + qsTr("To") anchors.top: separator.bottom anchors.topMargin: 10 width: stack.width @@ -109,8 +103,7 @@ StatusModal { TransactionFormGroup { id: group2 headerText: root.commandTitle - //% "Preview" - footerText: qsTrId("preview") + footerText: qsTr("Preview") AssetAndAmountInput { id: txtAmount @@ -126,10 +119,8 @@ StatusModal { TransactionFormGroup { id: group3 headerText: root.isRequested ? - //% "Preview" - qsTrId("preview") : - //% "Transaction preview" - qsTrId("transaction-preview") + qsTr("Preview") : + qsTr("Transaction preview") footerText: root.finalButtonLabel TransactionPreview { @@ -168,8 +159,7 @@ StatusModal { rightButtons: [ StatusButton { id: btnNext - //% "Next" - text: qsTrId("next") + text: qsTr("Next") enabled: stack.currentGroup.isValid && !stack.currentGroup.isPending onClicked: { const validity = stack.currentGroup.validate() diff --git a/ui/app/AppLayouts/Chat/popups/ChooseBrowserPopup.qml b/ui/app/AppLayouts/Chat/popups/ChooseBrowserPopup.qml index 04fef36bbe..ecb258c9c7 100644 --- a/ui/app/AppLayouts/Chat/popups/ChooseBrowserPopup.qml +++ b/ui/app/AppLayouts/Chat/popups/ChooseBrowserPopup.qml @@ -12,8 +12,7 @@ StatusModal { id: popup anchors.centerIn: parent - //% "Choose browser" - header.title: qsTrId("choose-browser") + header.title: qsTr("Choose browser") width: 440 contentItem: Column { @@ -29,8 +28,7 @@ StatusModal { } StatusButton { - //% "Open in Status" - text: qsTrId("browsing-open-in-status") + text: qsTr("Open in Status") anchors.horizontalCenter: parent.horizontalCenter onClicked: { localAccountSensitiveSettings.showBrowserSelector = !rememberChoiceCheckBox.checked @@ -44,8 +42,7 @@ StatusModal { } StatusFlatButton { - //% "Open in my default browser" - text: qsTrId("open-in-my-default-browser") + text: qsTr("Open in my default browser") anchors.horizontalCenter: parent.horizontalCenter onClicked: { localAccountSensitiveSettings.showBrowserSelector = !rememberChoiceCheckBox.checked @@ -60,8 +57,7 @@ StatusModal { StatusCheckBox { id: rememberChoiceCheckBox - //% "Remember my choice. To override it, go to settings." - text: qsTrId("remember-my-choice--to-override-it--go-to-settings-") + text: qsTr("Remember my choice. To override it, go to settings.") width: parent.width } } diff --git a/ui/app/AppLayouts/Chat/popups/ContactRequestsPopup.qml b/ui/app/AppLayouts/Chat/popups/ContactRequestsPopup.qml index b26b0a4451..52e79f9c6a 100644 --- a/ui/app/AppLayouts/Chat/popups/ContactRequestsPopup.qml +++ b/ui/app/AppLayouts/Chat/popups/ContactRequestsPopup.qml @@ -17,8 +17,7 @@ ModalPopup { property var store - //% "Contact requests" - title: qsTrId("contact-requests") + title: qsTr("Contact requests") ListView { id: contactList @@ -66,10 +65,8 @@ ModalPopup { ConfirmationDialog { id: declineAllDialog - //% "Decline all contacts" - header.title: qsTrId("decline-all-contacts") - //% "Are you sure you want to decline all these contact requests" - confirmationText: qsTrId("are-you-sure-you-want-to-decline-all-these-contact-requests") + header.title: qsTr("Decline all contacts") + confirmationText: qsTr("Are you sure you want to decline all these contact requests") onConfirmButtonClicked: { popup.store.dismissAllContactRequests() declineAllDialog.close() @@ -79,10 +76,8 @@ ModalPopup { ConfirmationDialog { id: acceptAllDialog - //% "Accept all contacts" - header.title: qsTrId("accept-all-contacts") - //% "Are you sure you want to accept all these contact requests" - confirmationText: qsTrId("are-you-sure-you-want-to-accept-all-these-contact-requests") + header.title: qsTr("Accept all contacts") + confirmationText: qsTr("Are you sure you want to accept all these contact requests") onConfirmButtonClicked: { popup.store.acceptAllContactRequests() acceptAllDialog.close() @@ -97,8 +92,7 @@ ModalPopup { anchors.rightMargin: Style.current.padding anchors.bottom: parent.bottom type: StatusBaseButton.Type.Danger - //% "Decline all" - text: qsTrId("decline-all") + text: qsTr("Decline all") onClicked: declineAllDialog.open() } @@ -106,8 +100,7 @@ ModalPopup { id: addToContactsButton enabled: contactList.count > 0 anchors.right: parent.right - //% "Accept all" - text: qsTrId("accept-all") + text: qsTr("Accept all") anchors.bottom: parent.bottom onClicked: acceptAllDialog.open() } diff --git a/ui/app/AppLayouts/Chat/popups/GroupInfoPopup.qml b/ui/app/AppLayouts/Chat/popups/GroupInfoPopup.qml index e62b3a6708..336cbb5bf1 100644 --- a/ui/app/AppLayouts/Chat/popups/GroupInfoPopup.qml +++ b/ui/app/AppLayouts/Chat/popups/GroupInfoPopup.qml @@ -55,18 +55,15 @@ StatusModal { height: 504 anchors.centerIn: parent - //% "Add members" - header.title: addMembers ? qsTrId("add-members") : (popup.chatDetails ? popup.chatDetails.name : "") + header.title: addMembers ? qsTr("Add members") : (popup.chatDetails ? popup.chatDetails.name : "") header.subTitle: { if (addMembers) { return qsTr("%1/%2 members").arg(memberCount).arg(maxMembers) } else { - //% "%1 members" if (currMemberCount > 1) { - return qsTrId("%1-members").arg(currMemberCount); + return qsTr("%1 members").arg(currMemberCount); } - //% "1 member" - return qsTrId("1-member"); + return qsTr("1 member"); } } header.editable: !addMembers && popup.isAdmin @@ -110,8 +107,7 @@ StatusModal { Layout.alignment: Qt.AlignTop implicitHeight: 36 - //% "Search" - placeholderText: qsTrId("search") + placeholderText: qsTr("Search") placeholderFont.pixelSize: 15 icon.name: "search" @@ -135,8 +131,7 @@ StatusModal { Layout.bottomMargin: childrenRect.height visible: chatSectionModule.listOfMyContacts.count === 0 - //% "All your contacts are already in the group" - text: qsTrId("group-chat-all-contacts-invited") + text: qsTr("All your contacts are already in the group") textColor: Style.current.textColor } @@ -175,8 +170,7 @@ StatusModal { id: pinnedMessagesBtn visible: pinnedCount > 0 - //% "Pinned messages" - text: qsTrId("pinned-messages") + text: qsTr("Pinned messages") currentValue: pinnedCount onClicked: { popup.store.messageStore.messageModule = popup.chatContentModule.messagesModule @@ -212,7 +206,7 @@ StatusModal { title: model.displayName statusListItemTitle.font.pixelSize: 17 statusListItemTitleAside.font.pixelSize: 17 - label: model.isAdmin ? qsTrId("group-chat-admin"): "" + label: model.isAdmin ? qsTr("Admin"): "" image.source: model.icon ringSettings.ringSpecModel: Utils.getColorHashAsJson(model.pubKey) icon: StatusIconSettings { @@ -240,8 +234,7 @@ StatusModal { icon.name: "admin" icon.width: 16 icon.height: 16 - //% "Make Admin" - text: qsTrId("make-admin") + text: qsTr("Make Admin") onTriggered: popup.chatSectionModule.makeAdmin("", popup.chatDetails.id, model.pubKey) } StatusMenuItem { @@ -249,8 +242,7 @@ StatusModal { icon.width: 16 icon.height: 16 type: StatusMenuItem.Type.Danger - //% "Remove From Group" - text: qsTrId("remove-from-group") + text: qsTr("Remove From Group") onTriggered: popup.chatSectionModule.removeMemberFromGroupChat("", popup.chatDetails.id, model.pubKey) } } @@ -280,8 +272,7 @@ StatusModal { rightButtons: [ StatusButton { visible: !popup.addMembers && popup.isAdmin - //% "Add members" - text: qsTrId("add-members") + text: qsTr("Add members") onClicked: { popup.addMembers = true; } @@ -290,8 +281,7 @@ StatusModal { id: btnSelectMembers visible: popup.addMembers enabled: popup.memberCount >= popup.currMemberCount - //% "Add selected" - text: qsTrId("add-selected") + text: qsTr("Add selected") onClicked: popup.doAddMembers() } ] diff --git a/ui/app/AppLayouts/Chat/popups/PinnedMessagesPopup.qml b/ui/app/AppLayouts/Chat/popups/PinnedMessagesPopup.qml index 33bc243974..25c9a43b0d 100644 --- a/ui/app/AppLayouts/Chat/popups/PinnedMessagesPopup.qml +++ b/ui/app/AppLayouts/Chat/popups/PinnedMessagesPopup.qml @@ -32,10 +32,8 @@ ModalPopup { StyledText { id: title - //% "Pin limit reached" - text: !!popup.messageToPin ? qsTrId("pin-limit-reached") : - //% "Pinned messages" - qsTrId("pinned-messages") + text: !!popup.messageToPin ? qsTr("Pin limit reached") : + qsTr("Pinned messages") anchors.top: parent.top anchors.left: parent.left font.bold: true @@ -48,14 +46,11 @@ ModalPopup { id: nbPinnedMessages text: { if (!!popup.messageToPin) { - //% "Unpin a previous message first" - return qsTrId("unpin-a-previous-message-first") + return qsTr("Unpin a previous message first") } - //% "%1 messages" - return nbMessages > 1 ? qsTrId("-1-messages").arg(nbMessages) : - //% "%1 message" - qsTrId("-1-message").arg(nbMessages) + return nbMessages > 1 ? qsTr("%1 messages").arg(nbMessages) : + qsTr("%1 message").arg(nbMessages) } anchors.left: parent.left anchors.top: title.bottom @@ -79,8 +74,7 @@ ModalPopup { StyledText { visible: pinnedMessageListView.count === 0 - //% "Pinned messages will appear here." - text: qsTrId("pinned-messages-will-appear-here-") + text: qsTr("Pinned messages will appear here.") anchors.centerIn: parent color: Style.current.secondaryText } @@ -206,8 +200,7 @@ ModalPopup { id: btnUnpin visible: !!popup.messageToPin enabled: !!popup.messageToUnpin - //% "Unpin" - text: qsTrId("unpin") + text: qsTr("Unpin") type: StatusQControls.StatusBaseButton.Type.Danger anchors.right: parent.right onClicked: { diff --git a/ui/app/AppLayouts/Chat/popups/PrivateChatPopup.qml b/ui/app/AppLayouts/Chat/popups/PrivateChatPopup.qml index bd42beb702..68b5f0046f 100644 --- a/ui/app/AppLayouts/Chat/popups/PrivateChatPopup.qml +++ b/ui/app/AppLayouts/Chat/popups/PrivateChatPopup.qml @@ -13,8 +13,7 @@ import "./" // TODO: replace with StatusModal ModalPopup { id: popup - //% "New chat" - title: qsTrId("new-chat") + title: qsTr("New chat") property var store property var contactsStore @@ -77,8 +76,7 @@ ModalPopup { anchors.left: dollarEmoji.right anchors.leftMargin: 6 anchors.verticalCenter: parent.verticalCenter - //% "My Profile" - text: qsTrId("my-profile") + text: qsTr("My Profile") font.pixelSize: 15 color: Style.current.white } diff --git a/ui/app/AppLayouts/Chat/popups/PublicChatPopup.qml b/ui/app/AppLayouts/Chat/popups/PublicChatPopup.qml index cae493c718..5773bffd1e 100644 --- a/ui/app/AppLayouts/Chat/popups/PublicChatPopup.qml +++ b/ui/app/AppLayouts/Chat/popups/PublicChatPopup.qml @@ -19,11 +19,9 @@ ModalPopup { signal suggestedMessageClicked(string channel) function validate() { if (channelName.text === "") { - //% "You need to enter a channel name" - channelNameValidationError = qsTrId("you-need-to-enter-a-channel-name") + channelNameValidationError = qsTr("You need to enter a channel name") } else if (!Utils.isValidChannelName(channelName.text)) { - //% "The channel name can only contain lowercase letters, numbers and dashes" - channelNameValidationError = qsTrId("the-channel-name-can-only-contain-lowercase-letters--numbers-and-dashes") + channelNameValidationError = qsTr("The channel name can only contain lowercase letters, numbers and dashes") } else { channelNameValidationError = "" } @@ -40,8 +38,7 @@ ModalPopup { } id: popup - //% "Join public chat" - title: qsTrId("new-public-group-chat") + title: qsTr("Join public chat") onOpened: { channelName.text = ""; @@ -57,8 +54,7 @@ ModalPopup { StyledText { width: parent.width font.pixelSize: 15 - //% "A public chat is where you get to hang out with others, make friends and talk about subjects of your interest." - text: qsTrId("a-public-chat-is-where-you-get-to-hang-out-with-others,-make-friends-and-talk-about-subjects-of-your-interest.") + text: qsTr("A public chat is where you get to hang out with others, make friends and talk about subjects of your interest.") wrapMode: Text.WordWrap verticalAlignment: Text.AlignTop } @@ -68,8 +64,7 @@ ModalPopup { id: channelName anchors.top: description.bottom anchors.topMargin: Style.current.padding - //% "chat-name" - placeholderText: qsTrId("chat-name") + placeholderText: qsTr("chat-name") Keys.onEnterPressed: doJoin() Keys.onReturnPressed: doJoin() icon: Style.svg("hash") @@ -111,7 +106,6 @@ ModalPopup { anchors.bottom: parent.bottom anchors.right: parent.right onClicked : doJoin() - //% "Start chat" - text: qsTrId("start-chat") + text: qsTr("Start chat") } } diff --git a/ui/app/AppLayouts/Chat/popups/RenameGroupPopup.qml b/ui/app/AppLayouts/Chat/popups/RenameGroupPopup.qml index 67197234be..7d31e1ea3e 100644 --- a/ui/app/AppLayouts/Chat/popups/RenameGroupPopup.qml +++ b/ui/app/AppLayouts/Chat/popups/RenameGroupPopup.qml @@ -14,8 +14,7 @@ StatusModal { height: 210 anchors.centerIn: parent - //% "Group name" - header.title: qsTrId("group-name") + header.title: qsTr("Group name") property string activeChannelName signal doRename(string groupName) @@ -36,8 +35,7 @@ StatusModal { anchors.rightMargin: Style.current.padding anchors.top: parent.top anchors.topMargin: Style.current.padding - //% "Group name" - placeholderText: qsTrId("group-name") + placeholderText: qsTr("Group name") Keys.onEnterPressed: doRename(groupName.text) Keys.onReturnPressed: doRename(groupName.text) } @@ -46,8 +44,7 @@ StatusModal { rightButtons: [ StatusButton { id: saveBtn - //% "Save" - text: qsTrId("save") + text: qsTr("Save") onClicked : { doRename(groupName.text) } } ] diff --git a/ui/app/AppLayouts/Chat/popups/community/CommunitiesPopup.qml b/ui/app/AppLayouts/Chat/popups/community/CommunitiesPopup.qml index 0c503e5229..a1394787a4 100644 --- a/ui/app/AppLayouts/Chat/popups/community/CommunitiesPopup.qml +++ b/ui/app/AppLayouts/Chat/popups/community/CommunitiesPopup.qml @@ -24,8 +24,7 @@ StatusModal { contentItem.searchBox.input.forceActiveFocus(Qt.MouseFocusReason) } - //% "Communities" - header.title: qsTrId("communities") + header.title: qsTr("Communities") headerActionButton: StatusFlatRoundButton { type: StatusFlatRoundButton.Type.Secondary width: 32 @@ -39,8 +38,7 @@ StatusModal { width: 230 StatusMenuItem { icon.name: "download" - //% "Access existing community" - text: qsTrId("access-existing-community") + text: qsTr("Access existing community") onTriggered: Global.openPopup(importCommunitiesPopupComponent) } } @@ -121,8 +119,7 @@ StatusModal { anchors.horizontalCenter: parent.horizontalCenter title: model.name subTitle: model.description - //% "%1 members" - tertiaryTitle: qsTrId("-1-members").arg(model.members.count) + tertiaryTitle: qsTr("%1 members").arg(model.members.count) statusListItemTitle.font.weight: Font.Bold statusListItemTitle.font.pixelSize: 17 image.source: model.image @@ -146,8 +143,7 @@ StatusModal { rightButtons: [ StatusButton { - //% "Create a community" - text: qsTrId("create-community") + text: qsTr("Create a community") onClicked: { Global.openPopup(createCommunitiesPopupComponent) popup.close() diff --git a/ui/app/AppLayouts/Chat/popups/community/CommunityDetailPopup.qml b/ui/app/AppLayouts/Chat/popups/community/CommunityDetailPopup.qml index 8abf65ea8e..50172a8f5f 100644 --- a/ui/app/AppLayouts/Chat/popups/community/CommunityDetailPopup.qml +++ b/ui/app/AppLayouts/Chat/popups/community/CommunityDetailPopup.qml @@ -33,24 +33,20 @@ StatusModal { let subTitle = "" switch(access) { case Constants.communityChatPublicAccess: - //% "Public community" - subTitle = qsTrId("public-community"); + subTitle = qsTr("Public community"); break; case Constants.communityChatInvitationOnlyAccess: - //% "Invitation only community" - subTitle = qsTrId("invitation-only-community"); + subTitle = qsTr("Invitation only community"); break; case Constants.communityChatOnRequestAccess: - //% "On request community" - subTitle = qsTrId("on-request-community"); + subTitle = qsTr("On request community"); break; default: subTitle = qsTr("Unknown community"); break; } if (ensOnly) { - //% " - ENS only" - subTitle += qsTrId("---ens-only") + subTitle += qsTr(" - ENS only") } return subTitle } @@ -86,8 +82,7 @@ StatusModal { } StatusBaseText { - //% "%1 members" - text: qsTrId("-1-members").arg(nbMembers) + text: qsTr("%1 members").arg(nbMembers) font.pixelSize: 15 font.weight: Font.Medium color: Theme.palette.directColor1 @@ -107,8 +102,7 @@ StatusModal { width: parent.width - 32 height: 34 StatusBaseText { - //% "Channels" - text: qsTrId("channels") + text: qsTr("Channels") anchors.bottom: parent.bottom anchors.bottomMargin: 4 font.pixelSize: 15 @@ -166,26 +160,19 @@ StatusModal { text: { // Not Refactored Yet // if (root.ensOnly && !root.store.profileModelInst.profile.ensVerified) { -// //% "Membership requires an ENS username" -// return qsTrId("membership-requires-an-ens-username") +// return qsTr("Membership requires an ENS username") // } if (root.canJoin) { - //% "Join ‘%1’" - return qsTrId("join---1-").arg(root.name); + return qsTr("Join ‘%1’").arg(root.name); } if (isPendingRequest) { - //% "Pending" - return qsTrId("invite-chat-pending") + return qsTr("Pending") } switch(root.access) { - //% "Join ‘%1’" - case Constants.communityChatPublicAccess: return qsTrId("join---1-").arg(root.name); - //% "You need to be invited" - case Constants.communityChatInvitationOnlyAccess: return qsTrId("you-need-to-be-invited"); - //% "Request to join ‘%1’" - case Constants.communityChatOnRequestAccess: return qsTrId("request-to-join---1-").arg(root.name); - //% "Unknown community" - default: return qsTrId("unknown-community"); + case Constants.communityChatPublicAccess: return qsTr("Join ‘%1’").arg(root.name); + case Constants.communityChatInvitationOnlyAccess: return qsTr("You need to be invited"); + case Constants.communityChatOnRequestAccess: return qsTr("Request to join ‘%1’").arg(root.name); + default: return qsTr("Unknown community"); } } enabled: { @@ -212,8 +199,7 @@ StatusModal { // error = root.store.chatsModelInst.communities.requestToJoinCommunity(root.communityId, userProfile.name) // if (!error) { // enabled = false - // //% "Pending" - // text = qsTrId("invite-chat-pending") + // text = qsTr("Pending") // } } else { error = root.store.communitiesModuleInst.joinCommunity(root.communityId) @@ -231,8 +217,7 @@ StatusModal { MessageDialog { id: joiningError - //% "Error joining the community" - title: qsTrId("error-joining-the-community") + title: qsTr("Error joining the community") icon: StandardIcon.Critical standardButtons: StandardButton.Ok } diff --git a/ui/app/AppLayouts/Chat/popups/community/CommunityProfilePopup.qml b/ui/app/AppLayouts/Chat/popups/community/CommunityProfilePopup.qml index a3ab591867..ef3f9c004a 100644 --- a/ui/app/AppLayouts/Chat/popups/community/CommunityProfilePopup.qml +++ b/ui/app/AppLayouts/Chat/popups/community/CommunityProfilePopup.qml @@ -49,14 +49,10 @@ StatusModal { headerTitle: root.community.name headerSubtitle: { switch(root.community.access) { - //% "Public community" - case Constants.communityChatPublicAccess: return qsTrId("public-community"); - //% "Invitation only community" - case Constants.communityChatInvitationOnlyAccess: return qsTrId("invitation-only-community"); - //% "On request community" - case Constants.communityChatOnRequestAccess: return qsTrId("on-request-community"); - //% "Unknown community" - default: return qsTrId("unknown-community"); + case Constants.communityChatPublicAccess: return qsTr("Public community"); + case Constants.communityChatInvitationOnlyAccess: return qsTr("Invitation only community"); + case Constants.communityChatOnRequestAccess: return qsTr("On request community"); + default: return qsTr("Unknown community"); } } headerImageSource: root.community.image @@ -90,8 +86,7 @@ StatusModal { id: inviteFriendsView CommunityProfilePopupInviteFriendsPanel { width: stack.width - //% "Invite friends" - headerTitle: qsTrId("invite-friends") + headerTitle: qsTr("Invite friends") community: root.community contactsStore: root.contactsStore rootStore: root.store @@ -123,8 +118,7 @@ StatusModal { rightButtons: [ StatusButton { - //% "Invite" - text: qsTrId("community-invite-title") + text: qsTr("Invite") visible: root.contentItem.depth > 2 height: !visible ? 0 : implicitHeight enabled: root.contentItem.currentItem.contactListSearch !== undefined && root.contentItem.currentItem.contactListSearch.pubKeys.length > 0 diff --git a/ui/app/AppLayouts/Chat/popups/community/CreateCategoryPopup.qml b/ui/app/AppLayouts/Chat/popups/community/CreateCategoryPopup.qml index e5a5399b26..2b20fd0d0e 100644 --- a/ui/app/AppLayouts/Chat/popups/community/CreateCategoryPopup.qml +++ b/ui/app/AppLayouts/Chat/popups/community/CreateCategoryPopup.qml @@ -42,10 +42,8 @@ StatusModal { } header.title: isEdit ? - //% "Edit category" - qsTrId("edit-category") : - //% "New category" - qsTrId("new-category") + qsTr("Edit category") : + qsTr("New category") contentItem: Column { property alias categoryName: nameInput @@ -101,8 +99,7 @@ StatusModal { width: parent.width - 32 height: 34 StatusBaseText { - //% "Channels" - text: qsTrId("channels") + text: qsTr("Channels") anchors.bottom: parent.bottom anchors.bottomMargin: 4 font.pixelSize: 15 @@ -166,16 +163,13 @@ StatusModal { anchors.horizontalCenter: parent.horizontalCenter visible: isEdit - //% "Delete category" - title: qsTrId("delete-category") + title: qsTr("Delete category") icon.name: "delete" type: StatusListItem.Type.Danger sensor.onClicked: { Global.openPopup(deleteCategoryConfirmationDialogComponent, { - //% "Delete %1 category" - title: qsTrId("delete--1-category").arg(root.contentItem.categoryName.input.text), - //% "Are you sure you want to delete %1 category? Channels inside the category won’t be deleted." - confirmationText: qsTrId("are-you-sure-you-want-to-delete--1-category--channels-inside-the-category-won-t-be-deleted-").arg(root.contentItem.categoryName.input.text) + title: qsTr("Delete %1 category").arg(root.contentItem.categoryName.input.text), + confirmationText: qsTr("Are you sure you want to delete %1 category? Channels inside the category won’t be deleted.").arg(root.contentItem.categoryName.input.text) }) } @@ -214,10 +208,8 @@ StatusModal { StatusButton { enabled: isFormValid() text: isEdit ? - //% "Save" - qsTrId("save") : - //% "Create" - qsTrId("create") + qsTr("Save") : + qsTr("Create") onClicked: { if (!isFormValid()) { scrollView.scrollBackUp() @@ -244,10 +236,8 @@ StatusModal { MessageDialog { id: categoryError title: isEdit ? - //% "Error editing the category" - qsTrId("error-editing-the-category") : - //% "Error creating the category" - qsTrId("error-creating-the-category") + qsTr("Error editing the category") : + qsTr("Error creating the category") icon: StandardIcon.Critical standardButtons: StandardButton.Ok } diff --git a/ui/app/AppLayouts/Chat/popups/community/CreateChannelPopup.qml b/ui/app/AppLayouts/Chat/popups/community/CreateChannelPopup.qml index e9a6cefa48..6df7134c18 100644 --- a/ui/app/AppLayouts/Chat/popups/community/CreateChannelPopup.qml +++ b/ui/app/AppLayouts/Chat/popups/community/CreateChannelPopup.qml @@ -35,16 +35,14 @@ StatusModal { signal editCommunityChannel(string chName, string chDescription, string chEmoji, string chColor, string chCategoryId) - //% "New channel" - header.title: qsTrId("create-channel-title") + header.title: qsTr("New channel") onOpened: { contentItem.channelName.input.text = "" contentItem.channelName.input.icon.emoji = "" contentItem.channelName.input.edit.forceActiveFocus(Qt.MouseFocusReason) if (isEdit) { - //% "Edit #%1" - header.title = qsTrId("edit---1").arg(popup.channelName); + header.title = qsTr("Edit #%1").arg(popup.channelName); contentItem.channelName.input.text = popup.channelName contentItem.channelDescription.input.text = popup.channelDescription if (popup.channelEmoji) { @@ -181,8 +179,7 @@ StatusModal { // contentColor: colorDialog.colorSelected ? Theme.palette.indirectColor1 : Theme.palette.baseColor1 text: colorDialog.colorSelected ? colorDialog.color.toString().toUpperCase() : - //% "Pick a color" - qsTrId("pick-a-color") + qsTr("Pick a color") onClicked: colorDialog.open(); onTextChanged: { @@ -235,8 +232,7 @@ StatusModal { /* width: parent.width */ /* height: 56 */ /* sensor.enabled: false */ - //% "Private channel" - /* title: qsTrId("private-channel") */ + /* title: qsTr("Private channel") */ /* components: [ */ /* StatusSwitch { */ /* id: privateSwitch */ @@ -252,8 +248,7 @@ StatusModal { /* anchors.leftMargin: 16 */ /* color: Theme.palette.baseColor1 */ /* wrapMode: Text.WordWrap */ - //% "By making a channel private, only members with selected permission will be able to access it" - /* text: qsTrId("by-making-a-channel-private--only-members-with-selected-permission-will-be-able-to-access-it") */ + /* text: qsTr("By making a channel private, only members with selected permission will be able to access it") */ /* } */ /* StatusModalDivider { */ @@ -265,8 +260,7 @@ StatusModal { /* width: parent.width */ /* height: 56 */ /* sensor.enabled: false */ - //% "Message limit" - /* title: qsTrId("message-limit") */ + /* title: qsTr("Message limit") */ /* components: [ */ /* StatusSwitch {} */ /* ] */ @@ -280,8 +274,7 @@ StatusModal { /* anchors.leftMargin: 16 */ /* color: Theme.palette.baseColor1 */ /* wrapMode: Text.WordWrap */ - //% "Limit channel members to sending one message per chose time interval" - /* text: qsTrId("limit-channel-members-to-sending-one-message-per-chose-time-interval") */ + /* text: qsTr("Limit channel members to sending one message per chose time interval") */ /* } */ Item { @@ -295,10 +288,8 @@ StatusModal { StatusButton { enabled: isFormValid() text: isEdit ? - //% "Save" - qsTrId("save") : - //% "Create" - qsTrId("create") + qsTr("Save") : + qsTr("Create") onClicked: { if (!isFormValid()) { scrollView.scrollBackUp() @@ -336,8 +327,7 @@ StatusModal { MessageDialog { id: creatingError - //% "Error creating the community" - title: qsTrId("error-creating-the-community") + title: qsTr("Error creating the community") icon: StandardIcon.Critical standardButtons: StandardButton.Ok } diff --git a/ui/app/AppLayouts/Chat/popups/community/InviteFriendsToCommunityPopup.qml b/ui/app/AppLayouts/Chat/popups/community/InviteFriendsToCommunityPopup.qml index e1a775f25e..fef4ff445b 100644 --- a/ui/app/AppLayouts/Chat/popups/community/InviteFriendsToCommunityPopup.qml +++ b/ui/app/AppLayouts/Chat/popups/community/InviteFriendsToCommunityPopup.qml @@ -38,8 +38,7 @@ StatusModal { margins: 32 height: 550 - //% "Invite friends" - header.title: qsTrId("invite-friends") + header.title: qsTr("Invite friends") function processInviteResult(error) { if (error) { @@ -47,8 +46,7 @@ StatusModal { contactFieldAndList.validationError = error return } - //% "Invite successfully sent" - popup.contentItem.contactListSearch.successMessage = qsTrId("invite-successfully-sent") + popup.contentItem.contactListSearch.successMessage = qsTr("Invite successfully sent") } contentItem: CommunityProfilePopupInviteFriendsPanel { @@ -73,8 +71,7 @@ StatusModal { rightButtons: [ StatusButton { enabled: popup.contentItem.contactListSearch.pubKeys.length > 0 - //% "Invite" - text: qsTrId("invite-button") + text: qsTr("Invite") onClicked : { popup.sendInvites(popup.contentItem.contactListSearch.pubKeys) } diff --git a/ui/app/AppLayouts/Chat/popups/community/MembershipRequestsPopup.qml b/ui/app/AppLayouts/Chat/popups/community/MembershipRequestsPopup.qml index 849a62bb27..0977bbceb7 100644 --- a/ui/app/AppLayouts/Chat/popups/community/MembershipRequestsPopup.qml +++ b/ui/app/AppLayouts/Chat/popups/community/MembershipRequestsPopup.qml @@ -20,8 +20,7 @@ StatusModal { contentItem.errorText.text = "" } - //% "Membership requests" - header.title: qsTrId("membership-requests") + header.title: qsTr("Membership requests") header.subTitle: contentItem.membershipRequestList.count contentItem: Column { diff --git a/ui/app/AppLayouts/Chat/stores/MessageStore.qml b/ui/app/AppLayouts/Chat/stores/MessageStore.qml index ef08cda20e..ca298a9825 100644 --- a/ui/app/AppLayouts/Chat/stores/MessageStore.qml +++ b/ui/app/AppLayouts/Chat/stores/MessageStore.qml @@ -136,8 +136,7 @@ QtObject { } function lastTwoItems(nodes) { - //% " and " - return nodes.join(qsTrId("-and-")); + return nodes.join(qsTr(" and ")); } function showReactionAuthors(jsonArrayOfUsersReactedWithThisEmoji, emojiId) { @@ -163,8 +162,7 @@ QtObject { rightNode = listOfUsers.slice(maxReactions, listOfUsers.length); return (rightNode.length === 1) ? lastTwoItems([leftNode.join(", "), rightNode[0]]) : - //% "%1 more" - lastTwoItems([leftNode.join(", "), qsTrId("-1-more").arg(rightNode.length)]); + lastTwoItems([leftNode.join(", "), qsTr("%1 more").arg(rightNode.length)]); } leftNode = listOfUsers.slice(0, maximum - 1); @@ -172,8 +170,7 @@ QtObject { tooltip = lastTwoItems([leftNode.join(", "), rightNode[0]]) } - //% " reacted with " - tooltip += qsTrId("-reacted-with-"); + tooltip += qsTr(" reacted with "); let emojiHtml = StatusQUtils.Emoji.getEmojiFromId(emojiId); if (emojiHtml) { tooltip += emojiHtml; diff --git a/ui/app/AppLayouts/Chat/stores/RootStore.qml b/ui/app/AppLayouts/Chat/stores/RootStore.qml index ac88ae8ef9..43d2380e5b 100644 --- a/ui/app/AppLayouts/Chat/stores/RootStore.qml +++ b/ui/app/AppLayouts/Chat/stores/RootStore.qml @@ -383,8 +383,7 @@ QtObject { } if (index > -1) { const pk = link.substring(index + 3) - //% "Start a 1-on-1 chat with %1" - result.title = qsTrId("start-a-1-on-1-chat-with--1") + result.title = qsTr("Start a 1-on-1 chat with %1") .arg(isChatKey(pk) ? globalUtils.generateAlias(pk) : ("@" + removeStatusEns(pk))) result.callback = function () { if (isChatKey(pk)) { @@ -412,8 +411,7 @@ QtObject { return result } - //% "Join the %1 community" - result.title = qsTrId("join-the--1-community").arg(communityName) + result.title = qsTr("Join the %1 community").arg(communityName) result.communityId = communityId result.callback = function () { const isUserMemberOfCommunity = isUserMemberOfCommunity(communityId) @@ -440,8 +438,7 @@ QtObject { const pubKey = link.substring(indexAdminPk + 2, indexChatName - 1) const chatName = link.substring(indexChatName + 3, indexChatId - 1) const chatId = link.substring(indexChatId + 3, link.length) - //% "Join the %1 group chat" - result.title = qsTrId("join-the--1-group-chat").arg(chatName) + result.title = qsTr("Join the %1 group chat").arg(chatName) result.callback = function () { // Not Refactored Yet // chatsModel.groups.joinGroupChatFromInvitation(chatName, chatId, pubKey); @@ -456,8 +453,7 @@ QtObject { // index = link.lastIndexOf("/") // if (index > -1) { // const chatId = link.substring(index + 1) -// //% "Join the %1 public channel" -// result.title = qsTrId("join-the--1-public-channel").arg(chatId) +// result.title = qsTr("Join the %1 public channel").arg(chatId) // result.callback = function () { // chatsModel.channelView.joinPublicChat(chatId); // } diff --git a/ui/app/AppLayouts/Chat/views/ActivityCenterGroupRequest.qml b/ui/app/AppLayouts/Chat/views/ActivityCenterGroupRequest.qml index 600ce1e68b..8cd55b495e 100644 --- a/ui/app/AppLayouts/Chat/views/ActivityCenterGroupRequest.qml +++ b/ui/app/AppLayouts/Chat/views/ActivityCenterGroupRequest.qml @@ -123,8 +123,7 @@ Item { // name = name.substring(0, 9) + "..." + name.substring(name.length - 10) // } -// //% "%1 invited you to join the group" -// return qsTrId("-1-invited-you-to-join-the-group") +// return qsTr("%1 invited you to join the group") // .arg(`