Confirmed users
446
edits
(talk a little about BCP47 in the concepts introduction, talk more about language tags) |
No edit summary |
||
| Line 23: | Line 23: | ||
SpiderMonkey ''does'', however, sometimes have to (very briefly) care about a Unicode extension component of a language tag -- but only to remove it. ECMA-402 often has better-structured means of specifying the same information, and so its algorithms require the Unicode extension component be removed before processing continues. | SpiderMonkey ''does'', however, sometimes have to (very briefly) care about a Unicode extension component of a language tag -- but only to remove it. ECMA-402 often has better-structured means of specifying the same information, and so its algorithms require the Unicode extension component be removed before processing continues. | ||
=== | === Currency codes === | ||
... | Formatting a number to display as currency depends upon the particular currency used, so currency codes play a role in number formatting. For example, one correct formatting for one hundred dollars USD is "$1.00" (two decimal places), while one hundred Japanese yen would be "¥100" (no decimal places). Additional characteristics determined by currency, besides decimal place count, include the currency symbol and a "long" name for it (e.g. dollars or yen). Currency codes are three letters traditionally capitalized. The full list is found in ISO 4217; the list is also available [http://www.xe.com/iso4217.php elsewhere]. | ||
=== Time zone name === | |||
Date formatting requires knowledge of the time zone. Time zone names are specified by the [http://www.iana.org/time-zones IANA Time Zone Database]. | |||
=== Collation === | |||
Collation is the process of sorting a list of strings, according to particular rules. Different locales sort text differently. Locales may also sort differently in different contexts: dictionary sort order versus phonebook sort order, say. Sorting also may or may not take into account numeric value: <code><nowiki>[</nowiki>1, 30, 5<nowiki>]</nowiki> order versus <code><nowiki>[</nowiki>1, 5, 30<nowiki>]</nowiki> order. | |||
== Internationalization in SpiderMonkey == | == Internationalization in SpiderMonkey == | ||