title: Calendar: day/month names in specific locale
body: <p>I am playing with Python's <a href="http://docs.python.org/library/calendar.html" rel="noreferrer">calendar</a> module that's in the standard library. Basically I need a list of all days of a month, like so:</p>
  
  <pre><code>&gt;&gt;&gt; import calendar
  &gt;&gt;&gt; calobject = calendar.monthcalendar(2012, 10)
  &gt;&gt;&gt; print calobject
  [[1, 2, 3, 4, 5, 6, 7], [8, 9, 10, 11, 12, 13, 14], [15, 16, 17, 18, 19, 20, 21], [22, 23, 24, 25, 26, 27, 28], [29, 30, 31, 0, 0, 0, 0]]
  </code></pre>
  
  <p>Now what I also need are the names of the months and days in a specific locale. I didn't find a way to get these from the <code>calobject</code> itself - but I was able to get them like so:</p>
  
  <pre><code>&gt;&gt;&gt; import calendar
  &gt;&gt;&gt; calobject = calendar.LocaleTextCalendar(calendar.MONDAY, 'de_DE')
  &gt;&gt;&gt; calobject.formatmonth(2012, 10)
  '    Oktober 2012\nMo Di Mi Do Fr Sa So\n 1  2  3  4  5  6  7\n 8  9 10 11 12 13 14\n15 16 17 18 19 20 21\n22 23 24 25 26 27 28\n29 30 31\n'
  </code></pre>
  
  <p>So <code>Oktober</code> is the <code>de_DE</code> name for october. Fine. The information must be there. I'm wondering if I can access that month name somehow on a plain <code>calendar</code> object instead of a <code>calendar.LocaleTextCalendar</code> object. The first example (with the list) is really what I need and I don't like the idea to create two calendar objects to get localized names.</p>
  
  <p>Anyone got a smart idea?</p>