src/Sulu/Component/Content/Compat/Structure/LegacyPropertyFactory.php
public function createTranslatedProperty($property, $locale, StructureInterface $structure = null)
    {
        if ($property instanceof ItemMetadata) {
            $property = $this->createProperty($property, $structure);
        }
        $property = new TranslatedProperty(
            $property,
            $locale,
            $this->namespaceRegistry->getPrefix('content_localized')
        );

        return $property;
    }
public function createTranslatedProperty($property, $locale, StructureInterface $structure = null)
    {
        if ($property instanceof ItemMetadata) {
            $property = $this->createProperty($property, $structure);
        }
        $property = new TranslatedProperty(
            $property,
            $locale,
            $this->namespaceRegistry->getPrefix('content_localized')
        );

        return $property;
    }
public function createTranslatedProperty ( $ property , $ locale , StructureInterface $ structure = null ) { if ( $ property instanceof ItemMetadata ) { $ property = $ this -> createProperty ( $ property , $ structure ) ; } $ property = new TranslatedProperty ( $ property , $ locale , $ this -> namespaceRegistry -> getPrefix ( 'content_localized' ) ) ; return $ property ; }
Create a new "translated" property.

@param object $property
@param string $locale

@return PropertyInterface
Create a new translated property .