Class Script
Script helper stuff.
Methods summary
public static
string[]
|
|
public static
string[]
|
#
getAvailableScriptCodes( string $locale )
Get the list of all the available script codes that have a translation for a specific language. |
public static
string
|
#
getScriptName( string|mixed $scriptCode, string $preferredVariant = '', boolean $fallbackToEnglish = true, string $locale = '' )
Get the name of a script given its code. |
public static
array
|
#
getAllScripts( string $preferredVariant = '', boolean $fallbackToEnglish = true, string $locale = '' )
Get all the scripts. |
Constants summary
string |
ALTERNATIVENAME_SECONDARY
Script alternative name: secondary. |
#
'secondary'
|
string |
ALTERNATIVENAME_VARIANT
Script alternative name: variant. |
#
'variant'
|
string |
ALTERNATIVENAME_SHORT
Script alternative name: short. |
#
'short'
|
string |
ALTERNATIVENAME_STANDALONE
Script alternative name: stand alone. |
#
'stand-alone'
|