watchdog('file', t('%source has been renamed to %destination', array('%source' => $old_filename, '%destination' => $file->filename)));

According to the documentation the message should not be translated.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Chi created an issue. See original summary.

Status: Needs review » Needs work

The last submitted patch, 2: 2677118-2.patch, failed testing.

Chi’s picture

Status: Needs work » Needs review
poker10’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Pending Drupal 7 commit

Thanks, this looks as a good fix!

I have quickly checked the whole D7 codebase and it seems like these three are the only usages of watchdog() with the t() function. RTBC.

  • mcdruid committed 4884d155 on 7.x
    Issue #2677118 by Chi, poker10: Wrong usage of watchdog in system.api....
mcdruid’s picture

Status: Reviewed & tested by the community » Fixed
Issue tags: -Pending Drupal 7 commit

...these three are the only usages of watchdog() with the t() function.

Great; thanks for the patch and the review!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.