PocketMine
BaseLang Class Reference

Public Member Functions

 __construct ($lang, $path=null, $fallback=self::FALLBACK_LANGUAGE)
 
 getName ()
 
 getLang ()
 
 translateString ($str, array $params=[], $onlyPrefix=null)
 
 translate (TextContainer $c)
 
 internalGet ($id)
 
 get ($id)
 

Data Fields

const FALLBACK_LANGUAGE = "eng"
 

Protected Member Functions

 loadLang ($path, array &$d)
 
 parseTranslation ($text, $onlyPrefix=null)
 

Protected Attributes

 $langName
 
 $lang = []
 
 $fallbackLang = []
 

Member Function Documentation

translateString (   $str,
array  $params = [],
  $onlyPrefix = null 
)
Parameters
string$str
string[]$params
Returns
string

The documentation for this class was generated from the following file: