FAQ Topic - Internationalisation and Localisation in javascript (2010-05-18)

F

FAQ server

-----------------------------------------------------------------------
FAQ Topic - Internationalisation and Localisation in javascript
-----------------------------------------------------------------------

Internationalisation means using one form which is everywhere both
acceptable and understood. Any international standard not supported by
default can be coded for.

For example, there is an International Standard for numeric Gregorian
date format; but none for decimal and thousands separators.

Localisation is the process of adapting software for a specific region
or language by adding locale-specific components and translating text. It
cannot work well in general, because it requires a knowledge of all
preferences and the ability to choose the right one, in an environment
where many systems are inappropriately set anyway.

ECMAScript has a few localisation features. The various
` toString() ` methods are all implementation dependent,
but tend to use either UK or US settings (not necessarily correctly).
ECMAScript Ed. 3 introduced some capabilities, including the
` toLocaleString() `method which should create a string
based on the host's locale.

ECMAScript 5th Edition introduces limited ISO 8601 capabilities with
` Date.prototype.toISOString() ` and new behavior for ` Date.parse() `.


The complete comp.lang.javascript FAQ is at
http://jibbering.com/faq/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,070
Latest member
BiogenixGummies

Latest Threads

Top