Recommend this page to a friend! |
Classes of Murat Cileli | Papernic | vendor/symfony/symfony/src/Symfony/Component/Intl/CONTRIBUTING.md | Download |
|
DownloadContributing to the Intl componentA very good way of contributing to the Intl component is by updating the included data for the ICU version you have installed on your system. PreparationTo prepare, you need to install the development dependencies of the component.
Determining your ICU versionThe ICU version installed in your PHP environment can be found by running icu-version.php:
Updating the ICU dataTo update the data files, run the update-icu-component.php script:
The script needs the binaries "svn" and "make" to be available on your system. It will download the latest version of the ICU sources for the ICU version installed in your PHP environment. The script will then compile the "genrb" binary and use it to compile the ICU data files to binaries. The binaries are copied to the Resources/ directory of the Icu component found in the vendor/symfony/icu/ directory. Updating the stub dataIn the previous step you updated the Icu component for the ICU version installed on your system. If you are using the latest ICU version, you should also create the stub data files which will be used by people who don't have the intl extension installed. To update the stub files, run the update-stubs.php script:
The script will fail if you don't have the latest ICU version. If you want to
upgrade the ICU version, adjust the return value of the
The script creates copies of the binary resource bundles in the Icu component and stores them in the Resources/ directory of the Intl component. The copies are made for the locale "en" only and are stored in .php files, so that they can be read even if the intl extension is not available. Creating a pull requestYou need to create up to two pull requests:
Combining .res files to a .dat-packageThe individual *.res files can be combined into a single .dat-file.
Unfortunately, PHP's Once it is, the following steps have to be followed to build the .dat-file:
|