Skip to Content.
Sympa Menu

grouper-users - Re: [grouper-users] internationalization liteUI

Subject: Grouper Users - Open Discussion List

List archive

Re: [grouper-users] internationalization liteUI


Chronological Thread 
  • From: Wallaert-Taquet Brigitte <>
  • To: Chris Hyzer <>
  • Cc: "" <>, "" <>, THIA Jean-Marie <>
  • Subject: Re: [grouper-users] internationalization liteUI
  • Date: Mon, 05 Sep 2011 17:42:35 +0200

Hello,

I modify as you explain but I obtain no results.

For the tooltip, when I add lines "ui-lite" like you in my nav.properties, I don't obtain display of these lines. Grouper ignore theses lines in nav.properties.
I have lines as simpleMembershipUpdate.advancedMenuImport. So I modify "ui-lite." by "simpleMembershipUpdate.advancedMenu" but also, it displays nothing for theses lines... My grouper is 1.6.3.

After, I modify media.properties (also, I didn't have a line with convertInputToUtf8) and GrouperRequestWrapper and GrouperUiFilter.
I obtain no results for the search with accents : grouper don't find persons with accents .

Sorry but I think that we have a very different installation of grouper but I don't why !

For instance, I continue my preparation to give grouper to my users this month. I can do others tests if you give me others tracks.

Thanks !
Brigitte

Le 04/09/2011 17:20, Chris Hyzer a écrit :
Thanks for your help investigating these issues...  it is hard work, but it will be useful to others.  :)

As for the tooltip, it works for me... hmmm.  See attached:

ui-lite.invite-menu=Invite éxternal people
ui-lite.invite-menuTooltip=Invite éxternal people who are not already registered to be a member of this group.  Note: the systems that use this group must be ready to use external people.

As for the searching for people, I needed to make some changes:

1. media.properties:

###################################
## Internationalization
###################################

# this should be true unless troubleshooting...
convertInputToUtf8 = true

2. GrouperRequestWrapper

FROM:

  public String getParameter(String name) {
 
    if (!this.multipart) {
     
      return this.wrapped.getParameter(name);
    }
 
    Object objectSubmitted = this.parameterMap.get(name);


TO:

  public String getParameter(String name) {
 
    if (!this.multipart) {
      String param = this.wrapped.getParameter(name);
      if (param != null && StringUtils.equals("GET", this.getMethod()) && TagUtils.mediaResourceBoolean("convertInputToUtf8", true)) {
        try {
          byte[] bytes = param.getBytes("ISO-8859-1");
          param = new String(bytes, "UTF-8");
        } catch (Exception e) {
          throw new RuntimeException(e);
        }
      }
      return param;
    }
 
    Object objectSubmitted = this.parameterMap.get(name);

3. (not sure if this makes a difference) GrouperUiFilter:

FROM:

  public void doFilter(ServletRequest servletRequest, ServletResponse response,
      FilterChain filterChain) throws IOException, ServletException {

    GrouperRequestWrapper httpServletRequest = null;
   
    try {
     
      httpServletRequest = new GrouperRequestWrapper((HttpServletRequest) servletRequest);


TO:

  public void doFilter(ServletRequest servletRequest, ServletResponse response,
      FilterChain filterChain) throws IOException, ServletException {

    GrouperRequestWrapper httpServletRequest = null;
   
    try {
     
      servletRequest.setCharacterEncoding("UTF-8");
     
      httpServletRequest = new GrouperRequestWrapper((HttpServletRequest) servletRequest);


Then it works, see other attachment.

thanks,
Chris


From: Wallaert-Taquet Brigitte []
Sent: Thursday, September 01, 2011 11:21 AM
To: Chris Hyzer
Cc: ; ; THIA Jean-Marie
Subject: Re: [grouper-users] internationalization liteUI

Hello,

I found the problem (see my precedent message in lower part and the screen joined) but don't know enough how to solve it and I think you can help me.

The problem comes from dhtmlxmenu.js at line 1646 :
 if (this.itemPull[id]["tip"].length > 0) { k.title = this.itemPull[id]["tip"]; }

There isn't innerHTML with k.title.
The text of menu is ok thanks to the line 1634  :
 k.innerHTML = j_icon + this.itemPull[id]["title"] + j_nodes;

I try this :
k.title.innerHTML = this.itemPull[id]["tip"] : bad, title no displayed
k.title = this.itemPull[id]["tip"] : bad, title display "undefined"
k.innerHTML = k (after line 1646) : each line menu = objectHTMLDivElement ...

So, there is probably another solution, I look for it but if you can help me, i accept !

Thanks
Brigitte


Le 31/08/2011 10:40, Wallaert-Taquet Brigitte a écrit :

But I have enough a problem with accent ant dhtmlx : the comment under the menu isn't ok... For example, I see the entity &eacute; insteed of the character. If I put the accent in the text in nav.properties, it's bad also. I think that the xml is read in tool dhtmlx with charset by default, probably us. It's the title of div that is bad. When I inspect with firebug, I see that for example :
<div id="polygon_SUZHwGK8XSkwdhxWebMenuTopId" class="dhtmlxMenu_dhx_blue_SubLevelArea_Polygon_left" style="display: none;">
<div id="SUZHwGK8XSkwmemberDetails" class="dhtmlxMenu_dhx_blue_SubLevelArea_Item_Normal" title="Voir tous les d&eacute;tails concernant ce membre">Les détails d'un membre de groupe</div>
<div id="SUZHwGK8XSkwenabledDisabled" class="dhtmlxMenu_dhx_blue_SubLevelArea_Item_Normal" title="Renseigner les dates de d&eacute;but et de fin de participation &agrave; ce groupe">Enregistrer les dates de début et de fin de participation à ce groupe</div>
</div>
A idea for help me ?

Thanks.
Brigitte



-- 
Brigitte Wallaert-Taquet
Ingénieure d'études
Chargée d'étude
Espace collaboratif de Documents
Université Lille1
Sciences et Technologies


-- 
Brigitte Wallaert-Taquet
Ingénieure d'études
Chargée d'étude
Espace collaboratif de Documents
Université Lille1
Sciences et Technologies



Archive powered by MHonArc 2.6.16.

Top of Page