Uploaded image for project: 'Apache Roller'
  1. Apache Roller
  2. ROL-2074

Locale specific message doesn't appear to fragments that produced by CommentAuthenticators

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.1.2
    • Fix Version/s: 5.2.0
    • Component/s: Comments
    • Labels:
      None

      Description

      Currently CommentAuthenticators (MathCommentAuthenticator and LdapCommentAuthenticator) gets ApplicationResources via following way:

      ResourceBundle.getBundle("ApplicationResources");
      

      This always give a fixed instance of ApplicationResources. I think they should get ApplicationResources via following way instead:

      ResourceBundle.getBundle("ApplicationResources", request.getLocale());
      

        Attachments

        1. ROL-2074.patch
          2 kB
          Kohei Nozaki
        2. ROL-2074-I18nMessages.patch
          4 kB
          Kohei Nozaki

          Activity

            People

            • Assignee:
              roller_unassigned Roller Unassigned
              Reporter:
              xkylex Kohei Nozaki
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: