Commit 908484b7 authored by Karel Slaný's avatar Karel Slaný

Changed some strings related to PIN set-up.

parent 653c8340
......@@ -52,7 +52,7 @@ Component {
id: pinLabel
color: datovkaPalette.mid
width: myWidht
text: qsTr("You must enter the PIN code on application start-up.")
text: ""
wrapMode: Text.Wrap
}
Button {
......@@ -62,7 +62,7 @@ Component {
actionName = "new"
actionButton.visible = true
setPinCodeButton.visible = false
pinLabel.text = qsTr("Enter your new PIN code below:")
pinLabel.text = qsTr("Enter a new PIN code:")
setPinCodeString.visible = true
setPinCodeString.focus = true
getPinCodeString.visible = false
......@@ -76,7 +76,7 @@ Component {
actionButton.visible = true
changePinCodeButton.visible = false
disablePinCodeButton.visible = false
pinLabel.text = qsTr("For PIN change you must enter current amd new PIN code below:")
pinLabel.text = qsTr("In order to change the PIN code you must enter the current and a new PIN code:")
getPinCodeString.visible = true
getPinCodeString.focus = true
setPinCodeString.visible = true
......@@ -90,7 +90,7 @@ Component {
actionButton.visible = true
disablePinCodeButton.visible = false
changePinCodeButton.visible = false
pinLabel.text = qsTr("For PIN deactivating you must enter current PIN code below:")
pinLabel.text = qsTr("In order to deactivate the PIN code you must enter the current PIN code:")
getPinCodeString.visible = true
getPinCodeString.focus = true
}
......@@ -102,7 +102,7 @@ Component {
echoMode: TextInput.Password
passwordMaskDelay: 500 // milliseconds
inputMethodHints: Qt.ImhDigitsOnly
placeholderText: qsTr("Enter your current PIN code")
placeholderText: qsTr("Current PIN code")
text: ""
}
TextField {
......@@ -112,7 +112,7 @@ Component {
echoMode: TextInput.Password
passwordMaskDelay: 500 // milliseconds
inputMethodHints: Qt.ImhDigitsOnly
placeholderText: qsTr("Enter new PIN code")
placeholderText: qsTr("New PIN code")
text: ""
}
Text {
......@@ -128,10 +128,12 @@ Component {
onSendPinData: {
currentPIN = currentPinCode
if (currentPIN == "") {
pinLabel.text = qsTr("Currently there is no PIN code set.")
setPinCodeButton.visible = true
changePinCodeButton.visible = false
disablePinCodeButton.visible = false
} else {
pinLabel.text = qsTr("You will be asked to enter a PIN code on application start-up.")
setPinCodeButton.visible = false
changePinCodeButton.visible = true
disablePinCodeButton.visible = true
......@@ -156,7 +158,7 @@ Component {
/* set new pin code */
if (actionName == "new") {
if (setPinCodeString.text == "") {
errorLabel.text = qsTr("Error: PIN code missing!")
errorLabel.text = qsTr("Error: New PIN code is missing!")
errorLabel.visible = true
} else {
errorLabel.visible = false
......@@ -168,7 +170,7 @@ Component {
if (getPinCodeString.text == currentPIN) {
errorLabel.visible = false
if (setPinCodeString.text == "") {
errorLabel.text = qsTr("Error: New PIN code missing!")
errorLabel.text = qsTr("Error: New PIN code is missing!")
errorLabel.visible = true
} else {
errorLabel.visible = false
......@@ -176,7 +178,7 @@ Component {
pageView.pop(StackView.Immediate)
}
} else {
errorLabel.text = qsTr("Error: Current PIN is wrong! Try again.")
errorLabel.text = qsTr("Error: Current PIN code is wrong!")
errorLabel.visible = true
}
/* remove/disable current pin code */
......@@ -186,7 +188,7 @@ Component {
settings.updatePinSettings(false, "")
pageView.pop(StackView.Immediate)
} else {
errorLabel.text = qsTr("Error: Current PIN is wrong! Try again.")
errorLabel.text = qsTr("Error: Current PIN code is wrong!")
errorLabel.visible = true
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment