This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
symfony/src/Symfony/Component/Locale
Fabien Potencier df1050fa32 merged 2.0
2012-06-29 18:01:01 +02:00
..
Exception fixed phpdoc @param alignment 2012-05-15 22:19:31 +02:00
Resources Fixing email 2012-05-26 09:48:33 +02:00
Stub merged 2.0 2012-06-29 18:01:01 +02:00
Tests merged 2.0 2012-06-29 18:01:01 +02:00
CHANGELOG.md [Locale] added CHANGELOG 2012-04-26 21:36:43 +02:00
composer.json updated minimum PHP version to 5.3.3 2012-05-07 10:29:11 +02:00
LICENSE Updated LICENSE files copyright 2012-02-22 10:10:37 +01:00
Locale.php fixed phpdoc @param alignment 2012-05-15 22:19:31 +02:00
phpunit.xml.dist [Components] Tests/Autoloading fixes 2012-05-01 17:51:41 +02:00
README.md [Components] Tests/Autoloading fixes 2012-05-01 17:51:41 +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