chore: re-run qstr converter

This commit is contained in:
Jonathan Rainville 2020-07-16 11:20:29 -04:00 committed by Iuri Matias
parent bdc625ea17
commit b829acb3c4
12 changed files with 87 additions and 43 deletions

View File

@ -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()

View File

@ -18,10 +18,14 @@ Item {
}
StyledText {
text: `<a href="shareKey" style="color:${Style.current.blue};text-decoration:none;">${qsTr("Share your chat key")}</a>` +
` ${qsTr("or")} ` +
`<a href="invite" style="color:${Style.current.blue};text-decoration:none">${qsTr("invite")}</a>`+
` ${qsTr("friends to start messaging in Status")}`
//% "Share your chat key"
text: `<a href="shareKey" style="color:${Style.current.blue};text-decoration:none;">${qsTrId("share-your-chat-key")}</a>` +
//% "or"
` ${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
wrapMode: Text.WordWrap
horizontalAlignment: Text.AlignHCenter

View File

@ -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()
}

View File

@ -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

View File

@ -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()
}
}

View File

@ -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

View File

@ -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

View File

@ -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 {

View File

@ -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");
}
}
]

View File

@ -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-")
}
}
}

View File

@ -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

View File

@ -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)
}