1 Reply Latest reply on Jul 20, 2007 5:47 PM by peterj

    Portlet title bar, help button question

    sunithavy

      How do I change the help image"alt" message from 'help' to something else? Thanks!!

        • 1. Re: Portlet title bar, help button question
          peterj

          Looks like the text is hard-coded into ./theme/src/main/org/jboss/portal/theme/impl/render/div/DivDecorationRenderer.java:

          for (Iterator i = modesOrStates.iterator(); i.hasNext();)
           {
           ActionRendererContext action = (ActionRendererContext)i.next();
           if (action.isEnabled())
           {
           PrintWriter out = ctx.getWriter();
           out.print("<span title=\"");
           out.print(action.getName());
           out.print("\"><a class=\"portlet-mode-");
           out.print(action.getName());
           out.print("\" href=\"");
           out.print(action.getURL());
           out.print("\"> </a></span>");
           }
           }


          It appears that the value supplied for the 'title' attribute is the same as the state - "help" in this case. Not very localizable, is it?

          P.S. You never said which version of Portal, so I assumed 2.6.