blob: cad06784fdbf7c15d6d157fc51bfc34f32487c6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
* purpose
This tool is to generate globalization information from Unicode CLDR, with some changes
to fill the gap between .NET(Windows)-ism and the global standard.
* input resources
There is only an external resource: unicode CLDR. I used version 1.7, the latest one as of
May, 2009:
http://unicode.org/Public/cldr/1.7.0/core.zip
There is a couple of extra mono resources included in this directory:
- lcids.xml for LCIDs.
- textinfos.xml for TextInfo.
- supplementalData.xml and supp/*.xml for .NET(Windows)-ism fixup.
* generated file
culture-info-table.h contains the following sections:
- datetime_format_entries
See DateTimeFormatEntry.AppendTableRow() in DateTimeFormatEntry.cs.
- number_format_entries
See NumberFormatEntry.AppendTableRow() in NumberFormatEntry.cs.
- culture_entries
See CultureInfoEntry.AppendTableRow() in CultureInfoEntry.cs.
- culture_name_entries
See Driver.Run() in Driver.cs.
- region_entries
See RegionInfoEntry.AppendTableRow() in RegionInfoEntry.cs.
- region_name_entries
See Driver.Run() in Driver.cs.
- locale_strings
See Driver.Run() in Driver.cs.
In each entry, strings are extracted to locale_strings table, and in each structure they are
represented as an index to the string.
* updating the data
Currently, when we need to fix or update data, we need to modify or
add the proper file in the supp directory (if it's a new file it must be added
in Makefile.am as well to supp_data_files).
To create the files used by the runtime after an update, run:
make culture-table
make install-culture-table
At the start of Makefile.am there are additional instructions for specific builds.
|