I am trying to install a new locale in Firefox OS, but I am not sure if I am following the steps well.
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.
hg clone ssh://hg.mozilla.org/gaia-l10n/es locales/es
Secondly, unzipped it in B2G/gaia/locales/ and renamed the directory from es-7c2fcf6d1348/ to 'es'.
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:
export LOCALE_BASEDIR=$PWD/locales/
export LOCALES_FILE=$PWD/locales/languages_dev.json
export GAIA_DEFAULT_LOCALE=es
At last, I flash Gaia into my mobile device doing "make reset-gaia".
sudo NTFU=0 DOGFOOD=0 PRODUCTION=1 REMOTE_DEBUGGER=1 DEBUG=1 make reset-gaia
I expected to see the spanish language installed in the device, but it is not available. Am I missing anything?
By the way, is there any way to fix the Mercurial error?
Re the hg error, you'll want to clone via http:// instead of ssh://, then you'll be fine. You want to make sure that the branch you're using matches the one of the gaia version you're trying to work on.
The Spanish community works on transifex, https://www.transifex.com/accounts/profile/willyaranda/ has the various projects.
As for getting your local copy onto a device, flod maintains https://l10n.etherpad.mozilla.org/gaia-multilocale, that should be up-to-date. (Disclaimer, it did go through some data-loss and was buggy lately, etherpad problems)