In Packages
Classes
Interfaces
Members
-
static address enum integer
-
Possible values for bbbfly.locale.ValidateAddress
Name Type Default Description none integer 0 houseno integer 1 zip integer 2 -
static date enum integer
-
Possible values for bbbfly.locale.FormatDate
Name Type Default Description datetime_short integer 0 datetime_long integer 1 date_short integer 2 date_long integer 3 time_short integer 4 time_long integer 5 -
static number enum integer
-
Possible values for bbbfly.locale.FormatNumber
Name Type Default Description decimal integer 0 percent integer 1 currency_code integer 2 currency_symbol integer 3
Methods
-
static bbbfly.locale.Compare (valueA, valueB, lang){integer}
-
Compare two values by local rules
Parameters:
Name Type Description valueA void valueB void lang bbbfly.locale.Lang optional Returns:
Type Description integer - -1|0|1 -
static bbbfly.locale.FormatDate (date, lang, type){void}
-
Format date and/or time to string
Parameters:
Name Type Default Description date Date lang bbbfly.locale.Lang optional type bbbfly.locale.date datetime_short optional Returns:
Type Description void -
static bbbfly.locale.FormatNumber (num, lang, type){void}
-
Format number to string
Parameters:
Name Type Default Description num number lang bbbfly.locale.Lang optional type bbbfly.locale.number decimal optional Returns:
Type Description void -
static bbbfly.locale.GetLang (){bbbfly.locale.Lang}
-
Get default local language
Returns:
Type Description bbbfly.locale.Lang -
static bbbfly.locale.GetLocalRules (lang){bbbfly.locale.Rules|null}
-
Get local rules
Parameters:
Name Type Description lang bbbfly.locale.Lang optional Returns:
Type Description bbbfly.locale.Rules | null -
static bbbfly.locale.Register (loc){boolean}
-
Register local rules
Parameters:
Name Type Description loc bbbfly.locale.Rules Returns:
Type Description boolean - If localization was registered -
static bbbfly.locale.RemoveDiacritics (text, lang){void}
-
Remove local diacritics from string
Parameters:
Name Type Description text string lang bbbfly.locale.Lang optional Returns:
Type Description void -
static bbbfly.locale.SetLang (lang){boolean}
-
Set default local language
Parameters:
Name Type Description lang bbbfly.locale.Lang Returns:
Type Description boolean - If language was set -
static bbbfly.locale.TextToAscii (text){void}
-
Remove local diacritics from string
Parameters:
Name Type Description text void Returns:
Type Description void -
static bbbfly.locale.ValidateAddress (text, lang, type){boolean}
-
Format number to string
Parameters:
Name Type Default Description text string lang bbbfly.locale.Lang optional type bbbfly.locale.address none optional Returns:
Type Description boolean