Netson\L4gettext\L4gettext::getLocaleAndEncoding PHP Method

getLocaleAndEncoding() public method

method to merge the locale and encoding into a single string
public getLocaleAndEncoding ( ) : string
return string
    public function getLocaleAndEncoding()
    {
        // windows compatibility - use only the locale, not the encoding
        if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
            return $this->getLocale();
        } else {
            return $this->getLocale() . "." . $this->getEncoding();
        }
    }