[SDDM Theme] Show caps lock warning
ClosedPublic

Authored by broulik on Oct 10 2016, 7:14 PM.

Details

Summary

We do the same on the lock screen and the code is straight from there.

Test Plan

Tested in both qmlscene and with a new sddm session
Capslock enabled: "Caps lock is on"
Capslock enabled with unlocking failed "Caps lock is in – login failed"
capslock not enabled with unlocking failed: "login failed"

This could even be put in 5.8 as the string is already there (as you can see it's translated for me already)

Diff Detail

Repository
R120 Plasma Workspace
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik updated this revision to Diff 7280.Oct 10 2016, 7:14 PM
broulik retitled this revision from to [SDDM Theme] Show caps lock warning.
broulik updated this object.
broulik edited the test plan for this revision. (Show Details)
broulik added reviewers: Plasma, Plasma: Design.
broulik set the repository for this revision to R120 Plasma Workspace.
Restricted Application added a project: Plasma. · View Herald TranscriptOct 10 2016, 7:14 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript

+1 for the change!
I think the string for failed unlock while capslock is on should be "Login failed (Caps lock is on)" though, as the "login failed" part is the more important one.

I just made it consistent with what we have in the lock screen and with what we have had for years.

We could surely change that (the bullet isn't translated anyway) but if we were to do this it must be consistently done in both places.

davidedmundson accepted this revision.Oct 10 2016, 8:11 PM
davidedmundson added a reviewer: davidedmundson.
davidedmundson added a subscriber: davidedmundson.

Thanks

This revision is now accepted and ready to land.Oct 10 2016, 8:11 PM
This revision was automatically updated to reflect the committed changes.