Currently the property info does not tell one whether a property is translatable or not. We could just add a 'translatable' key to the property info like it exists for fields/entities.

CommentFileSizeAuthor
#3 entity_translatable.patch5.32 KBfago

Comments

plach’s picture

subscribe
(I deeply need to get some more familiarity with Entity API)

das-peter’s picture

subscribe

fago’s picture

Status: Active » Needs review
StatusFileSize
new5.32 KB

attached patch implements that + adds test coverage. Please review.

I had dome troubles with the static cache of field_language() (see patch), I guess the caching makes much sense when viewing an entity, but is a bit weird else as it doesn't get cleared.

good_man’s picture

subscribe, nice addition.

BenK’s picture

Subscribing

klausi’s picture

Code looks good, however I did not test the functionality myself.

fago’s picture

Status: Needs review » Fixed

Committed to CVS. :)

Status: Fixed » Closed (fixed)

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