chore: re-run qstr converter
This commit is contained in:
parent
bdc625ea17
commit
b829acb3c4
|
@ -94,11 +94,13 @@ StackLayout {
|
||||||
id: messageContextMenu
|
id: messageContextMenu
|
||||||
Action {
|
Action {
|
||||||
id: viewProfileAction
|
id: viewProfileAction
|
||||||
text: qsTr("View profile")
|
//% "View profile"
|
||||||
|
text: qsTrId("view-profile")
|
||||||
onTriggered: profilePopup.open()
|
onTriggered: profilePopup.open()
|
||||||
}
|
}
|
||||||
Action {
|
Action {
|
||||||
text: qsTr("Reply to")
|
//% "Reply to"
|
||||||
|
text: qsTrId("reply-to")
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
isReply = true;
|
isReply = true;
|
||||||
replyAreaContainer.setup()
|
replyAreaContainer.setup()
|
||||||
|
|
|
@ -18,10 +18,14 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
text: `<a href="shareKey" style="color:${Style.current.blue};text-decoration:none;">${qsTr("Share your chat key")}</a>` +
|
//% "Share your chat key"
|
||||||
` ${qsTr("or")} ` +
|
text: `<a href="shareKey" style="color:${Style.current.blue};text-decoration:none;">${qsTrId("share-your-chat-key")}</a>` +
|
||||||
`<a href="invite" style="color:${Style.current.blue};text-decoration:none">${qsTr("invite")}</a>`+
|
//% "or"
|
||||||
` ${qsTr("friends to start messaging in Status")}`
|
` ${qsTrId("or")} ` +
|
||||||
|
//% "invite"
|
||||||
|
`<a href="invite" style="color:${Style.current.blue};text-decoration:none">${qsTrId("invite")}</a>`+
|
||||||
|
//% "friends to start messaging in Status"
|
||||||
|
` ${qsTrId("friends-to-start-messaging-in-status")}`
|
||||||
textFormat: Text.RichText
|
textFormat: Text.RichText
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
|
|
@ -20,24 +20,37 @@ StyledText {
|
||||||
var prevMsgDate = prevMsgTimestamp === "" ? new Date(0) : new Date(parseInt(prevMsgTimestamp, 10));
|
var prevMsgDate = prevMsgTimestamp === "" ? new Date(0) : new Date(parseInt(prevMsgTimestamp, 10));
|
||||||
if(currentMsgDate.getDay() !== prevMsgDate.getDay()){
|
if(currentMsgDate.getDay() !== prevMsgDate.getDay()){
|
||||||
if (now.toDateString() === currentMsgDate.toDateString()) {
|
if (now.toDateString() === currentMsgDate.toDateString()) {
|
||||||
return qsTr("Today")
|
//% "Today"
|
||||||
|
return qsTrId("today")
|
||||||
} else if (yesterday.toDateString() === currentMsgDate.toDateString()) {
|
} else if (yesterday.toDateString() === currentMsgDate.toDateString()) {
|
||||||
//% "Yesterday"
|
//% "Yesterday"
|
||||||
return qsTrId("yesterday")
|
return qsTrId("yesterday")
|
||||||
} else {
|
} else {
|
||||||
const monthNames = [
|
const monthNames = [
|
||||||
qsTr("January"),
|
//% "January"
|
||||||
qsTr("February"),
|
qsTrId("january"),
|
||||||
qsTr("March"),
|
//% "February"
|
||||||
qsTr("April"),
|
qsTrId("february"),
|
||||||
qsTr("May"),
|
//% "March"
|
||||||
qsTr("June"),
|
qsTrId("march"),
|
||||||
qsTr("July"),
|
//% "April"
|
||||||
qsTr("August"),
|
qsTrId("april"),
|
||||||
qsTr("September"),
|
//% "May"
|
||||||
qsTr("October"),
|
qsTrId("may"),
|
||||||
qsTr("November"),
|
//% "June"
|
||||||
qsTr("December")
|
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()
|
return monthNames[currentMsgDate.getMonth()] + ", " + currentMsgDate.getDay()
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,8 @@ StyledTextEdit {
|
||||||
id: chatName
|
id: chatName
|
||||||
visible: (isMessage || isEmoji) && authorCurrentMsg != authorPrevMsg
|
visible: (isMessage || isEmoji) && authorCurrentMsg != authorPrevMsg
|
||||||
height: this.visible ? 18 : 0
|
height: this.visible ? 18 : 0
|
||||||
text: !isCurrentUser ? userName : qsTr("You")
|
//% "You"
|
||||||
|
text: !isCurrentUser ? userName : qsTrId("You")
|
||||||
font.bold: true
|
font.bold: true
|
||||||
font.pixelSize: 14
|
font.pixelSize: 14
|
||||||
readOnly: true
|
readOnly: true
|
||||||
|
|
|
@ -140,7 +140,8 @@ Rectangle {
|
||||||
icon.width: chatTopBarContent.iconSize
|
icon.width: chatTopBarContent.iconSize
|
||||||
icon.height: chatTopBarContent.iconSize
|
icon.height: chatTopBarContent.iconSize
|
||||||
icon.color: Style.current.red
|
icon.color: Style.current.red
|
||||||
text: qsTr("Delete Chat")
|
//% "Delete Chat"
|
||||||
|
text: qsTrId("delete-chat")
|
||||||
onTriggered: chatsModel.leaveActiveChat()
|
onTriggered: chatsModel.leaveActiveChat()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,7 +12,8 @@ Item {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
|
||||||
StyledText {
|
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
|
anchors.verticalCenterOffset: -80
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
wrapMode: Text.WordWrap
|
wrapMode: Text.WordWrap
|
||||||
|
|
|
@ -67,7 +67,8 @@ Item {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
id: chatAndTransactText
|
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.top: parent.top
|
||||||
anchors.topMargin: 56
|
anchors.topMargin: 56
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
|
@ -80,7 +81,8 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
StyledButton {
|
StyledButton {
|
||||||
label: qsTr("Invite friends")
|
//% "Invite friends"
|
||||||
|
label: qsTrId("invite-friends")
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
anchors.bottomMargin: Style.current.xlPadding
|
anchors.bottomMargin: Style.current.xlPadding
|
||||||
|
|
|
@ -5,9 +5,11 @@ import "../../../../shared"
|
||||||
|
|
||||||
ModalPopup {
|
ModalPopup {
|
||||||
id: popup
|
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
|
height: 156
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
|
|
|
@ -25,7 +25,8 @@ Item {
|
||||||
rotation: 0,
|
rotation: 0,
|
||||||
runAnimation: false
|
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 textColor: style === StickerButton.StyleType.Default ? Style.current.white : Style.current.blue
|
||||||
property color bgColor: style === StickerButton.StyleType.Default ? Style.current.blue : Style.current.lightBlue
|
property color bgColor: style === StickerButton.StyleType.Default ? Style.current.blue : Style.current.lightBlue
|
||||||
signal uninstallClicked()
|
signal uninstallClicked()
|
||||||
|
@ -41,7 +42,8 @@ Item {
|
||||||
when: root.isInstalled
|
when: root.isInstalled
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: root;
|
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;
|
textColor: root.style === StickerButton.StyleType.Default ? Style.current.white : Style.current.red;
|
||||||
bgColor: root.style === StickerButton.StyleType.Default ? Style.current.green : Style.current.lightRed;
|
bgColor: root.style === StickerButton.StyleType.Default ? Style.current.green : Style.current.lightRed;
|
||||||
icon: new Object({
|
icon: new Object({
|
||||||
|
@ -56,7 +58,8 @@ Item {
|
||||||
when: root.isBought;
|
when: root.isBought;
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: root;
|
target: root;
|
||||||
text: qsTr("Install");
|
//% "Install"
|
||||||
|
text: qsTrId("install");
|
||||||
icon: new Object({
|
icon: new Object({
|
||||||
path: "../../../img/arrowUp.svg",
|
path: "../../../img/arrowUp.svg",
|
||||||
rotation: 180,
|
rotation: 180,
|
||||||
|
@ -70,7 +73,8 @@ Item {
|
||||||
extend: "bought"
|
extend: "bought"
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: root;
|
target: root;
|
||||||
text: qsTr("Free");
|
//% "Free"
|
||||||
|
text: qsTrId("free");
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
State {
|
State {
|
||||||
|
@ -89,7 +93,8 @@ Item {
|
||||||
when: root.isPending
|
when: root.isPending
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: root;
|
target: root;
|
||||||
text: qsTr("Pending...");
|
//% "Pending..."
|
||||||
|
text: qsTrId("pending---");
|
||||||
textColor: root.style === StickerButton.StyleType.Default ? Style.current.white : Style.current.darkGrey
|
textColor: root.style === StickerButton.StyleType.Default ? Style.current.white : Style.current.darkGrey
|
||||||
bgColor: root.style === StickerButton.StyleType.Default ? Style.current.darkGrey : Style.current.grey;
|
bgColor: root.style === StickerButton.StyleType.Default ? Style.current.darkGrey : Style.current.grey;
|
||||||
enabled: false;
|
enabled: false;
|
||||||
|
@ -106,7 +111,8 @@ Item {
|
||||||
extend: "pending"
|
extend: "pending"
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: root;
|
target: root;
|
||||||
text: qsTr("Cancel");
|
//% "Cancel"
|
||||||
|
text: qsTrId("browsing-cancel");
|
||||||
textColor: root.style === StickerButton.StyleType.Default ? Style.current.white : Style.current.red;
|
textColor: root.style === StickerButton.StyleType.Default ? Style.current.white : Style.current.red;
|
||||||
bgColor: root.style === StickerButton.StyleType.Default ? Style.current.darkGrey : Style.current.lightRed;
|
bgColor: root.style === StickerButton.StyleType.Default ? Style.current.darkGrey : Style.current.lightRed;
|
||||||
}
|
}
|
||||||
|
@ -117,7 +123,8 @@ Item {
|
||||||
extend: "bought"
|
extend: "bought"
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: root;
|
target: root;
|
||||||
text: qsTr("Update");
|
//% "Update"
|
||||||
|
text: qsTrId("update");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
|
@ -61,7 +61,8 @@ Item {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: 24
|
anchors.leftMargin: 24
|
||||||
StyledText {
|
StyledText {
|
||||||
text: qsTr("Chat Compact Mode")
|
//% "Chat Compact Mode"
|
||||||
|
text: qsTrId("chat-compact-mode")
|
||||||
}
|
}
|
||||||
Switch {
|
Switch {
|
||||||
checked: compactModeSetting.isCompactMode
|
checked: compactModeSetting.isCompactMode
|
||||||
|
@ -144,7 +145,8 @@ Item {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: 24
|
anchors.leftMargin: 24
|
||||||
StyledText {
|
StyledText {
|
||||||
text: qsTr("Display images in chat automatically")
|
//% "Display images in chat automatically"
|
||||||
|
text: qsTrId("display-images-in-chat-automatically")
|
||||||
}
|
}
|
||||||
Switch {
|
Switch {
|
||||||
checked: appSettings.displayChatImages
|
checked: appSettings.displayChatImages
|
||||||
|
@ -153,7 +155,8 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
StyledText {
|
StyledText {
|
||||||
text: qsTr("under development")
|
//% "under development"
|
||||||
|
text: qsTrId("under-development")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,7 +167,8 @@ Item {
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: 24
|
anchors.leftMargin: 24
|
||||||
StyledText {
|
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 {
|
Switch {
|
||||||
checked: profileModel.network === "testnet_rpc"
|
checked: profileModel.network === "testnet_rpc"
|
||||||
|
@ -176,7 +180,8 @@ Item {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
StyledText {
|
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-")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -151,7 +151,8 @@ Item {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
id: deviceListLbl
|
id: deviceListLbl
|
||||||
text: qsTr("Paired devices")
|
//% "Paired devices"
|
||||||
|
text: qsTrId("paired-devices")
|
||||||
font.pixelSize: 16
|
font.pixelSize: 16
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
}
|
}
|
||||||
|
@ -176,7 +177,9 @@ Item {
|
||||||
id: deviceItemLbl
|
id: deviceItemLbl
|
||||||
text: {
|
text: {
|
||||||
let deviceId = model.installationId.split("-")[0].substr(0, 5)
|
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;
|
return labelText;
|
||||||
}
|
}
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|
|
@ -71,13 +71,15 @@ SplitView {
|
||||||
|
|
||||||
StatusTabButton {
|
StatusTabButton {
|
||||||
id: assetBtn
|
id: assetBtn
|
||||||
btnText: qsTr("Assets")
|
//% "Assets"
|
||||||
|
btnText: qsTrId("wallet-assets")
|
||||||
}
|
}
|
||||||
StatusTabButton {
|
StatusTabButton {
|
||||||
id: collectiblesBtn
|
id: collectiblesBtn
|
||||||
anchors.left: assetBtn.right
|
anchors.left: assetBtn.right
|
||||||
anchors.leftMargin: 32
|
anchors.leftMargin: 32
|
||||||
btnText: qsTr("Collectibles")
|
//% "Collectibles"
|
||||||
|
btnText: qsTrId("wallet-collectibles")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
walletModel.loadCollectiblesForAccount(walletModel.currentAccount.address)
|
walletModel.loadCollectiblesForAccount(walletModel.currentAccount.address)
|
||||||
}
|
}
|
||||||
|
@ -86,7 +88,8 @@ SplitView {
|
||||||
id: historyBtn
|
id: historyBtn
|
||||||
anchors.left: collectiblesBtn.right
|
anchors.left: collectiblesBtn.right
|
||||||
anchors.leftMargin: 32
|
anchors.leftMargin: 32
|
||||||
btnText: qsTr("History")
|
//% "History"
|
||||||
|
btnText: qsTrId("history")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
walletModel.loadTransactionsForAccount(walletModel.currentAccount.address)
|
walletModel.loadTransactionsForAccount(walletModel.currentAccount.address)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue