Language::getLocale() method

Get locale for this language

See the Languages::getLocale() method for full details.

Usage

// basic usage
$string = $language->getLocale();

// usage with all arguments
$string = $language->getLocale(int $category = 6);

Arguments

NameType(s)Description
category (optional)int

Optional category (default=LC_ALL)

Return value

string bool

See Also


Language methods and properties

API reference based on ProcessWire core version 3.0.244

“The end client and designer love the ease at which they can update the website. Training beyond how to log in wasn’t even necessary since ProcessWire’s default interface is straightforward.” —Jonathan Lahijani