.replaceAll("(?s)<rules.*?>", "");
int overallJavaCount = 0;
int langSpecificWebsiteCount = 0;
for (final String langName : sortedLanguages) {
final Language lang = Language.getLanguageForName(langName);
if (lang.isVariant()) {
continue;
}
System.out.print("<tr>");
final String langCode = lang.getShortName();
final File langSpecificWebsite = new File(webRoot, langCode);
if (langSpecificWebsite.isDirectory()) {
System.out.print("<td valign=\"top\"><a href=\"../" + langCode + "/\">" + lang.getName() + "</a></td>");
langSpecificWebsiteCount++;
} else {
System.out.print("<td valign=\"top\">" + lang.getName() + "</td>");
}
//FIXME: this does not work for en-GB and en-US
final String xmlFile = JLanguageTool.getDataBroker().getRulesDir() + File.separator + langCode + File.separator + "grammar.xml";
final URL url = this.getClass().getResource(xmlFile);
if (url == null) {