Elgg\I18n\Translator::registerPluginTranslations PHP 메소드

registerPluginTranslations() 공개 메소드

Registers translations in a directory assuming the standard plugin layout.
public registerPluginTranslations ( string $path ) : boolean
$path string Without the trailing slash.
리턴 boolean Success
    public function registerPluginTranslations($path)
    {
        $languages_path = rtrim($path, "\\/") . "/languages";
        // don't need to have translations
        if (!is_dir($languages_path)) {
            return true;
        }
        return $this->registerTranslations($languages_path);
    }