mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Modify the translation method of PasswordBar.qml to i18n.
This commit is contained in:
parent
3fdbabbf0b
commit
76d3323e8f
1 changed files with 5 additions and 5 deletions
|
|
@ -24,7 +24,7 @@ Rectangle {
|
||||||
// for displaying temporary number in pin dot display
|
// for displaying temporary number in pin dot display
|
||||||
property int previewCharIndex: -2
|
property int previewCharIndex: -2
|
||||||
|
|
||||||
property string pinLabel: qsTr("Enter PIN")
|
property string pinLabel: i18n("Enter PIN")
|
||||||
|
|
||||||
property bool keypadOpen
|
property bool keypadOpen
|
||||||
|
|
||||||
|
|
@ -41,11 +41,11 @@ Rectangle {
|
||||||
target: root.lockScreenState
|
target: root.lockScreenState
|
||||||
|
|
||||||
function onUnlockSucceeded() {
|
function onUnlockSucceeded() {
|
||||||
root.pinLabel = qsTr("Logging in...");
|
root.pinLabel = i18n("Logging in...");
|
||||||
}
|
}
|
||||||
|
|
||||||
function onUnlockFailed() {
|
function onUnlockFailed() {
|
||||||
root.pinLabel = qsTr("Wrong PIN");
|
root.pinLabel = i18n("Wrong PIN");
|
||||||
}
|
}
|
||||||
|
|
||||||
function onPasswordChanged() {
|
function onPasswordChanged() {
|
||||||
|
|
@ -85,8 +85,8 @@ Rectangle {
|
||||||
function keyPress(data) {
|
function keyPress(data) {
|
||||||
if (!lockScreenState.waitingForAuth) {
|
if (!lockScreenState.waitingForAuth) {
|
||||||
|
|
||||||
if (root.pinLabel !== qsTr("Enter PIN")) {
|
if (root.pinLabel !== i18n("Enter PIN")) {
|
||||||
root.pinLabel = qsTr("Enter PIN");
|
root.pinLabel = i18n("Enter PIN");
|
||||||
}
|
}
|
||||||
|
|
||||||
root.previewCharIndex = lockScreenState.password.length;
|
root.previewCharIndex = lockScreenState.password.length;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue