Formats data according to local conventions. This is an easier-to-use helper version of the LocaleInfo set of classes. To set the locale, set the config param: sprout.locale The default is AUS - Australia
This is the code documentation for the SproutCMS project
Search documentation |
class I18nFormats data according to local conventions. This is an easier-to-use helper version of the LocaleInfo set of classes. To set the locale, set the config param: sprout.locale The default is AUS - Australia
Variables
Functions
public addressFieldsvoid I18n::addressFields ( bool $required ); Returns HTML for address fields public initvoid I18n::init ( ); Set the locale to the default as per the configuration public initJavaScriptstring I18n::initJavaScript ( ); Return JavaScript code which initialises the I18n javascript library with the locale parameters public longdateunknown I18n::longdate ( [ int $timestamp ] ); Return a formatted date in a short format (e.g. Mon 3rd Jan 2003) public moneyunknown I18n::money ( float $number [, mixed $precision ] ); Return a formatted currency value public numberunknown I18n::number ( float $number , int $precision ); Return a formatted number public setLocalevoid I18n::setLocale ( string $country ); Set the locale to something other than the default Useful for multi-currency shopping carts, for example. public shortdateunknown I18n::shortdate ( [ int $timestamp ] ); Return a formatted date in a short format (e.g. 3/1/2003) public timeunknown I18n::time ( [ int $timestamp ] ); Return a formatted dtime (e.g. 5:30pm) |
Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Monday, 3rd April, 2023 at 02:59 pm |