Problem/Motivation

There are three places in core which do something like:

new \Exception(t('Object of type "@class" cannot be printed.', array('@class' => get_class($arg))))

Proposed resolution

Remove the t() function from it and replace it with string concatenation / sprintf directly.

Remaining tasks

User interface changes

API changes

Data model changes

CommentFileSizeAuthor
#2 2608072-2.patch1.43 KBameymudras

Comments

dawehner created an issue. See original summary.

ameymudras’s picture

Status: Active » Needs review
StatusFileSize
new1.43 KB

Providing a patch

joelpittet’s picture

Status: Needs review » Reviewed & tested by the community

Thank you

Status: Reviewed & tested by the community » Needs work

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

dawehner’s picture

Status: Needs work » Reviewed & tested by the community
Issue tags: +Quickfix

Still perfect

xjm’s picture

Title: "Object of type "@class" cannot be printed." should not be translated » "Object of type "@class" cannot be printed." exception message should not be translated

  • alexpott committed 3c4cc2a on 8.1.x
    Issue #2608072 by ameymudras: "Object of type "@class" cannot be printed...

  • alexpott committed e793d4f on
    Issue #2608072 by ameymudras: "Object of type "@class" cannot be printed...
alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Working from @xjm'a post release triage document, committed 3c4cc2a and pushed to 8.0.x and 8.1.x. Thanks!

Status: Fixed » Closed (fixed)

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