if (!facesContext.getViewRoot().getLocale().equals(Locale.ENGLISH)) {
if (!facesContext.getViewRoot().getLocale().getLanguage().equals(Locale.ENGLISH.getLanguage())) {
    private void encodeName(boolean linkable) throws IOException {        writer.startElement("td", this);        String name = null;        if (!facesContext.getViewRoot().getLocale().equals(Locale.ENGLISH)) {            name = this.curricularCourse.getName();        } else {            name = this.curricularCourse.getNameEn();        }                if (linkable) {            writer.startElement("a", this);            this.encodeLinkHref("viewCurricularCourse.faces", "&curricularCourseID=" + this.curricularCourse.getIdInternal(), false);            writer.append(name);            writer.endElement("a");        } else {            writer.append(name);        }                writer.endElement("td");    }