Uploaded image for project: 'Blog Application'
  1. Blog Application
  2. BLOG-228

Month names of BlogArchive are displayed using JVM locale instead of XWiki context locale

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 9.14.2
    • 9.14.1
    • None
    • Unknown

    Description

      Prerequisites:

      • Have multilanguage XWiki

      Steps to reproduce:

      1. Install Blog application v9.14.1
      2. Switch XWiki locale from English to another one (French, German, etc)
      3. Visit page "Blog.Archive"
      4. Observe name of the month for blog in 2009 year.

      Actual result

      The name of the month June is displayed in English (or default JVM locale in my case it's Ukrainian)

      Expected result

      The name of the month June is displayed in XWiki locale

      Note

      The issue is caused by missing call of

      withLocale

      in line https://github.com/xwiki-contrib/application-blog/blob/7cd881fa74ded70bdf27677188af1675245fd72e/application-blog-ui/src/main/resources/Blog/ArchiveSheet.xml#L52

      Attachments

        Activity

          People

            npetrenko Nikita Petrenko
            npetrenko Nikita Petrenko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: