Confirmed users
100
edits
No edit summary |
|||
Line 33: | Line 33: | ||
===Set up Gaia=== | ===Set up Gaia=== | ||
Clone Gaia | Clone Gaia. | ||
git clone git://github.com/mozilla-b2g/gaia.git | git clone git://github.com/mozilla-b2g/gaia.git | ||
cd gaia | cd gaia | ||
===Setup the l10n repo=== | ===Setup the l10n repo=== | ||
Line 44: | Line 43: | ||
cd locales | cd locales | ||
hg clone ssh://hg.mozilla.org/gaia-l10n/pl/ | hg clone ssh://hg.mozilla.org/gaia-l10n/pl/ | ||
Line 51: | Line 49: | ||
===Enable your locale=== | ===Enable your locale=== | ||
==== | ====shared/resources/languages.json==== | ||
Next, add you locale to <code>[https://github.com/mozilla-b2g/gaia/blob/master/ | Next, add you locale to <code>[https://github.com/mozilla-b2g/gaia/blob/master/shared/resources/languages.json shared/resources/languages.json]</code>: | ||
{ | { | ||
Line 63: | Line 61: | ||
} | } | ||
==== | ====Localization files==== | ||
You'll need to have Python installed for this next step. OS X and most Linux distributions come with it by default. You can download the Windows installer at http://www.python.org/download/. | |||
Run <code>python build/multilocale.py --config shared/resources/languages.json --target apps --target shared --source locales/ pl</code> (replace "pl" with your locale) to copy the localization files to apps' folders and enable your locale in the appropriate locales.ini files. | |||
===Create a profile=== | |||
Now create a profile with your locale enabled: | |||
make profile (or ./build.sh gaia if you're building the entire B2G project) | |||
===Run Gaia=== | ===Run Gaia=== | ||
Line 79: | Line 78: | ||
(On Mac OS X, the path to the b2g executable is <code>/Applications/B2G.app/Contents/MacOS/b2g-bin</code>. You'll also need to specify ''absolute'' path to the profile, without the trailing slash.) | (On Mac OS X, the path to the b2g executable is <code>/Applications/B2G.app/Contents/MacOS/b2g-bin</code>. You'll also need to specify ''absolute'' path to the profile, without the trailing slash.) | ||
===Troubleshooting/Known Issues=== | ===Troubleshooting/Known Issues=== |