From 81cda65b20fd07c854477dc030a283fee252b02a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Tinkl?= Date: Tue, 19 Jul 2022 10:34:27 +0200 Subject: [PATCH] chore(i18n): add some missing i18n() + remove one last qsTrId() --- .../Onboarding/popups/ConfirmAddExistingKeyModal.qml | 4 ++-- ui/app/AppLayouts/Wallet/panels/SeedPhraseBackupWarning.qml | 2 +- ui/imports/shared/panels/NotificationWindow.qml | 2 +- ui/imports/shared/popups/DisplayNamePopup.qml | 2 +- ui/imports/shared/popups/SendModal.qml | 3 +-- 5 files changed, 6 insertions(+), 7 deletions(-) diff --git a/ui/app/AppLayouts/Onboarding/popups/ConfirmAddExistingKeyModal.qml b/ui/app/AppLayouts/Onboarding/popups/ConfirmAddExistingKeyModal.qml index 8fe1622f09..199d6bc907 100644 --- a/ui/app/AppLayouts/Onboarding/popups/ConfirmAddExistingKeyModal.qml +++ b/ui/app/AppLayouts/Onboarding/popups/ConfirmAddExistingKeyModal.qml @@ -16,7 +16,7 @@ ModalPopup { signal openModalClicked() StyledText { - text: "Do you want to add another existing key?" + text: qsTr("Do you want to add another existing key?") anchors.left: parent.left anchors.top: parent.top } @@ -26,7 +26,7 @@ ModalPopup { anchors.topMargin: Style.current.padding anchors.right: parent.right anchors.rightMargin: Style.current.padding - text: "Add another existing key" + text: qsTr("Add another existing key") onClicked : { openModalClicked() diff --git a/ui/app/AppLayouts/Wallet/panels/SeedPhraseBackupWarning.qml b/ui/app/AppLayouts/Wallet/panels/SeedPhraseBackupWarning.qml index b733303619..5dd1eabada 100644 --- a/ui/app/AppLayouts/Wallet/panels/SeedPhraseBackupWarning.qml +++ b/ui/app/AppLayouts/Wallet/panels/SeedPhraseBackupWarning.qml @@ -32,7 +32,7 @@ Rectangle { contentItem: Item { anchors.fill: parent Text { - text: "Back up" + text: qsTr("Back up") font.pixelSize: 13 font.weight: Font.Medium font.family: Style.current.fontRegular.name diff --git a/ui/imports/shared/panels/NotificationWindow.qml b/ui/imports/shared/panels/NotificationWindow.qml index edd6939488..f10b3a6e37 100644 --- a/ui/imports/shared/panels/NotificationWindow.qml +++ b/ui/imports/shared/panels/NotificationWindow.qml @@ -14,7 +14,7 @@ Item { id: root property string chatId: "" property string name: "channel name" - property string message: "Everything is connected" + property string message: qsTr("Everything is connected") property int chatType: 1 property var onClick diff --git a/ui/imports/shared/popups/DisplayNamePopup.qml b/ui/imports/shared/popups/DisplayNamePopup.qml index 8823b3efc3..fb0efc4c32 100644 --- a/ui/imports/shared/popups/DisplayNamePopup.qml +++ b/ui/imports/shared/popups/DisplayNamePopup.qml @@ -36,7 +36,7 @@ StatusModal { rightButtons: [ StatusButton { id: doneBtn - text: qsTr("Ok") + text: qsTr("OK") enabled: !!displayNameInput.text && displayNameInput.valid onClicked: { root.profileStore.setDisplayName(displayNameInput.text) diff --git a/ui/imports/shared/popups/SendModal.qml b/ui/imports/shared/popups/SendModal.qml index 715ce739cd..499af2afa9 100644 --- a/ui/imports/shared/popups/SendModal.qml +++ b/ui/imports/shared/popups/SendModal.qml @@ -376,8 +376,7 @@ StatusModal { "")) if (!gasEstimate.success) { - - console.warn(qsTrId("error-estimating-gas---1").arg(gasEstimate.error.message)) + console.warn("error estimating gas: %1").arg(gasEstimate.error.message) return }