Grouper 2.0.0 is coming out soon (today?) Any chance you can use that version, or are you set on 1.6.3? If 1.6.3 I will try to use that version and look into
it.
Thanks,
Chris
From: Wallaert-Taquet Brigitte [mailto:]
Sent: Monday, September 05, 2011 11:43 AM
To: Chris Hyzer
Cc: ; ; THIA Jean-Marie
Subject: Re: [grouper-users] internationalization liteUI
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 é 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é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ébut et de fin de participation à 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
|