Since watchdog entries are meant for a more tech-savvy audience I suggest to flag these strings with a distinct context so translators can take this into account.
Sorry, but atm I do not have a box with a diff available, so I cannot provide a patch file.
updater.inc, Line 175:
throw new UpdaterException(t('Unable to parse info file.', NULL, array('context' => 'watchdog')));
Comments
Comment #1
pfrenssenComment #5
dagmarMoved to
dblog.modulefor future triage.Comment #16
smustgrave commentedThank you for sharing your idea for improving Drupal.
We are working to decide if this proposal meets the Criteria for evaluating proposed changes. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or there is no community support. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!
Comment #18
smustgrave commentedWanted to bump 1 more time if this is needed or not?
Comment #19
dagmarIf I have to add my opinion here, I see the value of having a watchdog context because it enables translators to translate this (or ignore to translate them) but at the same time I don't know how many sites have this need. The source of logs is so vast that I doubt someone would need to translate them. Given the lack of requests this had in the latest my vote is a no.
If this is something really, really needed, it can be implemented by contrib by decorating DbLogController::formatMessage() to add the context there, or create a custom dblog_message view plugin to replace the current one.