mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-12 04:52:45 +00:00
- Currently, we are taking a error string and formatting it before it can be looked up for translation. This causes the lookups to always fail. - Don't format the error messages and send them as is. Let the Operation.translate_message and Notification take care of translation. Formatting will be them after translation. Set the formatting keys as they need so that exception string is inserted into the message Tests: - Set language to Spanish. Through code changes raise an exception in bepasty.privileged.setup(). Try to install bepasty app. Setup will fail and error message will shown. The error message will be localized and formatted with the patch. This is true in the app error message and in the notification. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>