title: R lubridate: weekdays in local language
body: <p>How can I get the weekdays and month in my local language?</p>
  
  <p>My code:</p>
  
  <pre><code>library(lubridate)
  data &lt;- c("10-02-2015", "11-03-2015")
  data.lubri &lt;- dmy(data)
  wday(data.lubri, label=TRUE)
  </code></pre>
  
  <p>Always returns</p>
  
  <pre><code>[1] Tues Wed 
  Levels: Sun &lt; Mon &lt; Tues &lt; Wed &lt; Thurs &lt; Fri &lt; Sat
  </code></pre>
  
  <p>and</p>
  
  <pre><code>month(data.lubri, label = TRUE)
  </code></pre>
  
  <p>Always returns</p>
  
  <pre><code>[1] Feb Mar
  Levels: Jan &lt; Feb &lt; Mar &lt; Apr &lt; May &lt; Jun &lt; Jul &lt; Aug &lt; Sep &lt; Oct &lt; Nov &lt; Dec
  </code></pre>
  
  <p>I need it in Portuguese, using lubridate, and already tried a ton of locale options, but nothing lubridate related seems to work.</p>
  
  <p>The base functions, weekdays() and months(), work, though.</p>
  
  <p>The problem is base months() gives me a unordered vector when working with dates.</p>
  
  <p>I need them as an ordered factor, for later plotting.</p>
  
  <p>My current work around is getting my hands dirty:</p>
  
  <pre><code>factor(months(data.lubri, abbreviate=TRUE), 
               levels = c("Jan", "Fev", "Mar", "Abr", "Mai", "Jun", "Jul", 
                          "Ago", "Set", "Out", "Nov", "Dez"), 
               ordered=TRUE)
  
  
  [1] Fev Mar
  Levels: Jan &lt; Fev &lt; Mar &lt; Abr &lt; Mai &lt; Jun &lt; Jul &lt; Ago &lt; Set &lt; Out &lt; Nov &lt; Dez
  </code></pre>
  
  <p>but this isn't classy...</p>