merged branch hason/localeexceptions (PR #4250)

Commits
-------

6438c80 [Locale] Updated exception messages

Discussion
----------

[Locale] Updated exception messages

---------------------------------------------------------------------------

by travisbot at 2012-05-10T15:12:46Z

This pull request [passes](http://travis-ci.org/symfony/symfony/builds/1296098) (merged 60eabc7c into fae4523f).

---------------------------------------------------------------------------

by travisbot at 2012-05-11T21:27:29Z

This pull request [passes](http://travis-ci.org/symfony/symfony/builds/1309320) (merged 6438c808 into dd0da03c).

---------------------------------------------------------------------------

by hason at 2012-05-14T09:23:26Z

@fabpot corrected
This commit is contained in:
Fabien Potencier 2012-05-14 13:27:56 +02:00
commit de8a28713a

View File

@ -46,7 +46,7 @@ class Locale extends \Locale
$bundle = \ResourceBundle::create($locale, __DIR__.'/Resources/data/region');
if (null === $bundle) {
throw new \RuntimeException('The country resource bundle could not be loaded');
throw new \RuntimeException(sprintf('The country resource bundle could not be loaded for locale "%s"', $locale));
}
$collator = new \Collator($locale);
@ -101,7 +101,7 @@ class Locale extends \Locale
$bundle = \ResourceBundle::create($locale, __DIR__.'/Resources/data/lang');
if (null === $bundle) {
throw new \RuntimeException('The language resource bundle could not be loaded');
throw new \RuntimeException(sprintf('The language resource bundle could not be loaded for locale "%s"', $locale));
}
$collator = new \Collator($locale);
@ -152,7 +152,7 @@ class Locale extends \Locale
$bundle = \ResourceBundle::create($locale, __DIR__.'/Resources/data/names');
if (null === $bundle) {
throw new \RuntimeException('The locale resource bundle could not be loaded');
throw new \RuntimeException(sprintf('The locale resource bundle could not be loaded for locale "%s"', $locale));
}
$collator = new \Collator($locale);