469,581 Members | 1,960 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,581 developers. It's quick & easy.

FAQ Topic - Internationalization and Multinationalization in javascript.

-----------------------------------------------------------------------
FAQ Topic - Internationalization and Multinationalization in
javascript.
-----------------------------------------------------------------------

Internationalization means using one form which is both
acceptable and understood everywhere. By default, javascript
has no such features; but if an international standard exists
it can be coded for.

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

Multinationalization means using different forms for different
nations. It cannot work well in general, because it requires a
knowledge of all national preferences and the ability to choose
the right one, in an environment where many systems are
inappropriately set anyway.

JavaScript has a few Multinationalisation 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.

Much more support is expected in future versions of JavaScript.
===
Postings such as this are automatically sent once a day. Their
goal is to answer repeated questions, and to offer the content to
the community for continuous evaluation/improvement. The complete
comp.lang.javascript FAQ is at http://jibbering.com/faq/index.html.
The FAQ workers are a group of volunteers. The sendings of these
daily posts are proficiently hosted by www.pair.com.

Oct 2 '07 #1
4 2085
In comp.lang.javascript message <47***********************@news.sunsite.
dk>, Tue, 2 Oct 2007 23:00:02, FAQ server <ja********@dotinternet.be>
posted:
>-----------------------------------------------------------------------
FAQ Topic - Internationalization and Multinationalization in
javascript.
-----------------------------------------------------------------------

Internationalization means using one form which is both
acceptable and understood everywhere. By default, javascript
has no such features; but if an international standard exists
it can be coded for.
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 there is none for decimal and
thousands separators.
For example, there is an International Standard for numeric Gregorian date
format; but none for decimal and thousands separators.

>Multinationalization means using different forms for different
nations. It cannot work well in general, because it requires a
knowledge of all national preferences and the ability to choose
the right one, in an environment where many systems are
inappropriately set anyway.
Multinationalisation means using different forms for different readers. 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.

* Note : Nations such as BE, CA, CH may have multiple conventions. The
word "nations" is therefore not really appropriate.

>===
Postings such as this are automatically sent once a day. Their
goal is to answer repeated questions, and to offer the content to
the community for continuous evaluation/improvement. The complete
comp.lang.javascript FAQ is at http://jibbering.com/faq/index.html.
The FAQ workers are a group of volunteers. The sendings of these
daily posts are proficiently hosted by www.pair.com.
It might help if the quasi-sig were at the top, to be more obvious; there
could then be a minimal real sig "-- /Bart".

The quasi-sig material could be condensed a bit :-

Articles like this appear daily - to answer repeated questions, & to offer
the content to the community for continual evaluation & improvement.
The full newsgroup FAQ is at <http://jibbering.com/faq/index.html>.
The provision of these automated posts is hosted by <http://www.pair.com>.

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
<URL:http://www.merlyn.demon.co.uk/TP/BP/Delphi/&c., FAQqy topics & links;
<URL:http://www.merlyn.demon.co.uk/clpb-faq.txt RAH Prins : c.l.p.b mFAQ;
<URL:ftp://garbo.uwasa.fi/pc/link/tsfaqp.zipTimo Salmi's Turbo Pascal FAQ.
Oct 4 '07 #2
Dr J R Stockton said the following on 10/4/2007 9:32 AM:
In comp.lang.javascript message <47***********************@news.sunsite.
dk>, Tue, 2 Oct 2007 23:00:02, FAQ server <ja********@dotinternet.be>
posted:

<snip>

Before I change the entry, are you going to change your mind again in 10
months or so? The current entry is a copy/paste of *your* suggestion to
change it. The only difference is you proposed two entries and I made it
one.

<URL:
http://groups.google.com/group/comp.lang.javascript/browse_frm/thread/4d36f0e703cd4e93/069ffb1fb95114e5?lnk=gst&q=international+John+Stoc kton&rnum=13#069ffb1fb95114e5>
>
>===
Postings such as this are automatically sent once a day. Their
goal is to answer repeated questions, and to offer the content to
the community for continuous evaluation/improvement. The complete
comp.lang.javascript FAQ is at http://jibbering.com/faq/index.html.
The FAQ workers are a group of volunteers. The sendings of these
daily posts are proficiently hosted by www.pair.com.

It might help if the quasi-sig were at the top, to be more obvious; there
could then be a minimal real sig "-- /Bart".
I have emailed Bart (yesterday) and asked that the signature delimiter
be changed to <dash><dash<spacefrom the current delimiter.

--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Oct 5 '07 #3
In comp.lang.javascript message <pb*********************@giganews.com>,
Thu, 4 Oct 2007 20:55:54, Randy Webb <Hi************@aol.composted:
>
Before I change the entry, are you going to change your mind again in
10 months or so? The current entry is a copy/paste of *your* suggestion
to change it. The only difference is you proposed two entries and I
made it one.

I propose improvements when I think of something better. What method do
you use?

--
(c) John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v6.05 MIME.
Web <URL:http://www.merlyn.demon.co.uk/- FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "" (SonOfRFC1036)
Oct 5 '07 #4
Dr J R Stockton said the following on 10/5/2007 4:59 PM:
In comp.lang.javascript message <pb*********************@giganews.com>,
Thu, 4 Oct 2007 20:55:54, Randy Webb <Hi************@aol.composted:
>Before I change the entry, are you going to change your mind again in
10 months or so? The current entry is a copy/paste of *your* suggestion
to change it. The only difference is you proposed two entries and I
made it one.


I propose improvements when I think of something better.
Interesting that you didn't answer the question.
What method do you use?
I employ the JRS method whereby I sit back and complain about what
others do. You are familiar with it, no?

It is changed locally.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq/index.html
FAQ Notes: http://www.jibbering.com/faq/faq_notes/faq_notes.html
ECMAScript Language Specification via FAQ2.6
Oct 5 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Brian Kelley | last post: by
2 posts views Thread by Internationalization | last post: by
4 posts views Thread by FAQ server | last post: by
3 posts views Thread by FAQ server | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.