Getter for the language object for an object that has translations I impemented it a a static method because it would be redundantly declared in any multilanguage DataObject
Signature
public function get_translation(HasManyList
$componentset,
[boolean
$locale = false] )
Parameters
$componentset
—
object
has_many relation to be searched for the right translation