xref: /freebsd/tools/tools/locale/README (revision 0957b409)
1# $FreeBSD$
2
3To generate the locales:
4
5Tools needed:
6	java (openjdk >= 8)
7	perl
8	converters/p5-Text-Iconv
9	devel/p5-Tie-IxHash
10	textproc/p5-XML-Parser
11
121. Fetch CLDR data from: http://unicode.org/Public/cldr/.  You need all of the
13core.zip, keyboards.zip, and tools.zip.
142. Fetch unidata (UCD.zip) from http://www.unicode.org/Public/zipped/latest.
153. Extract:
16	mkdir -p ~/unicode
17	cd ~/unicode
18	unzip ~/core.zip
19	unzip ~/keyboards.zip
20	unzip ~/tools.zip
21	unzip ~/UCD.zip
224. Export variable:
23	UNIDIR=~/unicode; export UNIDIR
245. Build the CLDR tools:
25	cd $UNIDIR/tools/java
26	ant jar
276. Build POSIX data files from CLDR data:
28	make POSIX
297. Build and install new locale data:
30	make
31	make install
32