title: Localizing Firefox OS (B2G)
body: <p>I am trying to install a new locale in Firefox OS, but I am not sure if I am following the steps well. </p>
  
  <ol>
  <li><p>Firstly, I tried to use Mercurial to download the desired locale: It
  didn't work for me, Mercurial says that access is denied, so I had
  to download the ZIP manually.</p>
  
  <p>hg clone ssh://hg.mozilla.org/gaia-l10n/es locales/es</p></li>
  <li><p>Secondly, unzipped it in B2G/gaia/locales/ and renamed the directory from es-7c2fcf6d1348/ to 'es'.</p></li>
  <li><p>Thirdly, I have edited B2G/gaia/locales/dev_languages.json in order
  to enable the desired language and I have set the following
  environment variables:</p>
  
  <p><code>export LOCALE_BASEDIR=$PWD/locales/</code></p>
  
  <p><code>export LOCALES_FILE=$PWD/locales/languages_dev.json</code></p>
  
  <p><code>export GAIA_DEFAULT_LOCALE=es</code></p></li>
  <li><p>At last, I flash Gaia into my mobile device doing "make reset-gaia".</p>
  
  <p><code>sudo NTFU=0 DOGFOOD=0 PRODUCTION=1 REMOTE_DEBUGGER=1 DEBUG=1 make reset-gaia</code></p></li>
  </ol>
  
  <p>I expected to see the spanish language installed in the device, but it is not available. Am I missing anything?</p>
  
  <p>By the way, is there any way to fix the Mercurial error?</p>