@@ -261,13 +261,19 @@ Item {
261261
262262 onShowPrompt: {
263263 if (greeter.narrowMode) {
264− var promptText = text.toLowerCase()
265264 if (isDefaultPrompt) {
266− promptText = lockscreen.alphaNumeric ?
267− i18n.tr("passphrase") : i18n.tr("passcode")
265+ if (lockscreen.alphaNumeric) {
266+ lockscreen.infoText = i18n.tr("Enter your passphrase")
267+ lockscreen.errorText = i18n.tr("Sorry, incorrect passphrase")
268+ } else {
269+ lockscreen.infoText = i18n.tr("Enter your passcode")
270+ lockscreen.errorText = i18n.tr("Sorry, incorrect passcode")
271+ }
272+ } else {
273+ lockscreen.infoText = i18n.tr("Enter your %1").arg(text.toLowerCase())
274+ lockscreen.errorText = i18n.tr("Sorry, incorrect %1").arg(text.toLowerCase())
268275 }
269− lockscreen.infoText = i18n.tr("Enter your %1").arg(promptText)
270− lockscreen.errorText = i18n.tr("Sorry, incorrect %1").arg(promptText)
276+
271277 lockscreen.show();
272278 }
273279 }