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 anchors.centerIn: parent
text: { text: {
if (statusBadge.value > 99) { if (statusBadge.value > 99) {
return "99+"; return qsTr("99+");
} }
return statusBadge.value; return statusBadge.value;
} }

View File

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

View File

@ -39,21 +39,21 @@ StatusListItem {
id: addButton id: addButton
icon.name: "add" icon.name: "add"
icon.width: 20 icon.width: 20
visible: statusChatListCategoryItem.showAddButton && visible: statusChatListCategoryItem.showAddButton &&
(statusChatListCategoryItem.highlighted || (statusChatListCategoryItem.highlighted ||
statusChatListCategoryItem.sensor.containsMouse) statusChatListCategoryItem.sensor.containsMouse)
onClicked: statusChatListCategoryItem.addButtonClicked(mouse) onClicked: statusChatListCategoryItem.addButtonClicked(mouse)
tooltip.text: "Add channel inside category" tooltip.text: qsTr("Add channel inside category")
}, },
StatusChatListCategoryItemButton { StatusChatListCategoryItemButton {
id: menuButton id: menuButton
icon.name: "more" icon.name: "more"
icon.width: 21 icon.width: 21
visible: statusChatListCategoryItem.showMenuButton && visible: statusChatListCategoryItem.showMenuButton &&
(statusChatListCategoryItem.highlighted || (statusChatListCategoryItem.highlighted ||
statusChatListCategoryItem.sensor.containsMouse) statusChatListCategoryItem.sensor.containsMouse)
onClicked: statusChatListCategoryItem.menuButtonClicked(mouse) onClicked: statusChatListCategoryItem.menuButtonClicked(mouse)
tooltip.text: "More" tooltip.text: qsTr("More")
}, },
StatusChatListCategoryItemButton { StatusChatListCategoryItemButton {
id: toggleButton id: toggleButton

View File

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

View File

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

View File

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

View File

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

View File

@ -26,7 +26,7 @@ import StatusQ.Core.Theme 0.1
topPadding: 8 topPadding: 8
bottomPadding: 8 bottomPadding: 8
clearable: true clearable: true
placeholderText: "Search" placeholderText: qsTr("Search")
icon.name: "search" icon.name: "search"
} }
\endqml \endqml
@ -47,7 +47,7 @@ Item {
/*! /*!
\qmlproperty bool StatusBaseInput::acceptReturn \qmlproperty bool StatusBaseInput::acceptReturn
This property indicates whether the StatusBaseInput allows pressing Enter or Return. This property indicates whether the StatusBaseInput allows pressing Enter or Return.
This is used in case multiline is false and we still want to interact using Enter or Return. Default value is false. This is used in case multiline is false and we still want to interact using Enter or Return. Default value is false.
*/ */
property bool acceptReturn: false property bool acceptReturn: false

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -6,7 +6,7 @@ StatusAsyncValidator {
name: "asyncEns" 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) { validate: function (asyncResult) {
return Utils.isValidAddress(asyncResult) return Utils.isValidAddress(asyncResult)

View File

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

View File

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

View File

@ -47,7 +47,7 @@ StatusValidator {
property int top property int top
name: "intValidator" 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 } validatorObj: IntValidator { bottom: root.bottom; locale: root.locale; top: root.top }
validate: function (t) { validate: function (t) {

View File

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

View File

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

View File

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

View File

@ -10,7 +10,7 @@ Rectangle {
id: root id: root
property string chatId: "" property string chatId: ""
property string name: "channelName" 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: "" property string identicon: ""
// TODO: what about dark theme? // TODO: what about dark theme?
@ -22,7 +22,7 @@ Rectangle {
Loader { Loader {
id: identicon id: identicon
sourceComponent: root.identicon === "" ? statusIdenticon : userOrChannelIdenticon sourceComponent: root.identicon === "" ? statusIdenticon : userOrChannelIdenticon
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: 16 anchors.leftMargin: 16
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
@ -120,7 +120,7 @@ Rectangle {
font.pixelSize: 14 font.pixelSize: 14
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
text: "Open" text: qsTr("Open")
color: "black" color: "black"
} }
} }

View File

@ -39,10 +39,10 @@ import "statusModal" as Spares
] ]
rightButtons: [ rightButtons: [
StatusButton { StatusButton {
text: "Button" text: qsTr("Button")
}, },
StatusButton { StatusButton {
text: "Button" text: qsTr("Button")
} }
] ]
} }
@ -87,7 +87,7 @@ QC.Popup {
border.width: 1 border.width: 1
StatusBaseText { StatusBaseText {
anchors.centerIn: parent anchors.centerIn: parent
text: "Add any header here" text: qsTr("Add any header here")
font.pixelSize: 15 font.pixelSize: 15
color: Theme.palette.directColor1 color: Theme.palette.directColor1
} }
@ -115,7 +115,7 @@ QC.Popup {
border.width: 1 border.width: 1
StatusBaseText { StatusBaseText {
anchors.centerIn: parent anchors.centerIn: parent
text: "Add any footer here" text: qsTr("Add any footer here")
font.pixelSize: 15 font.pixelSize: 15
color: Theme.palette.directColor1 color: Theme.palette.directColor1
} }
@ -137,7 +137,7 @@ QC.Popup {
This property exposes the different properties of the standard header. This property exposes the different properties of the standard header.
\endqml \endqml
*/ */
property StatusModalHeaderSettings header: StatusModalHeaderSettings {} property StatusModalHeaderSettings header: StatusModalHeaderSettings {}
/*! /*!
\qmlproperty rightButtons \qmlproperty rightButtons
This property helps user assign the right buttons on the footer. This property helps user assign the right buttons on the footer.

View File

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

View File

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