Ouzo\I18n::loadLabels PHP 메소드

loadLabels() 공개 정적인 메소드

public static loadLabels ( )
    public static function loadLabels()
    {
        if (!self::$_labels) {
            $language = self::getLanguage();
            $path = Path::join(ROOT_PATH, 'locales', $language . '.php');
            if (!Files::exists($path)) {
                throw new Exception('Cannot find declared language file: ' . $language);
            }
            /** @noinspection PhpIncludeInspection */
            self::$_labels = (require $path);
        }
        return self::$_labels;
    }