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 intofae4523f
). --------------------------------------------------------------------------- by travisbot at 2012-05-11T21:27:29Z This pull request [passes](http://travis-ci.org/symfony/symfony/builds/1309320) (merged6438c808
intodd0da03c
). --------------------------------------------------------------------------- by hason at 2012-05-14T09:23:26Z @fabpot corrected
This commit is contained in:
commit
de8a28713a
@ -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);
|
||||
|
Reference in New Issue
Block a user