Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Commit 21c1fd9

Browse files
committed
Merge branch 'licensing' of https://github.com/drewfish/Intl.js into drewfish-licensing
Conflicts: README.md
2 parents 3b7bb93 + 56f2a5c commit 21c1fd9

File tree

3 files changed

+90
-2
lines changed

3 files changed

+90
-2
lines changed

LICENSE.txt

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2013 Andy Earnshaw
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.
22+
23+
24+
------------------------------------------------------------------------------
25+
Contents of the `locale-data` directory are a modified form of the Unicode CLDR
26+
data found at http://www.unicode.org/cldr/data/. It comes with the following
27+
license.
28+
29+
COPYRIGHT AND PERMISSION NOTICE
30+
31+
Copyright (c) 1991-2013 Unicode, Inc. All rights reserved. Distributed under
32+
the Terms of Use in http://www.unicode.org/copyright.html.
33+
34+
Permission is hereby granted, free of charge, to any person obtaining a copy of
35+
the Unicode data files and any associated documentation (the "Data Files") or
36+
Unicode software and any associated documentation (the "Software") to deal in
37+
the Data Files or Software without restriction, including without limitation
38+
the rights to use, copy, modify, merge, publish, distribute, and/or sell copies
39+
of the Data Files or Software, and to permit persons to whom the Data Files or
40+
Software are furnished to do so, provided that (a) the above copyright
41+
notice(s) and this permission notice appear with all copies of the Data Files
42+
or Software, (b) both the above copyright notice(s) and this permission notice
43+
appear in associated documentation, and (c) there is clear notice in each
44+
modified Data File or in the Software as well as in the documentation
45+
associated with the Data File(s) or Software that the data or software has been
46+
modified.
47+
48+
THE DATA FILES AND SOFTWARE ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
49+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
50+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD
51+
PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR HOLDERS INCLUDED IN
52+
THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL
53+
DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
54+
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
55+
OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THE DATA FILES OR
56+
SOFTWARE.
57+
58+
Except as contained in this notice, the name of a copyright holder shall not be
59+
used in advertising or otherwise to promote the sale, use or other dealings in
60+
these Data Files or Software without prior written authorization of the
61+
copyright holder.
62+
63+
Unicode and the Unicode logo are trademarks of Unicode, Inc. in the United
64+
States and other countries. All third party trademarks referenced herein are
65+
the property of their respective owners.
66+

README.md

+22
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,25 @@ Contribute
9797
See the [CONTRIBUTING file][] for info.
9898

9999
[CONTRIBUTING file]: https://github.com/andyearnshaw/Intl.js/blob/master/CONTRIBUTING.md
100+
=======
101+
Contents of the `locale-data` directory are a modified form of the Unicode CLDR
102+
data found at http://www.unicode.org/cldr/data/. See the `LICENSE.txt` file
103+
accompanying this software for terms of use.
104+
105+
106+
### Rebuilding
107+
108+
* Visit http://cldr.unicode.org/index/downloads and choose a version, for example http://unicode.org/Public/cldr/23.1/.
109+
* Download `core.zip` and `tools.zip` to a folder/directory.
110+
* Unzip the zip files.
111+
* (On a mac be sure the use the commandline `unzip` utility, as the Finder will do the wrong thing.)
112+
* Run `node tools/Ldml2Json.js <folder>` where `<folder>` is the location where you downloaded and unzipped the zip files.
113+
* TOOD... next steps...
114+
115+
116+
## License
117+
118+
Copyright (c) 2013 Andy Earnshaw
119+
120+
This software is licensed under the MIT license. See the `LICENSE.txt` file
121+
accompanying this software for terms of use.

tools/getIntlData.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* Downloads and parses the IANA Language Subtag Registry into a JavaScript object that can
66
* be used for mapping.
77
*
8-
* http://www.iana.org/assignments/language-subtag-registry
8+
* http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
99
*
1010
* Also downloads the current currency & funds code list, Table A.1 of ISO 4217
1111
* and parses the code and minor unit value into a JavaScript object.
@@ -37,7 +37,7 @@ function getIANA () {
3737
var
3838
httpOpts = {
3939
host: 'www.iana.org',
40-
path: '/assignments/language-subtag-registry'
40+
path: '/assignments/language-subtag-registry/language-subtag-registry'
4141
},
4242
req = http.request(httpOpts, function (res) {
4343
var txt = '';

0 commit comments

Comments
 (0)