kekrozsak/vendor/symfony/symfony/src/Symfony/Component/Locale
Polonkai Gergely 623b78e939 Vendors update
Signed-off-by: Polonkai Gergely <polesz@w00d5t0ck.info>
2012-07-31 09:40:41 +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 Vendors update 2012-07-31 09:40:41 +02:00
Tests Made document editing possible 2012-07-22 19:38:00 +02:00
CHANGELOG.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
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
phpunit.xml.dist Initial commit with Symfony 2.1+Vendors 2012-07-01 09:52:20 +02:00
README.md Initial commit with Symfony 2.1+Vendors 2012-07-01 09:52:20 +02:00

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