ContenthistoryHelper::getFormValues

Method to get field labels for the fields in the JSON-encoded object.

First we see if we can find translatable labels for the fields in the object. We translate any we can find and return an array in the format object->name => label.