[Building Sakai] Page Order buttons & i18n

Mark Norton markjnorton at earthlink.net
Tue Jun 23 07:14:03 PDT 2009


This is a known Sakai bug,  SAK-8908.  I worked on fixing Tool Title 
localization, but support for Page Buttons proved to be too difficult 
using the existing code.  There are other, related bugs.

- Mark Norton

Daniel Merino wrote:
> Hi all.
>
> I'm trying to solve an i18n problem in Sakai 2.5.3. The buttons in the 
> Page Order tool don't translate to the user's prefered language. They 
> are always in english.
>
> The keys that should be loaded are in 
> site-manage/pageorder/tool/src/bundle/org/sakaiproject/tool/pageorder/bundle/Messages_es.properties, 
> they are named "save", "cancel" and "reset". The other keys in this file 
> works well.
>
> I have tracked the buttons code to the class 
> site-manage/pageorder/tool/src/java/org/sakaiproject/site/tool/helper/order/rsf/PageListProducer.java, 
> at this point:
>
> UICommand.make(pageForm, "save", "#{SitePageEditHandler.savePages}")
>               .decorate(new UITooltipDecorator(messageLocator
>                         .getMessage("save_message")));
>
> but I can't change it to show the proper values. This change:
>
> UICommand.make(pageForm, messageLocator.getMessage("save"), 
> "#{SitePageEditHandler.savePages}")
>               .decorate(new UITooltipDecorator(messageLocator
>                         .getMessage("save_message")));
>
> doesn't show any button. Changing the third parameter with another text 
> doesn't work either.
>
> How could I get the internationalized value? I haven't found any JIRA 
> about this subject. By the way, the RSF wiki i18n page 
> (http://www2.caret.cam.ac.uk/rsfwiki/Wiki.jsp?page=I18N) doesn't seem to 
> work.
>
> Thanks in advance.
> Regards.
>   



More information about the sakai-dev mailing list