title: How to set "locale" to Catalan language?
body: <p>I want to change setting of <code>locale</code> in order to show titles in Catalan. To do this, I executed this command from terminal:</p>
  
  <pre><code>sudo ln -s /usr/share/i18n/SUPPORTED /var/lib/locales/supported.d/all
  sudo locale-gen
  </code></pre>
  
  <p>In Jupyter Notebook I have this code:</p>
  
  <pre><code>import locale
  locale.setlocale(locale.LC_ALL, 'ca_ES.UTF-8')
  </code></pre>
  
  <p>This is the error message:</p>
  
  <pre><code>---------------------------------------------------------------------------
  Error                                     Traceback (most recent call last)
  &lt;ipython-input-30-4d0596ce2d84&gt; in &lt;module&gt;()
       11 # sudo ln -s /usr/share/i18n/SUPPORTED /var/lib/locales/supported.d/all
       12 # sudo locale-gen
  ---&gt; 13 locale.setlocale(locale.LC_ALL, 'ca_ES.UTF-8')
       14 
       15 get_ipython().magic(u'matplotlib inline')
  
  /home/ddd/anaconda2/lib/python2.7/locale.pyc in setlocale(category, locale)
      579         # convert to string
      580         locale = normalize(_build_localename(locale))
  --&gt; 581     return _setlocale(category, locale)
      582 
      583 def resetlocale(category=LC_ALL):
  
  Error: unsupported locale setting
  </code></pre>