Overview

Manages locale strings for all Solar classes.

Package

This class is part of the Solar package.

Inheritance:

Configuration Keys

  • code: The default locale code to use.

Constants

None.

Public Properties

These are all the public properties in the Solar_Locale class.

You can also view the list of all public, protected, and private properties.

$trans

Collected translation strings arranged by class and key.

Public Methods

These are all the public methods in the Solar_Locale class.

You can also view the list of all public, protected, and private methods.

__construct()

Constructor.

__destruct()

Default destructor; does nothing other than provide a safe fallback for calls to parent::__destruct().

dump()

Convenience method for getting a dump the whole object, or one of its properties, or an external variable.

fetch()

Returns the translated locale string for a class and key.

getCode()

Returns the current locale code.

getCountryCode()

Returns ISO 3166 country code for current locale code.

getLanguageCode()

Returns RFC 1766 (XHTML) language code for current locale code.

locale()

Looks up class-specific locale strings based on a key.

setCode()

Sets the locale code and clears out previous translations.



Local