// Therefore, report an error.
if (unresolvedLocales.size() == locales.size())
{
//we couldn't resolve it for any locales or there was no locale,
//so show the generic error which doesn't mention any locales.
ResourceBundleNotFoundProblem problem = (location != null) ?
new ResourceBundleNotFoundProblem(location, bundleName) :
new ResourceBundleNotFoundProblem(bundleName);
errors.add(problem);
}
else
{
//some of the locales couldn't be resolved so show errors expressing which locales couldn't be resolved.