keepassxc
keepassxc copied to clipboard
Preview panel adds extra space to translate “invalid key”
Overview
For some languages, an extra space is added to the translated word “invalid” in the preview panel for TOTP. I checked the translation files and there are no problems, everything is correct.
Steps to Reproduce
- Configure TOTP with an invalid key
- For example, switch to Bulgarian language
- Show TOTP in the preview panel
Good find, we should be handling totp generation better. Right now, if there is an error, either the string "Invalid Settings" or "Invalid Key" is returned instead of a totp value or a blank string. We should handle that situation more gracefully and in the context of the data handling.