]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - tools/tools/locale/README
MFC r340204:
[FreeBSD/FreeBSD.git] / tools / tools / locale / README
1 # $FreeBSD$
2
3 To generate the locales:
4
5 Tools needed:
6         java (openjdk >= 8)
7         perl
8         converters/p5-Text-Iconv
9         devel/p5-Tie-IxHash
10         textproc/p5-XML-Parser
11
12 1. Fetch CLDR data from: http://unicode.org/Public/cldr/.  You need all of the
13 core.zip, keyboards.zip, and tools.zip.
14 2. Fetch unidata (UCD.zip) from http://www.unicode.org/Public/zipped/latest.
15 3. Extract:
16         mkdir -p ~/unicode
17         cd ~/unicode
18         unzip ~/core.zip
19         unzip ~/keyboards.zip
20         unzip ~/tools.zip
21         unzip ~/UCD.zip
22 4. Export variable:
23         UNIDIR=~/unicode; export UNIDIR
24 5. Build the CLDR tools:
25         cd $UNIDIR/tools/java
26         ant jar
27 6. Build POSIX data files from CLDR data:
28         make POSIX
29 7. Build and install new locale data:
30         make
31         make install