src/i18n/Messages/Symfony/SymfonyMessageProvider.php
protected function load($locale)
    {
        if (isset($this->loadedLocales[$locale])) {
            return;
        }

        // Add full locale file. E.g. 'en_NZ'
        $this
            ->getTranslator()
            ->addResource('ss', $this->getSourceDirs(), $locale);

        // Add lang-only file. E.g. 'en'
        $lang = i18n::getData()->langFromLocale($locale);
        if ($lang !== $locale) {
            $this
                ->getTranslator()
                ->addResource('ss', $this->getSourceDirs(), $lang);
        }


        $this->loadedLocales[$locale] = true;
    }
protected function load($locale)
    {
        if (isset($this->loadedLocales[$locale])) {
            return;
        }

        // Add full locale file. E.g. 'en_NZ'
        $this
            ->getTranslator()
            ->addResource('ss', $this->getSourceDirs(), $locale);

        // Add lang-only file. E.g. 'en'
        $lang = i18n::getData()->langFromLocale($locale);
        if ($lang !== $locale) {
            $this
                ->getTranslator()
                ->addResource('ss', $this->getSourceDirs(), $lang);
        }


        $this->loadedLocales[$locale] = true;
    }
protected function load ( $ locale ) { if ( isset ( $ this -> loadedLocales [ $ locale ] ) ) { return ; } // Add full locale file. E.g. 'en_NZ' $ this -> getTranslator ( ) -> addResource ( 'ss' , $ this -> getSourceDirs ( ) , $ locale ) ; // Add lang-only file. E.g. 'en' $ lang = i18n :: getData ( ) -> langFromLocale ( $ locale ) ; if ( $ lang !== $ locale ) { $ this -> getTranslator ( ) -> addResource ( 'ss' , $ this -> getSourceDirs ( ) , $ lang ) ; } $ this -> loadedLocales [ $ locale ] = true ; }
Load resources for the given locale

@param string $locale
Load resources for the given locale