kekrozsak/vendor/symfony/symfony/src/Symfony/Component/Locale
Polonkai Gergely 9d0d2ce524 Updated to Symfony 2.1 BETA3 2012-07-16 21:40:19 +02:00
..
Exception Initial commit with Symfony 2.1+Vendors 2012-07-01 09:52:20 +02:00
Resources Updated to Symfony 2.1 BETA3 2012-07-16 21:40:19 +02:00
Stub Updated to Symfony 2.1 BETA3 2012-07-16 21:40:19 +02:00
Tests Updated to Symfony 2.1 BETA3 2012-07-16 21:40:19 +02:00
CHANGELOG.md Initial commit with Symfony 2.1+Vendors 2012-07-01 09:52:20 +02:00
LICENSE Initial commit with Symfony 2.1+Vendors 2012-07-01 09:52:20 +02:00
Locale.php Updated to Symfony 2.1 BETA3 2012-07-16 21:40:19 +02:00
README.md Initial commit with Symfony 2.1+Vendors 2012-07-01 09:52:20 +02:00
composer.json Initial commit with Symfony 2.1+Vendors 2012-07-01 09:52:20 +02:00
phpunit.xml.dist Initial commit with Symfony 2.1+Vendors 2012-07-01 09:52:20 +02:00

README.md

Locale Component

Locale provides fallback code to handle cases when the intl extension is missing.

Loading the fallback classes for example using the ClassLoader component only requires adding the following lines to your autoloader:

// intl
if (!function_exists('intl_get_error_code')) {
    require __DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs/functions.php';

    $loader->registerPrefixFallback(__DIR__.'/../vendor/symfony/src/Symfony/Component/Locale/Resources/stubs');
}

Resources

You can run the unit tests with the following command:

phpunit