core/Lang.class.php
private static function selectPackage(string $pathname): string {
    $filename = $pathname . DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR . Lang::$locale . ".json";
    if (file_exists($filename)) {
      $pathname = $filename;
    } else {
      $pathname .= DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR . Lang::STANDARD_LOCALE . ".json";
    }
    return $pathname;
  }
private static function selectPackage(string $pathname): string {
    $filename = $pathname . DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR . Lang::$locale . ".json";
    if (file_exists($filename)) {
      $pathname = $filename;
    } else {
      $pathname .= DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR . Lang::STANDARD_LOCALE . ".json";
    }
    return $pathname;
  }
private static function selectPackage ( string $ pathname ) : string { $ filename = $ pathname . DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR . Lang :: $ locale . ".json" ; if ( file_exists ( $ filename ) ) { $ pathname = $ filename ; } else { $ pathname .= DIRECTORY_SEPARATOR . 'lang' . DIRECTORY_SEPARATOR . Lang :: STANDARD_LOCALE . ".json" ; } return $ pathname ; }
- Select package defined in configuration, case not exist package select standard package
@param string $pathname Pathname of package language
@return sting Pathname of package language
- Select package defined in configuration case not exist package select standard package