Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The watchdog notice is getting garbled.
Instead of this:
if ($alert->uid != 0) {
$mylink = l($alert->mail , 'user/'. $alert->uid .'/edit');
}
else {
$mylink = $alert->mail;
}
// Add an entry to the watchdog log.
watchdog('comment_notify', t('Notify ') . $mylink,
It should be this:
// Add an entry to the watchdog log.
watchdog('comment_notify', t('Notified: ') . $alert->mail,
Comment | File | Size | Author |
---|---|---|---|
#3 | 239008_3_watchdog_translatable.patch | 1.36 KB | greggles |
Comments
Comment #1
gregglesYeah - even that is not the best way to include the $alert->mail because it assumes that the mail should come at the end of the line which may not be valid for all languages. Thanks for the report.
I won't be able to get to this for a month or two.
Comment #2
gregglesI actually don't see a problem with putting the link into the title. Can you clarify?
Comment #3
gregglesHere is a patch to fix the translatability of the message...
Comment #4
gregglesand fixed.
If you can clarify the problem with putting a link in the message I'd appreciate it.
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.