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

#showWeblogCalendar needs I18N

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0RC1
    • 3.0
    • None

    Description

      Is there a way to get #showWeblogCalendar() to produce a calendar that's appropriate for the writer's locale? Currently there seem to be two issues:

      • From playing with the Dutch locale and the Currency-i18n template, it seems I can get the appropriate month and day-of-week names if Roller has been localized for my language. If it hasn't been, I get English names. Now, month and day-of-week are available from Java APIs - from java.text.DateFormatSymbols if you want direct access, or from java.text.SimpleDateFormat if you want them predigested in some form. Why aren't they used directly?
      • There doesn't seem to be any way to get the weeks to start on the right day. As you may know, Europeans generally place the weekend at the end of the week, i.e., Monday is the first day of the week. I don't see this done correctly even with the above locale and template. You can get the necessary information from java.util.Calendar.getFirstDayOfWeek().

      Attachments

        Activity

          People

            agangolli Anil Gangolli
            djohnson David Johnson
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: