|
0
|
1 |
How to update the ICU data
|
|
|
2 |
==========================
|
|
|
3 |
|
|
|
4 |
1. Checkout the current version of the ICU data files
|
|
|
5 |
|
|
|
6 |
$ svn co http://source.icu-project.org/repos/icu/icu/trunk/source/data icu-data
|
|
|
7 |
|
|
|
8 |
2. Execute the build script
|
|
|
9 |
|
|
|
10 |
$ php update-data.php /path/to/icu-data
|
|
|
11 |
|
|
|
12 |
.dat-package
|
|
|
13 |
------------
|
|
|
14 |
|
|
|
15 |
The individual *.res files can be combined into a single .dat-file.
|
|
|
16 |
Unfortunately, PHP's `ResourceBundle` class is currently not able to handle
|
|
|
17 |
.dat-files.
|
|
|
18 |
|
|
|
19 |
Once it is, the following steps have to be followed to build the .dat-file:
|
|
|
20 |
|
|
|
21 |
3. Package the resource bundles into a single file
|
|
|
22 |
|
|
|
23 |
$ find . -name *.res | sed -e "s/\.\///g" > packagelist.txt
|
|
|
24 |
$ pkgdata -p region -T build -d . packagelist.txt
|
|
|
25 |
|
|
|
26 |
4. Clean up
|
|
|
27 |
|
|
|
28 |
$ rm -rf build packagelist.txt
|
|
|
29 |
|
|
|
30 |
5. You can now move region.dat to replace the version bundled with Symfony2.
|