Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-16628

i18n problem with buttons in Page Order

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.0, 2.5.2, 2.5.3, 2.5.4, 2.6.0
    • Fix Version/s: None
    • Labels:
      None

      Description

      Reported by Daniel Merino:

      "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.

      Daniel Merino
      daniel.merino@unavarra.es
      Gestor de teleformación - Centro Superior de Innovación Educativa.
      Tfno: 948-168489 - Universidad Pública de Navarra.
      --"

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                zqian Zhen Qian
                Reporter:
                zqian Zhen Qian
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Git Source Code