I18nLanguage
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- appendData() : mixed
- comma() : null|string
- Gets the comma used by this language
- dateFormat() : null|string
- Gets the PHP Date format for this Language
- dateTimeFormat() : null|string
- Gets the PHP DateTime format for this language
- flag() : null|string
- Gets the Country of the Language named english
- fqn() : null|string
- Gets the Full qualified Name of the Language (FQN)
- FromIniFile() : I18nLanguage
- Loads a Localization from an ini File
- FromJsonFile() : I18nLanguage
- Loads a Localization from a Json File
- FromXmlFile() : I18nLanguage
- Loads a Localization from a xml File
- FromYamlFile() : I18nLanguage
- Loads a Localization from a Yaml File
- getString() : null|string
- Gets a localization
- isoName() : null|string
- Gets the iso name Id of the Language (ISO639)
- name() : null|string
- Gets the Name of the language
- regionName() : null|string
- Gets the region of the Language (ISO639)
- stringExists() : bool
- Returns whether a localization exists for the path
- thousandSeperator() : null|string
- Gets the Thousand Seperator used by this language
- timeFormat() : null|string
- Gets the PHP Time format for this Language
Properties
$data
public
mixed
$data
$fileName
public
mixed
$fileName
Methods
__construct()
public
__construct(mixed $data, mixed $fileName) : mixed
Parameters
- $data : mixed
- $fileName : mixed
appendData()
public
appendData(mixed $data) : mixed
Parameters
- $data : mixed
comma()
Gets the comma used by this language
public
comma() : null|string
Return values
null|stringdateFormat()
Gets the PHP Date format for this Language
public
dateFormat() : null|string
Return values
null|stringdateTimeFormat()
Gets the PHP DateTime format for this language
public
dateTimeFormat() : null|string
Return values
null|stringflag()
Gets the Country of the Language named english
public
flag() : null|string
Return values
null|stringfqn()
Gets the Full qualified Name of the Language (FQN)
public
fqn() : null|string
Return values
null|stringFromIniFile()
Loads a Localization from an ini File
public
static FromIniFile(mixed $fileName) : I18nLanguage
Parameters
- $fileName : mixed
-
Filename to the Localization File
Return values
I18nLanguage —Language Document
FromJsonFile()
Loads a Localization from a Json File
public
static FromJsonFile(mixed $fileName) : I18nLanguage
Parameters
- $fileName : mixed
-
Filename to the Localization File
Return values
I18nLanguage —Language Document
FromXmlFile()
Loads a Localization from a xml File
public
static FromXmlFile(mixed $fileName) : I18nLanguage
Parameters
- $fileName : mixed
-
Filename to the Localization File
Return values
I18nLanguage —Language Document
FromYamlFile()
Loads a Localization from a Yaml File
public
static FromYamlFile(mixed $fileName) : I18nLanguage
Parameters
- $fileName : mixed
-
Filename to the Localization File
Tags
Return values
I18nLanguage —Language Document
getString()
Gets a localization
public
getString(mixed $path[, string $notExisting = "%1" ]) : null|string
Parameters
- $path : mixed
-
Localization Path
- $notExisting : string = "%1"
-
What to return if there's no localization for this path
Return values
null|stringisoName()
Gets the iso name Id of the Language (ISO639)
public
isoName() : null|string
Return values
null|stringname()
Gets the Name of the language
public
name() : null|string
Return values
null|stringregionName()
Gets the region of the Language (ISO639)
public
regionName() : null|string
Return values
null|stringstringExists()
Returns whether a localization exists for the path
public
stringExists(mixed $path) : bool
Parameters
- $path : mixed
-
Localization PAth
Return values
boolthousandSeperator()
Gets the Thousand Seperator used by this language
public
thousandSeperator() : null|string
Return values
null|stringtimeFormat()
Gets the PHP Time format for this Language
public
timeFormat() : null|string