Class \Prado\I18N\TGlobalizationAutoDetect
TGlobalizationAutoDetect class will automatically try to resolve the default
culture using the user browser language settings.
You can specify the list of available cultures on the website by setting the \Prado\I18N\setAvailableLanguages property, eg:
<module id="globalization" class="TGlobalizationAutoDetect" charset="UTF-8" DefaultCulture="it" TranslateDefaultCulture="false" AvailableLanguages="it, en">
Class hierarchy
- \Prado\I18N\TGlobalizationAutoDetect
- \Prado\I18N\TGlobalization
- \Prado\TModule implements IModule
- \Prado\TApplicationComponent
- \Prado\TComponent
public
|
|
public
|
|
public
|
init(mixed $xml) : mixed
Initialize the Culture and Charset for this application.
You should override this method if you want a different way of setting the Culture and/or Charset for your application. If you override this method, call parent::init($xml) first. |
public
|
|
protected
|
|
protected
|
|
protected
|
\Prado\TApplicationComponent::FX_CACHE_FILE, \Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |