field_attach_preprocess() was (re-)introduced by #367595: Translatable fields, but currently only node module calls it.
Other fieldable entities (users, comments) should call it too. Taxo terms are a little off, because thet're not rendered through a template right now.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

plach’s picture

Issue tags: +translatable fields

@yched:

I think at some point we discussed the fact that only nodes would hold translatable fields for now, to limitate UI work. Sorry if I'm on crack and that was dropped later on ?

Yes, that's true, although I'm trying to make the UI work with any fieldable entity. However without this themers needing to access the raw field values would still need to specify the langcode (FIELD_LANGUAGE_NONE), so this is needed. Not critical, though.

pounard’s picture

Assigned: Unassigned » pounard
pounard’s picture

Status: Active » Needs review
FileSize
1.8 KB

This is my first shot with field module, patch definitely needs review

pounard’s picture

FileSize
1.67 KB

Proper file (without header junk)

yched’s picture

Status: Needs review » Needs work

Great !

Aside from the missing '.' at the end of both + // Preprocess fields comments, this is ready to go

yched’s picture

Status: Needs work » Reviewed & tested by the community
FileSize
1.6 KB

Just fixed the comments. RTBC.

Status: Reviewed & tested by the community » Needs work

The last submitted patch failed testing.

sun.core’s picture

This probably needs a re-roll?

plach’s picture

Status: Needs work » Needs review
FileSize
1.71 KB

Rerolled

Status: Needs review » Needs work

The last submitted patch, field_attach_preprocess-560608-9.patch, failed testing.

plach’s picture

Status: Needs work » Needs review
FileSize
1.72 KB

This should work.

plach’s picture

Status: Needs review » Reviewed & tested by the community

Green. Setting RTBC per #6.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD.

Status: Fixed » Closed (fixed)
Issue tags: -translatable fields

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