Open GoogleCodeExporter opened 9 years ago
hello
I'm resolved this problem. You need change renderLocaleIfApplicable method in
MonthViewRenderer.java the following:
private void renderLocaleIfApplicable(ResponseWriter writer, MonthView monthView) throws IOException {
if (!MonthViewConstants.LOCALE_EN.equals(monthView.getLanguage())) {
InputStream reader = this.getClass().getResourceAsStream(MonthViewConstants.SCRIPT_LOCALE_PREFIX + monthView.getLanguage() + MonthViewConstants.SCRIPT_LOCALE_SUFFIX);
// don't have localized monthView, using the default language
if(reader == null ) {
return;
}
BufferedReader bin = new BufferedReader(new InputStreamReader(reader));
String str;
StringBuffer localeStr = new StringBuffer();
while ((str = bin.readLine()) != null) {
localeStr.append(str).append("\n");
}
writer.write(localeStr.toString());
}
}
Original comment by abogna...@gmail.com
on 11 Feb 2012 at 4:32
Original issue reported on code.google.com by
d0u...@gmail.com
on 30 Sep 2009 at 8:18