Sunil Mohan Adapa e9adc5ce68
setup: Translate errors when installing/updating/repairing apps
- 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>
2024-10-21 12:47:13 -04:00
..
2024-10-16 21:08:29 -07:00
2024-10-07 20:38:12 -04:00
2023-08-23 21:47:39 -04:00
2024-03-16 09:17:35 +02:00
2024-10-16 21:07:54 -07:00
2024-03-16 09:17:35 +02:00
2024-10-16 21:08:29 -07:00