mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-06 14:05:32 +00:00
ICU-9945 Updated currency data file location. Corrected errors in readme.txt. Added ZMW to the hardcoded table to match the latest ISO data.
X-SVN-Rev: 33229
This commit is contained in:
parent
d4ca6e2dec
commit
35797e43fe
3 changed files with 9 additions and 13 deletions
|
@ -1,6 +1,6 @@
|
|||
<!--
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2012, International Business Machines Corporation and *
|
||||
* Copyright (C) 2012-2013, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
-->
|
||||
|
@ -11,9 +11,9 @@
|
|||
<property name="res.dir" value="${out.dir}/res"/>
|
||||
<property name="xml.dir" value="${out.dir}/xml"/>
|
||||
|
||||
<property name="base.url" value="http://www.currency-iso.org/"/>
|
||||
<property name="base.url" value="http://www.currency-iso.org/content/dam/isocy/downloads/"/>
|
||||
<property name="current.xml" value="dl_iso_table_a1.xml"/>
|
||||
<property name="historic.xml" value="dl_iso_tables_a3.xml"/>
|
||||
<property name="historic.xml" value="dl_iso_table_a3.xml"/>
|
||||
|
||||
<target name="build" depends="check, resource" description="Verify ICU's local data and generate ISO 4217 alpha-numeric code mapping data resource"/>
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
*******************************************************************************
|
||||
* Copyright (C) 2012, International Business Machines Corporation and *
|
||||
* Copyright (C) 2012-2013, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
|
||||
|
@ -38,19 +38,14 @@ files that we're interested in.
|
|||
Table A.1 contains current currencies and funds and Table A.3 contains
|
||||
historic denominations.
|
||||
|
||||
The tool supports 3 commands - check / print / build.
|
||||
The tool supports 2 commands - check / resource.
|
||||
|
||||
1) check
|
||||
|
||||
This command compares the hardcoded mapping data in NumericCodeData.java
|
||||
with the ISO 4217 XML data files side by side and check differences.
|
||||
|
||||
2) print
|
||||
|
||||
This command prints out body of String[][] CODE_MAP_DATA from the ISO
|
||||
4217 XML data files.
|
||||
|
||||
3) build
|
||||
2) resource
|
||||
|
||||
This command writes out the hardcoded mapping data in NumericCodeData.java
|
||||
in ICU resource bundle source format - currencyNumericCodes.txt.
|
||||
|
@ -107,7 +102,7 @@ In this case, you have to update the hardcoded data in NumericCodeData.
|
|||
You can either edit the table in NumericCodeData manually, or run the tool
|
||||
command "print" and copy the output and paste it to the table.
|
||||
|
||||
Once you make sure "ant check" returns no errors, run "ant build". This
|
||||
Once you make sure "ant check" returns no errors, run "ant resource". This
|
||||
target generate out/res/currencyNumericCodes.txt. The file should go to
|
||||
<icu4c>/source/data/misc directory.
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2012, International Business Machines Corporation and *
|
||||
* Copyright (C) 2012-2013, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -364,6 +364,7 @@ public class NumericCodeData {
|
|||
{"ZAL", "991"},
|
||||
{"ZAR", "710"},
|
||||
{"ZMK", "894"},
|
||||
{"ZMW", "967"},
|
||||
{"ZRN", "180"},
|
||||
{"ZRZ", "180"},
|
||||
{"ZWD", "716"},
|
||||
|
|
Loading…
Add table
Reference in a new issue