lib/Psc/CMS/Controller/AbstractEntityController.php
protected function initPropertyTranslations($domain = NULL) {
    $entityMeta = $this->getEntityMeta();
    $translator = $this->translationContainer->getTranslator();

    $this->on('init.labeler', function ($labeler) use ($domain, $entityMeta, $translator) {
      foreach ($entityMeta->getSetMeta()->getKeys() as $propertyName) {
        $property = $entityMeta->getPropertyMeta($propertyName);
        $labeler->label(
          $property->getName(),

          $translator->trans(
            sprintf('entities.%s.%s', $entityMeta->getEntityName(), $property->getCanonicalName()),
            array(),
            $domain ?: 'project'
          )
        );
      }
    });
  }
protected function initPropertyTranslations($domain = NULL) {
    $entityMeta = $this->getEntityMeta();
    $translator = $this->translationContainer->getTranslator();

    $this->on('init.labeler', function ($labeler) use ($domain, $entityMeta, $translator) {
      foreach ($entityMeta->getSetMeta()->getKeys() as $propertyName) {
        $property = $entityMeta->getPropertyMeta($propertyName);
        $labeler->label(
          $property->getName(),

          $translator->trans(
            sprintf('entities.%s.%s', $entityMeta->getEntityName(), $property->getCanonicalName()),
            array(),
            $domain ?: 'project'
          )
        );
      }
    });
  }
protected function initPropertyTranslations ( $ domain = NULL ) { $ entityMeta = $ this -> getEntityMeta ( ) ; $ translator = $ this -> translationContainer -> getTranslator ( ) ; $ this -> on ( 'init.labeler' , function ( $ labeler ) use ( $ domain , $ entityMeta , $ translator ) { foreach ( $ entityMeta -> getSetMeta ( ) -> getKeys ( ) as $ propertyName ) { $ property = $ entityMeta -> getPropertyMeta ( $ propertyName ) ; $ labeler -> label ( $ property -> getName ( ) , $ translator -> trans ( sprintf ( 'entities.%s.%s' , $ entityMeta -> getEntityName ( ) , $ property -> getCanonicalName ( ) ) , array ( ) , $ domain ? : 'project' ) ) ; } } ) ; }
Loads translations keys for each property of the entity of the controller with labels

domain: project (if not specified)
key:
entities.<entityName>.<propertyName>

for example:
entities.news-entry.published
entities.news-entry.teaser

if property is i18n property the i18n will be stripped
Loads translations keys for each property of the entity of the controller with labels