code: def _initConstants(ptc):
      
        # build weekday offsets - yes, it assumes the Weekday and shortWeekday
        # lists are in the same order and Mon..Sun (Python style)
      ptc.WeekdayOffsets = {}
  
      o = 0
      for key in ptc.Weekdays:
          ptc.WeekdayOffsets[key] = o
          o += 1
      o = 0
      for key in ptc.shortWeekdays:
          ptc.WeekdayOffsets[key] = o
          o += 1
  
        # build month offsets - yes, it assumes the Months and shortMonths
        # lists are in the same order and Jan..Dec
      ptc.MonthOffsets = {}
  
      o = 1
      for key in ptc.Months:
          ptc.MonthOffsets[key] = o
          o += 1
      o = 1
      for key in ptc.shortMonths:
          ptc.MonthOffsets[key] = o
          o += 1
docs: Create localized versions of the units, week and month names