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 9fbf8555f0 Revert "merged branch Seldaek/master (PR #4133)"
This reverts commit 00e7a94a8c, reversing
changes made to a01dec00f4.
2012-04-27 19:55:40 +02:00
..
Exception [Locale] changed inequality operator to strict checking and updated some assertions 2012-04-16 23:32:33 -03:00
Resources fixed CS 2012-04-18 10:41:11 +02:00
Stub merged branch stealth35/locale_intl_error_name (PR #3959) 2012-04-18 10:38:01 +02:00
Tests fixed typo 2012-04-18 11:06:34 +02:00
CHANGELOG.md [Locale] added CHANGELOG 2012-04-26 21:36:43 +02:00
composer.json Revert "merged branch Seldaek/master (PR #4133)" 2012-04-27 19:55:40 +02:00
LICENSE Updated LICENSE files copyright 2012-02-22 10:10:37 +01:00
Locale.php merged 2.0 2012-03-11 18:00:10 +01:00
phpunit.xml.dist [PhpUnit] Fix the path to the boostrap files in the components 2012-03-30 13:49:28 +02:00
README.md moved component and bridge unit tests to the src/ directory 2012-03-29 08:37:22 +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 -c src/Symfony/Component/Locale/