protected function buildTranslationtable($locale, array $namespaces)
    {
        // It simply does not make sense in gettext™ to iterate different namespaces! We use the first one
        $namespace = $namespaces[0];

        // Wrap result into array by locale indexed
        return [
            $locale => $this->initI18n(
                $locale,
                $this->getEncoding(),
                $namespace,
                $this->getPath()
            ),
        ];
    }
protected function buildTranslationtable($locale, array $namespaces)
    {
        // It simply does not make sense in gettext™ to iterate different namespaces! We use the first one
        $namespace = $namespaces[0];

        // Wrap result into array by locale indexed
        return [
            $locale => $this->initI18n(
                $locale,
                $this->getEncoding(),
                $namespace,
                $this->getPath()
            ),
        ];
    }
protected function buildTranslationtable ( $ locale , array $ namespaces ) { // It simply does not make sense in gettext™ to iterate different namespaces! We use the first one $ namespace = $ namespaces [ 0 ] ; // Wrap result into array by locale indexed return [ $ locale => $ this -> initI18n ( $ locale , $ this -> getEncoding ( ) , $ namespace , $ this -> getPath ( ) ) , ] ; }
This method is intend to build a translation-tables for giving locale and namespace.

@param string $locale     The locale the table get build for
@param array  $namespaces The namespace(s) of the table get build for

@author Benjamin Carl <opensource@clickalicious.de>

@return array Key value based (key[locale] => value[os/system locale])
This method is intend to build a translation - tables for giving locale and namespace .