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

Commit 167d63a

Browse files
committed
updated URL in tools/getIntlData.js
1 parent a6b1c42 commit 167d63a

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ accompanying this software for terms of use.
101101
* Visit http://cldr.unicode.org/index/downloads and choose a version, for example http://unicode.org/Public/cldr/23.1/.
102102
* Download `core.zip` and `tools.zip` to a folder/directory.
103103
* Unzip the zip files.
104-
* Run `node tools/Ldml2Json.js <folder>/tools` where `<folder>` is the location where you downloaded the zip files.
104+
* (On a mac be sure the use the commandline `unzip` utility, as the Finder will do the wrong thing.)
105+
* Run `node tools/Ldml2Json.js <folder>` where `<folder>` is the location where you downloaded and unzipped the zip files.
105106
* TOOD... next steps...
106107

107108

tools/Ldml2Json.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ if (cldr) {
105105
child.on('exit', function (err) {
106106
if (err !== 0) {
107107
process.stderr.write(ldml2jsonErr);
108-
process.stderr.write('\nLdml2JsonConverter exited with error code ' +err);
108+
process.stderr.write('\nLdml2JsonConverter exited with error code ' + err + '\n');
109+
//DEBUG process.stderr.write(['java', '-DCLDR_DIR='+cldr, '-cp', jPath + clsPaths.join(':'+jPath), cls, '-d', out, '-k', cfg/*, '-men.*'*/ ].join(' ') + '\n');
109110
process.exit(1);
110111
}
111112
else

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)