re: #379 (review)
Usually, we use a detailed text to show untranslated error messages to users for convenient googling and referencing (see bitcoin/bitcoin#16224). Now it only contains a list of errors. Could an untranslated error message be added here as well?
Just to clarify what’s being discussed, errors
is untranslated, and the error messages are self contained, so this dialog is consistent with other dialogs in using translated text in the main section, and untranslated text in the details section. The inconsistency is just in the prefixing.
On the prefixing, I do think it would be reasonable for a followup PR to append BitcoinGUI::tr("Original message:") + "\n" + QString::fromStdString(error.original)
if error.original != error.translated
to be a consistent with ThreadSafeMessageBox
but I think it would be better to do it in a separate PR because:
-
I think this logic should go in a common util function so it is not duplicated. Trying to do this and refactor the ThreadSafeMessageBox
code would expand the scope of this PR and complicate it when I think this PR is already a strict improvement and it’s been reviewed and tested by people.
-
In this specific place, just because of the fact that ReadSettings
errors are fully self-describing, I think adding the extra text would actually make the UX slightly worse (more repetitive and confusing) so more discussion in a followup PR about how to have consistency and clarity in these dialogs at same time could be a good idea.