big fat Java 6 warning

This commit is contained in:
zzz
2015-10-16 21:38:12 +00:00
parent fe26052189
commit dd36176997

View File

@ -18,6 +18,7 @@ import net.i2p.router.RouterContext;
import net.i2p.router.news.NewsEntry;
import net.i2p.router.news.NewsManager;
import net.i2p.util.PortMapper;
import net.i2p.util.SystemVersion;
/**
* Refactored from summarynoframe.jsp to save ~100KB
@ -345,6 +346,13 @@ public class SummaryBarRenderer {
.append(_t("Warning: ECDSA is not available. Update your Java or OS"))
.append("</a></h4>\n");
}
if (!SystemVersion.isJava7()) {
buf.append("<hr><h4>")
.append(_t("Warning: Java version {0} is no longer supported by I2P.", System.getProperty("java.version")))
.append(' ')
.append(_t("Update Java to version {0} or higher to receive I2P updates.", "7"))
.append("</h4>\n");
}
return buf.toString();
}
@ -665,6 +673,11 @@ public class SummaryBarRenderer {
return Messages.getString(s, _context);
}
/** @since 0.9.23 */
private String _t(String s, Object o) {
return Messages.getString(s, o, _context);
}
/**
* Where the translation is to two words or more,
* prevent splitting across lines