It turns out that t() in fields is evil... who knew? See #1157426: Field system uses t() incorrectly and inconsistently and Gabor's post.

We should look through all the examples and remove t() from

  • its title (label)
  • its description
  • its default value
  • its allowed values

Comments

rfay’s picture

Excellent - thanks!

Anonymous’s picture

Status: Active » Closed (works as designed)

To clarify something that I myself wasn't clear on, this is only when processing user defined values for label, description, allowed values, and default values. There are currently no examples which use t() on user input as far as I can see.