Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
mobile Datovka
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
8
Issues
8
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Packages
Packages
Container Registry
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Datovka projects
mobile Datovka
Commits
908484b7
Commit
908484b7
authored
Nov 07, 2016
by
Karel Slaný
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed some strings related to PIN set-up.
parent
653c8340
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
qml/pages/PinPage.qml
qml/pages/PinPage.qml
+12
-10
No files found.
qml/pages/PinPage.qml
View file @
908484b7
...
...
@@ -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 c
urrent PIN code
"
)
placeholderText
:
qsTr
(
"
C
urrent PIN code
"
)
text
:
""
}
TextField
{
...
...
@@ -112,7 +112,7 @@ Component {
echoMode
:
TextInput
.
Password
passwordMaskDelay
:
500
// milliseconds
inputMethodHints
:
Qt
.
ImhDigitsOnly
placeholderText
:
qsTr
(
"
Enter n
ew PIN code
"
)
placeholderText
:
qsTr
(
"
N
ew 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
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment