diff --git a/ui/app/AppLayouts/Chat/ChatColumn.qml b/ui/app/AppLayouts/Chat/ChatColumn.qml
index 553a45e48a..524a8deb2e 100644
--- a/ui/app/AppLayouts/Chat/ChatColumn.qml
+++ b/ui/app/AppLayouts/Chat/ChatColumn.qml
@@ -94,11 +94,13 @@ StackLayout {
id: messageContextMenu
Action {
id: viewProfileAction
- text: qsTr("View profile")
+ //% "View profile"
+ text: qsTrId("view-profile")
onTriggered: profilePopup.open()
}
Action {
- text: qsTr("Reply to")
+ //% "Reply to"
+ text: qsTrId("reply-to")
onTriggered: {
isReply = true;
replyAreaContainer.setup()
diff --git a/ui/app/AppLayouts/Chat/ChatColumn/EmptyChat.qml b/ui/app/AppLayouts/Chat/ChatColumn/EmptyChat.qml
index a7935f25c8..b143fb9d58 100644
--- a/ui/app/AppLayouts/Chat/ChatColumn/EmptyChat.qml
+++ b/ui/app/AppLayouts/Chat/ChatColumn/EmptyChat.qml
@@ -18,10 +18,14 @@ Item {
}
StyledText {
- text: `${qsTr("Share your chat key")}` +
- ` ${qsTr("or")} ` +
- `${qsTr("invite")}`+
- ` ${qsTr("friends to start messaging in Status")}`
+ //% "Share your chat key"
+ text: `${qsTrId("share-your-chat-key")}` +
+ //% "or"
+ ` ${qsTrId("or")} ` +
+ //% "invite"
+ `${qsTrId("invite")}`+
+ //% "friends to start messaging in Status"
+ ` ${qsTrId("friends-to-start-messaging-in-status")}`
textFormat: Text.RichText
wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignHCenter
diff --git a/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/DateGroup.qml b/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/DateGroup.qml
index c095f46d2e..9536f00ecb 100644
--- a/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/DateGroup.qml
+++ b/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/DateGroup.qml
@@ -20,24 +20,37 @@ StyledText {
var prevMsgDate = prevMsgTimestamp === "" ? new Date(0) : new Date(parseInt(prevMsgTimestamp, 10));
if(currentMsgDate.getDay() !== prevMsgDate.getDay()){
if (now.toDateString() === currentMsgDate.toDateString()) {
- return qsTr("Today")
+ //% "Today"
+ return qsTrId("today")
} else if (yesterday.toDateString() === currentMsgDate.toDateString()) {
//% "Yesterday"
return qsTrId("yesterday")
} else {
const monthNames = [
- qsTr("January"),
- qsTr("February"),
- qsTr("March"),
- qsTr("April"),
- qsTr("May"),
- qsTr("June"),
- qsTr("July"),
- qsTr("August"),
- qsTr("September"),
- qsTr("October"),
- qsTr("November"),
- qsTr("December")
+ //% "January"
+ qsTrId("january"),
+ //% "February"
+ qsTrId("february"),
+ //% "March"
+ qsTrId("march"),
+ //% "April"
+ qsTrId("april"),
+ //% "May"
+ qsTrId("may"),
+ //% "June"
+ qsTrId("june"),
+ //% "July"
+ qsTrId("july"),
+ //% "August"
+ qsTrId("august"),
+ //% "September"
+ qsTrId("september"),
+ //% "October"
+ qsTrId("october"),
+ //% "November"
+ qsTrId("november"),
+ //% "December"
+ qsTrId("december")
];
return monthNames[currentMsgDate.getMonth()] + ", " + currentMsgDate.getDay()
}
diff --git a/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/UsernameLabel.qml b/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/UsernameLabel.qml
index f6248f7682..ec208b1ec9 100644
--- a/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/UsernameLabel.qml
+++ b/ui/app/AppLayouts/Chat/ChatColumn/MessageComponents/UsernameLabel.qml
@@ -6,7 +6,8 @@ StyledTextEdit {
id: chatName
visible: (isMessage || isEmoji) && authorCurrentMsg != authorPrevMsg
height: this.visible ? 18 : 0
- text: !isCurrentUser ? userName : qsTr("You")
+ //% "You"
+ text: !isCurrentUser ? userName : qsTrId("You")
font.bold: true
font.pixelSize: 14
readOnly: true
diff --git a/ui/app/AppLayouts/Chat/ChatColumn/TopBar.qml b/ui/app/AppLayouts/Chat/ChatColumn/TopBar.qml
index eebec5d494..20b6636f35 100644
--- a/ui/app/AppLayouts/Chat/ChatColumn/TopBar.qml
+++ b/ui/app/AppLayouts/Chat/ChatColumn/TopBar.qml
@@ -140,7 +140,8 @@ Rectangle {
icon.width: chatTopBarContent.iconSize
icon.height: chatTopBarContent.iconSize
icon.color: Style.current.red
- text: qsTr("Delete Chat")
+ //% "Delete Chat"
+ text: qsTrId("delete-chat")
onTriggered: chatsModel.leaveActiveChat()
}
}
diff --git a/ui/app/AppLayouts/Chat/ContactsColumn/ClosedEmptyView.qml b/ui/app/AppLayouts/Chat/ContactsColumn/ClosedEmptyView.qml
index 9776399ed8..8c06607b94 100644
--- a/ui/app/AppLayouts/Chat/ContactsColumn/ClosedEmptyView.qml
+++ b/ui/app/AppLayouts/Chat/ContactsColumn/ClosedEmptyView.qml
@@ -12,7 +12,8 @@ Item {
Layout.fillWidth: true
StyledText {
- text: qsTr("Your chats will appear here. To start new chats press the button at the top")
+ //% "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")
anchors.verticalCenterOffset: -80
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WordWrap
diff --git a/ui/app/AppLayouts/Chat/ContactsColumn/EmptyView.qml b/ui/app/AppLayouts/Chat/ContactsColumn/EmptyView.qml
index 87359851ab..b4d3c1b865 100644
--- a/ui/app/AppLayouts/Chat/ContactsColumn/EmptyView.qml
+++ b/ui/app/AppLayouts/Chat/ContactsColumn/EmptyView.qml
@@ -67,7 +67,8 @@ Item {
StyledText {
id: chatAndTransactText
- text: qsTr("Chat and transact privately with your friends")
+ //% "Chat and transact privately with your friends"
+ text: qsTrId("chat-and-transact-privately-with-your-friends")
anchors.top: parent.top
anchors.topMargin: 56
horizontalAlignment: Text.AlignHCenter
@@ -80,7 +81,8 @@ Item {
}
StyledButton {
- label: qsTr("Invite friends")
+ //% "Invite friends"
+ label: qsTrId("invite-friends")
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.bottom
anchors.bottomMargin: Style.current.xlPadding
diff --git a/ui/app/AppLayouts/Chat/components/InviteFriendsPopup.qml b/ui/app/AppLayouts/Chat/components/InviteFriendsPopup.qml
index 5fd9f12fdd..4ac6b2e5b3 100644
--- a/ui/app/AppLayouts/Chat/components/InviteFriendsPopup.qml
+++ b/ui/app/AppLayouts/Chat/components/InviteFriendsPopup.qml
@@ -5,9 +5,11 @@ import "../../../../shared"
ModalPopup {
id: popup
- readonly property string getStatusText: qsTr("Get Status at https://status.im")
+ //% "Get Status at https://status.im"
+ readonly property string getStatusText: qsTrId("get-status-at-https---status-im")
- title: qsTr("Download Status link")
+ //% "Download Status link"
+ title: qsTrId("download-status-link")
height: 156
StyledText {
diff --git a/ui/app/AppLayouts/Chat/components/StickerButton.qml b/ui/app/AppLayouts/Chat/components/StickerButton.qml
index af6da62986..a08b551753 100644
--- a/ui/app/AppLayouts/Chat/components/StickerButton.qml
+++ b/ui/app/AppLayouts/Chat/components/StickerButton.qml
@@ -25,7 +25,8 @@ Item {
rotation: 0,
runAnimation: false
})
- property string text: root.style === StickerButton.StyleType.Default ? packPrice : qsTr("Buy for %1 SNT").arg(packPrice )
+ //% "Buy for %1 SNT"
+ property string text: root.style === StickerButton.StyleType.Default ? packPrice : qsTrId("buy-for--1-snt").arg(packPrice )
property color textColor: style === StickerButton.StyleType.Default ? Style.current.white : Style.current.blue
property color bgColor: style === StickerButton.StyleType.Default ? Style.current.blue : Style.current.lightBlue
signal uninstallClicked()
@@ -41,7 +42,8 @@ Item {
when: root.isInstalled
PropertyChanges {
target: root;
- text: root.style === StickerButton.StyleType.Default ? "" : qsTr("Uninstall");
+ //% "Uninstall"
+ text: root.style === StickerButton.StyleType.Default ? "" : qsTrId("uninstall");
textColor: root.style === StickerButton.StyleType.Default ? Style.current.white : Style.current.red;
bgColor: root.style === StickerButton.StyleType.Default ? Style.current.green : Style.current.lightRed;
icon: new Object({
@@ -56,7 +58,8 @@ Item {
when: root.isBought;
PropertyChanges {
target: root;
- text: qsTr("Install");
+ //% "Install"
+ text: qsTrId("install");
icon: new Object({
path: "../../../img/arrowUp.svg",
rotation: 180,
@@ -70,7 +73,8 @@ Item {
extend: "bought"
PropertyChanges {
target: root;
- text: qsTr("Free");
+ //% "Free"
+ text: qsTrId("free");
}
},
State {
@@ -89,7 +93,8 @@ Item {
when: root.isPending
PropertyChanges {
target: root;
- text: qsTr("Pending...");
+ //% "Pending..."
+ text: qsTrId("pending---");
textColor: root.style === StickerButton.StyleType.Default ? Style.current.white : Style.current.darkGrey
bgColor: root.style === StickerButton.StyleType.Default ? Style.current.darkGrey : Style.current.grey;
enabled: false;
@@ -106,7 +111,8 @@ Item {
extend: "pending"
PropertyChanges {
target: root;
- text: qsTr("Cancel");
+ //% "Cancel"
+ text: qsTrId("browsing-cancel");
textColor: root.style === StickerButton.StyleType.Default ? Style.current.white : Style.current.red;
bgColor: root.style === StickerButton.StyleType.Default ? Style.current.darkGrey : Style.current.lightRed;
}
@@ -117,7 +123,8 @@ Item {
extend: "bought"
PropertyChanges {
target: root;
- text: qsTr("Update");
+ //% "Update"
+ text: qsTrId("update");
}
}
]
diff --git a/ui/app/AppLayouts/Profile/Sections/AdvancedContainer.qml b/ui/app/AppLayouts/Profile/Sections/AdvancedContainer.qml
index d4c316a653..cf9d37f7a2 100644
--- a/ui/app/AppLayouts/Profile/Sections/AdvancedContainer.qml
+++ b/ui/app/AppLayouts/Profile/Sections/AdvancedContainer.qml
@@ -61,7 +61,8 @@ Item {
anchors.left: parent.left
anchors.leftMargin: 24
StyledText {
- text: qsTr("Chat Compact Mode")
+ //% "Chat Compact Mode"
+ text: qsTrId("chat-compact-mode")
}
Switch {
checked: compactModeSetting.isCompactMode
@@ -144,7 +145,8 @@ Item {
anchors.left: parent.left
anchors.leftMargin: 24
StyledText {
- text: qsTr("Display images in chat automatically")
+ //% "Display images in chat automatically"
+ text: qsTrId("display-images-in-chat-automatically")
}
Switch {
checked: appSettings.displayChatImages
@@ -153,7 +155,8 @@ Item {
}
}
StyledText {
- text: qsTr("under development")
+ //% "under development"
+ text: qsTrId("under-development")
}
}
@@ -164,7 +167,8 @@ Item {
anchors.left: parent.left
anchors.leftMargin: 24
StyledText {
- text: qsTr("Enable testnet (Ropsten)\nCurrent network: %1").arg(profileModel.network)
+ //% "Enable testnet (Ropsten)\nCurrent network: %1"
+ text: qsTrId("enable-testnet--ropsten--ncurrent-network---1").arg(profileModel.network)
}
Switch {
checked: profileModel.network === "testnet_rpc"
@@ -176,7 +180,8 @@ Item {
}
}
StyledText {
- text: qsTr("Under development\nNOTE: You will be logged out and all installed\nsticker packs will be removed and will\nneed to be reinstalled. Purchased sticker\npacks will not need to be re-purchased.")
+ //% "Under development\nNOTE: You will be logged out and all installed\nsticker packs will be removed and will\nneed to be reinstalled. Purchased sticker\npacks will not need to be re-purchased."
+ text: qsTrId("under-development-nnote--you-will-be-logged-out-and-all-installed-nsticker-packs-will-be-removed-and-will-nneed-to-be-reinstalled--purchased-sticker-npacks-will-not-need-to-be-re-purchased-")
}
}
}
diff --git a/ui/app/AppLayouts/Profile/Sections/DevicesContainer.qml b/ui/app/AppLayouts/Profile/Sections/DevicesContainer.qml
index 2bf9da3fbe..ed91bc77e9 100644
--- a/ui/app/AppLayouts/Profile/Sections/DevicesContainer.qml
+++ b/ui/app/AppLayouts/Profile/Sections/DevicesContainer.qml
@@ -151,7 +151,8 @@ Item {
StyledText {
id: deviceListLbl
- text: qsTr("Paired devices")
+ //% "Paired devices"
+ text: qsTrId("paired-devices")
font.pixelSize: 16
font.weight: Font.Bold
}
@@ -176,7 +177,9 @@ Item {
id: deviceItemLbl
text: {
let deviceId = model.installationId.split("-")[0].substr(0, 5)
- let labelText = `${model.name || qsTr("No info")} (${model.isUserDevice ? qsTr("you") + ", ": ""}${deviceId})`;
+ //% "No info"
+ //% "you"
+ let labelText = `${model.name || qsTrId("pairing-no-info")} (${model.isUserDevice ? qsTrId("you") + ", ": ""}${deviceId})`;
return labelText;
}
elide: Text.ElideRight
diff --git a/ui/app/AppLayouts/Wallet/WalletLayout.qml b/ui/app/AppLayouts/Wallet/WalletLayout.qml
index 562a093d50..064b9e2ab7 100644
--- a/ui/app/AppLayouts/Wallet/WalletLayout.qml
+++ b/ui/app/AppLayouts/Wallet/WalletLayout.qml
@@ -71,13 +71,15 @@ SplitView {
StatusTabButton {
id: assetBtn
- btnText: qsTr("Assets")
+ //% "Assets"
+ btnText: qsTrId("wallet-assets")
}
StatusTabButton {
id: collectiblesBtn
anchors.left: assetBtn.right
anchors.leftMargin: 32
- btnText: qsTr("Collectibles")
+ //% "Collectibles"
+ btnText: qsTrId("wallet-collectibles")
onClicked: {
walletModel.loadCollectiblesForAccount(walletModel.currentAccount.address)
}
@@ -86,7 +88,8 @@ SplitView {
id: historyBtn
anchors.left: collectiblesBtn.right
anchors.leftMargin: 32
- btnText: qsTr("History")
+ //% "History"
+ btnText: qsTrId("history")
onClicked: {
walletModel.loadTransactionsForAccount(walletModel.currentAccount.address)
}