src/Lokos/ShopBundle/Controller/BaseController.php
/**
     * Returns translated message
     *
     * @param string $msg         Message to be translated
     * @param array  $params      Translation parameters
     * @param string $translation Translation domain
     *
     * @return string
     */
Returns translated message
@param string $msg         Message to be translated
@param array  $params      Translation parameters
@param string $translation Translation domain

@return string
Returns translated message @param string $msg Message to be translated @param array $params Translation parameters @param string $translation Translation domain @return string
protected function translate($msg, $params = array(), $translation = null)
    {
        if (!$translation) {
            $translation = $this->translation;
        }
        return $this->get('translator')->trans($msg, $params, $translation);
    }
protected function translate ( $ msg , $ params = array ( ) , $ translation = null ) { if ( ! $ translation ) { $ translation = $ this -> translation ; } return $ this -> get ( 'translator' ) -> trans ( $ msg , $ params , $ translation ) ; }
Returns translated message
 @param string $msg         Message to be translated
 @param array  $params      Translation parameters
 @param string $translation Translation domain
Returns translated message @param string $msg Message to be translated @param array $params Translation parameters @param string $translation Translation domain