chore(translations): add missing qsTrs

issue: status-im/status-desktop#4544
This commit is contained in:
Patryk Osmaczko 2022-05-09 19:39:02 +02:00 committed by Michał Cieślak
parent 80ac7d22b9
commit 76c9411329
24 changed files with 49 additions and 49 deletions

View File

@ -32,7 +32,7 @@ Rectangle {
anchors.centerIn: parent
text: {
if (statusBadge.value > 99) {
return "99+";
return qsTr("99+");
}
return statusBadge.value;
}

View File

@ -14,10 +14,10 @@ Item {
implicitWidth: chatListsAndCategories.width
property StatusTooltipSettings categoryAddButtonToolTip: StatusTooltipSettings {
text: "Add channel inside category"
text: qsTr("Add channel inside category")
}
property StatusTooltipSettings categoryMenuButtonToolTip: StatusTooltipSettings {
text: "More"
text: qsTr("More")
}
property var model: []

View File

@ -43,7 +43,7 @@ StatusListItem {
(statusChatListCategoryItem.highlighted ||
statusChatListCategoryItem.sensor.containsMouse)
onClicked: statusChatListCategoryItem.addButtonClicked(mouse)
tooltip.text: "Add channel inside category"
tooltip.text: qsTr("Add channel inside category")
},
StatusChatListCategoryItemButton {
id: menuButton
@ -53,7 +53,7 @@ StatusListItem {
(statusChatListCategoryItem.highlighted ||
statusChatListCategoryItem.sensor.containsMouse)
onClicked: statusChatListCategoryItem.menuButtonClicked(mouse)
tooltip.text: "More"
tooltip.text: qsTr("More")
},
StatusChatListCategoryItemButton {
id: toggleButton

View File

@ -180,7 +180,7 @@ Rectangle {
}
StatusToolTip {
text: "Unmute"
text: qsTr("Unmute")
visible: mutedIconSensor.containsMouse
}
}

View File

@ -58,7 +58,7 @@ Rectangle {
onClicked: statusChatToolBar.searchButtonClicked()
// initializing the tooltip
tooltip.text: "Search"
tooltip.text: qsTr("Search")
tooltip.orientation: StatusToolTip.Orientation.Bottom
tooltip.y: parent.height + 12
}
@ -72,7 +72,7 @@ Rectangle {
onClicked: statusChatToolBar.membersButtonClicked()
// initializing the tooltip
tooltip.text: "Members"
tooltip.text: qsTr("Members")
tooltip.orientation: StatusToolTip.Orientation.Bottom
tooltip.y: parent.height + 12
}
@ -87,7 +87,7 @@ Rectangle {
// initializing the tooltip
tooltip.visible: !!tooltip.text && menuButton.hovered && !popupMenuSlot.item.opened
tooltip.text: "More"
tooltip.text: qsTr("More")
tooltip.orientation: StatusToolTip.Orientation.Bottom
tooltip.y: parent.height + 12
@ -141,7 +141,7 @@ Rectangle {
type: StatusFlatRoundButton.Type.Secondary
// initializing the tooltip
tooltip.text: "Activity"
tooltip.text: qsTr("Activity")
tooltip.orientation: StatusToolTip.Orientation.Bottom
tooltip.y: parent.height + 12

View File

@ -20,8 +20,8 @@ import StatusQ.Core.Theme 0.1
\qml
StatusToastMessage {
primaryText: "Collectible is being minted..."
secondaryText: "View on Etherscan"
primaryText: qsTr("Collectible is being minted...")
secondaryText: qsTr("View on Etherscan")
loading: true
type: 0
linkUrl: "http://google.com"
@ -109,7 +109,7 @@ Control {
MouseArea {
anchors.fill: parent
onClicked: {
toastMessage.open("Verification Request Sent", "", "checkmark-circle", 1, false,"");
toastMessage.open(qsTr("Verification Request Sent"), "", "checkmark-circle", 1, false,"");
}
}
\endqml

View File

@ -20,9 +20,9 @@ import StatusQ.Core.Theme 0.1
StatusWizardStepper {
id: wizardStepper
stepsModel: ListModel {
ListElement {description:"Send Request"; loadingTime: 0; stepCompleted: false}
ListElement {description:"Receive Response"; loadingTime: 0; stepCompleted: false}
ListElement {description:"Confirm Identity"; loadingTime: 0; stepCompleted: false}
ListElement {description: qsTr("Send Request"); loadingTime: 0; stepCompleted: false}
ListElement {description: qsTr("Receive Response"); loadingTime: 0; stepCompleted: false}
ListElement {description: qsTr("Confirm Identity"); loadingTime: 0; stepCompleted: false}
}
}
\endqml

View File

@ -26,7 +26,7 @@ import StatusQ.Core.Theme 0.1
topPadding: 8
bottomPadding: 8
clearable: true
placeholderText: "Search"
placeholderText: qsTr("Search")
icon.name: "search"
}
\endqml

View File

@ -19,9 +19,9 @@ import StatusQ.Controls.Validators 0.1
StatusInput {
label: "Label"
charLimit: 30
errorMessage: "Input doesn't match validator"
errorMessage: qsTr("Input doesn't match validator")
input.clearable: true
input.placeholderText: "Placeholder text"
input.placeholderText: qsTr("Placeholder text")
}
\endqml

View File

@ -60,35 +60,35 @@ StatusProgressBar {
Default value: "Very weak"
*/
property string labelVeryWeak: "Very weak"
property string labelVeryWeak: qsTr("Very weak")
/*!
\qmlproperty string StatusPasswordStrengthIndicator::labelWeak
This property holds the text shown when the strength is StatusPasswordStrengthIndicator.Strength.Weak.
Default value: "Weak"
*/
property string labelWeak: "Weak"
property string labelWeak: qsTr("Weak")
/*!
\qmlproperty string StatusPasswordStrengthIndicator::labelSoso
This property holds the text shown when the strength is StatusPasswordStrengthIndicator.Strength.SoSo.
Default value: "So-so"
*/
property string labelSoso: "So-so"
property string labelSoso: qsTr("So-so")
/*!
\qmlproperty string StatusPasswordStrengthIndicator::labelGood
This property holds the text shown when the strength is StatusPasswordStrengthIndicator.Strength.Good.
Default value: "Good"
*/
property string labelGood: "Good"
property string labelGood: qsTr("Good")
/*!
\qmlproperty string StatusPasswordStrengthIndicator::labelGreat
This property holds the text shown when the strength is StatusPasswordStrengthIndicator.Strength.Great.
Default value: "Great"
*/
property string labelGreat: "Great"
property string labelGreat: qsTr("Great")
enum Strength {
None, // 0

View File

@ -10,7 +10,7 @@ import StatusQ.Controls 0.1
Item {
id: control
property string selectedColor
property string label: "Account color"
property string label: qsTr("Account color")
property var model
property bool enabled: true

View File

@ -4,7 +4,7 @@ import StatusQ.Core.Utils 0.1
StatusValidator {
name: "addressOrEns"
errorMessage: "Please enter a valid address or ENS name."
errorMessage: qsTr("Please enter a valid address or ENS name.")
validate: function (t) {
return Utils.isValidAddress(t) || Utils.isValidEns(t) ?

View File

@ -4,7 +4,7 @@ import StatusQ.Core.Utils 0.1
StatusValidator {
name: "address"
errorMessage: "Please enter a valid address."
errorMessage: qsTr("Please enter a valid address.")
validate: function (t) {
return Utils.isValidAddress(t) ? true : { actual: t }

View File

@ -6,7 +6,7 @@ StatusAsyncValidator {
name: "asyncEns"
errorMessage: "ENS name could not be resolved in to an address"
errorMessage: qsTr("ENS name could not be resolved in to an address")
validate: function (asyncResult) {
return Utils.isValidAddress(asyncResult)

View File

@ -5,7 +5,7 @@ Item {
id: statusAsyncValidator
property string name: ""
property string errorMessage: "invalid input"
property string errorMessage: qsTr("invalid input")
signal asyncComplete(var result)
signal validationComplete(var value, bool valid)

View File

@ -45,7 +45,7 @@ StatusValidator {
property real top
name: "floatValidator"
errorMessage: "Please enter a valid numeric value."
errorMessage: qsTr("Please enter a valid numeric value.")
validate: function (t) {
return !isNaN(t) && t >= bottom && t <= top ? true : {

View File

@ -47,7 +47,7 @@ StatusValidator {
property int top
name: "intValidator"
errorMessage: "Please enter a valid numeric value."
errorMessage: qsTr("Please enter a valid numeric value.")
validatorObj: IntValidator { bottom: root.bottom; locale: root.locale; top: root.top }
validate: function (t) {

View File

@ -5,7 +5,7 @@ StatusValidator {
name: "url"
errorMessage: "Please enter a valid URL"
errorMessage: qsTr("Please enter a valid URL")
validate: function (value) {
return Utils.isURL(value);

View File

@ -5,7 +5,7 @@ QtObject {
id: statusValidator
property string name: ""
property string errorMessage: "invalid input"
property string errorMessage: qsTr("invalid input")
property var validatorObj
property var validate: function (value) {

View File

@ -14,7 +14,7 @@ import StatusQ.Core.Theme 0.1
\qml
StatusBaseText {
width: 240
text: "Hello World!"
text: qsTr("Hello World!")
font.pixelSize: 24
color: Theme.pallete.directColor1
}

View File

@ -10,7 +10,7 @@ Rectangle {
id: root
property string chatId: ""
property string name: "channelName"
property string message: "My latest message\n with a return"
property string message: qsTr("My latest message\n with a return")
property string identicon: ""
// TODO: what about dark theme?
@ -120,7 +120,7 @@ Rectangle {
font.pixelSize: 14
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
text: "Open"
text: qsTr("Open")
color: "black"
}
}

View File

@ -39,10 +39,10 @@ import "statusModal" as Spares
]
rightButtons: [
StatusButton {
text: "Button"
text: qsTr("Button")
},
StatusButton {
text: "Button"
text: qsTr("Button")
}
]
}
@ -87,7 +87,7 @@ QC.Popup {
border.width: 1
StatusBaseText {
anchors.centerIn: parent
text: "Add any header here"
text: qsTr("Add any header here")
font.pixelSize: 15
color: Theme.palette.directColor1
}
@ -115,7 +115,7 @@ QC.Popup {
border.width: 1
StatusBaseText {
anchors.centerIn: parent
text: "Add any footer here"
text: qsTr("Add any footer here")
font.pixelSize: 15
color: Theme.palette.directColor1
}

View File

@ -16,7 +16,7 @@ StatusPopupMenu {
signal itemClicked(string firstLevelItemValue, string secondLevelItemValue)
StatusMenuItem {
text: "Anywhere"
text: qsTr("Anywhere")
onTriggered: {
searchPopup.resetSearchSelection();
root.itemClicked("", "");

View File

@ -18,8 +18,8 @@ StatusModal {
showFooter: false
property string searchText: contentItem.searchText
property string noResultsLabel: "No results"
property string defaultSearchLocationText: "Anywhere"
property string noResultsLabel: qsTr("No results")
property string defaultSearchLocationText: qsTr("Anywhere")
property bool loading: false
property Menu searchOptionsPopupMenu: Menu { }
property var searchResults: [ ]
@ -121,7 +121,7 @@ StatusModal {
root.searchSelectionButton = searchOptionsMenuButton
}
property string prefixText: "In"
property string prefixText: qsTr("In")
property string primaryText: ""
property string secondaryText: ""
property StatusIconSettings iconSettings: StatusIconSettings {