protected function namespaceChanged()
    {
        // Get locale we target (performance)
        $encoding = $this->getEncoding();
        $redirectLocale = $this->getRedirectLocale();

        // Init interface for translation
        if ((!self::$translatorInterfaces) || (false === isset(self::$translatorInterfaces[$encoding]))) {
            self::$translatorInterfaces[$encoding] = $this->translatorInterfaceFactory();
        }

        $locale = ($redirectLocale !== null) ? $redirectLocale : $this->getLocale();

        // Set the new namespace and retrieve key to translationtable
        $this->setTranslationTableUid(
            self::$translatorInterfaces[$encoding]->initLocaleNamespace(
                $locale,
                $this->getNamespaces()
            )
        );

        return true;
    }
protected function namespaceChanged()
    {
        // Get locale we target (performance)
        $encoding = $this->getEncoding();
        $redirectLocale = $this->getRedirectLocale();

        // Init interface for translation
        if ((!self::$translatorInterfaces) || (false === isset(self::$translatorInterfaces[$encoding]))) {
            self::$translatorInterfaces[$encoding] = $this->translatorInterfaceFactory();
        }

        $locale = ($redirectLocale !== null) ? $redirectLocale : $this->getLocale();

        // Set the new namespace and retrieve key to translationtable
        $this->setTranslationTableUid(
            self::$translatorInterfaces[$encoding]->initLocaleNamespace(
                $locale,
                $this->getNamespaces()
            )
        );

        return true;
    }
protected function namespaceChanged ( ) { // Get locale we target (performance) $ encoding = $ this -> getEncoding ( ) ; $ redirectLocale = $ this -> getRedirectLocale ( ) ; // Init interface for translation if ( ( ! self :: $ translatorInterfaces ) || ( false === isset ( self :: $ translatorInterfaces [ $ encoding ] ) ) ) { self :: $ translatorInterfaces [ $ encoding ] = $ this -> translatorInterfaceFactory ( ) ; } $ locale = ( $ redirectLocale !== null ) ? $ redirectLocale : $ this -> getLocale ( ) ; // Set the new namespace and retrieve key to translationtable $ this -> setTranslationTableUid ( self :: $ translatorInterfaces [ $ encoding ] -> initLocaleNamespace ( $ locale , $ this -> getNamespaces ( ) ) ) ; return true ; }
This method is intend to re-initialize the namespaces in translation-tables.

@author Benjamin Carl <opensource@clickalicious.de>
This method is intend to re - initialize the namespaces in translation - tables .