xref: /freebsd/tools/tools/locale/README (revision 2f513db7)
1# $FreeBSD$
2
3To generate the locales:
4
5Tools needed:
6	java (openjdk >= 8)
7	perl
8	converters/p5-Text-Iconv
9	devel/apache-ant
10	devel/p5-Tie-IxHash
11	textproc/p5-XML-Parser
12
131. Fetch CLDR data from: http://unicode.org/Public/cldr/.  You need all of the
14core.zip, keyboards.zip, and tools.zip.
152. Fetch unidata (UCD.zip) from http://www.unicode.org/Public/zipped/latest.
163. Extract:
17	mkdir -p ~/unicode
18	cd ~/unicode
19	unzip ~/core.zip
20	unzip ~/keyboards.zip
21	unzip ~/tools.zip
22	unzip ~/UCD.zip
234. Export variable:
24	UNIDIR=~/unicode; export UNIDIR
255. Build the CLDR tools:
26	cd $UNIDIR/tools/java
27	ant jar
286. Build POSIX data files from CLDR data:
29	make POSIX
307. Build and install new locale data:
31	make
32	make install
33