core/Lang.class.php
public static final function addRoot(string $package, string $path) {
    if (!empty($package) && !empty($path)) {
      $dirname = realpath(Path::replaceOSSeparator($path));
      if (is_dir($dirname)) {
        Lang::$root[$package] = $dirname;
      }
    }
    return null;
  }
public static final function addRoot(string $package, string $path) {
    if (!empty($package) && !empty($path)) {
      $dirname = realpath(Path::replaceOSSeparator($path));
      if (is_dir($dirname)) {
        Lang::$root[$package] = $dirname;
      }
    }
    return null;
  }
public static final function addRoot ( string $ package , string $ path ) { if ( ! empty ( $ package ) && ! empty ( $ path ) ) { $ dirname = realpath ( Path :: replaceOSSeparator ( $ path ) ) ; if ( is_dir ( $ dirname ) ) { Lang :: $ root [ $ package ] = $ dirname ; } } return null ; }
- Define root of find of packages
@param string $package Root name of package language
@param string $path Pathname of package language
@return null
- Define root of find of packages