} } } } } if ($website_with_errors) { $locale_htmloutput .= " </div>\n\n"; if (!$locale_with_errors) { $locale_with_errors = true; } } } foreach (Project::getWebsitesByDataType($sites, 'raw') as $current_website) { $website_with_errors = false; if (Project::isSupportedLocale($current_website, $current_locale)) { $repo = Project::getPublicRepoPath($current_website, $current_locale); $current_website_name = Project::getWebsiteName($current_website); $opening_div = " <div class='website_container'>\n" . " <h2>{$current_website_name}</h2>\n"; foreach (Project::getWebsiteFiles($current_website) as $current_filename) { if (!Project::isSupportedLocale($current_website, $current_locale, $current_filename, $langfiles_subsets)) { // File is not managed for this website+locale, ignore it continue; } $locale_filename = Project::getLocalFilePath($current_website, $current_locale, $current_filename); if (!in_array('optional', Project::getFileFlags($current_website, $current_filename, $current_locale)) && !file_exists($locale_filename)) { if (!$website_with_errors) { $website_with_errors = true; $locale_htmloutput .= $opening_div; } $locale_htmloutput .= " <p>File missing: {$locale_filename}</p>\n"; continue;