Hi Sedat,

It would be useful to record this issue in the Roller JIRA. And if you can suggest a patch, even better.

Thanks,

Craig

On May 5, 2007, at 3:31 AM, sedat ciftci wrote:

Hello,
  I see that some of messages are hard coded (not read
from resource bundle file) in roller while I try to
translate it to my language. Here are the hard coded
messages that I have found:

- in
roller/WEB-INF/jsps/authoring/CommentManagement.jsp
there is a "mailto" word that is hardcoded.

- in roller/WEB-INF/jsps/authoring/Invitations.jsp and
roller/WEB-INF/jsps/core/YourWebsites.jsp,

        <c:if test="${invite.permissionMask == 0}"
LIMITED</c:if>
        <c:if test="${invite.permissionMask == 1}"
AUTHOR</c:if>
        <c:if test="${invite.permissionMask == 3}"
ADMIN</c:if>

  are hard coded. Instead,

        <c:if test="${invite.permissionMask == 0}"
<fmt:message key="inviteMember.limited" /></c:if>
        <c:if test="${invite.permissionMask == 1}"
<fmt:message key="inviteMember.author" /></c:if>
        <c:if test="${invite.permissionMask == 3}"
<fmt:message key="inviteMember.administrator"
/></c:if>

can be used.

- in roller/WEB-INF/jsps/tiles/search.jsp,
  alert("Please enter a search term to continue.");
 is hardcoded.

- in roller/WEB-INF/jsps 403Body.jsp, 404Body.jsp and
errorBody.jsp  "Status Code","Message","Type" and
"Exception" are hardcoded.

- in roller/WEB-INF/velocity/template/feeds
site-comments-atom.vm, site-comments-rss.vm,
weblog-comments-rss.vm and weblog-comments-atom.vm,
"Comments" is hardcoded.

- in roller/WEB-INF/velocity/weblog.vm,
  <option value="">- In Category -</option>
  is hardcoded. instead,
  <option value="">- $text.get("mainPage.category")
-</option>
  can be used.

- in classes under the org.apache.roller.ui.rendering
package, their name and description fields are
hardcoded.

- in org.apache.roller.pojos.Theme class,
  public static final String CUSTOM = "custom";
  is hardcoded.

These are the ones that I have found,
 Sedat




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:[EMAIL PROTECTED]
P.S. A good JDO? O, Gasp!

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to