Class Language

Summary

Fully Qualified Name: CodeIgniter\Language\Language

Description

Handle system messages and localization.

Locale-based, built on top of PHP internationalization.

Methods

Name Description Defined By
__construct() Language
getLine() Parses the language string for a file, loads the file, if necessary, getting the line. Language
getLocale() Language
setLocale() Sets the current locale to use when performing string lookups. Language

Method Details

__construct()

Parameter Name Type Description
$locale

Returns: void

getLine()

Parses the language string for a file, loads the file, if necessary, getting the line.

Parameter Name Type Description
$line string Line.
$args array Arguments.

Returns: string|string[] Returns line.

getLocale()

Returns: string

setLocale()

Sets the current locale to use when performing string lookups.

Parameter Name Type Description
$locale string

Returns: $this

Top