Confirmed users
12
edits
(add variable to specify the keyboard layouts to include in the profile) |
|||
(8 intermediate revisions by 2 users not shown) | |||
Line 21: | Line 21: | ||
* https://l10n.mozilla.org/shipping/dashboard?tree=gaia-community (for all other locales) | * https://l10n.mozilla.org/shipping/dashboard?tree=gaia-community (for all other locales) | ||
==Testing using nightly builds== | ==Testing using the Firefox OS Simulator addon== | ||
Install in your Firefox: | |||
;Windows: https://ftp.mozilla.org/pub/mozilla.org/labs/r2d2b2g/r2d2b2g-l10n-windows.xpi | |||
;Mac: https://ftp.mozilla.org/pub/mozilla.org/labs/r2d2b2g/r2d2b2g-l10n-mac.xpi | |||
;Linux: https://ftp.mozilla.org/pub/mozilla.org/labs/r2d2b2g/r2d2b2g-l10n-linux.xpi | |||
==Testing using standalone nightly builds== | |||
These are the same bits as the Firefox OS Simulator, but are standalone and built every night. | |||
Go to http://ftp.mozilla.org/pub/mozilla.org/b2g/nightly/latest-mozilla-b2g18/ to download a nightly desktop build. You should get one of the <code>b2g-18.0.multi.*-localizer.*</code> builds. Their built-in profile have the newest localization files. | Go to http://ftp.mozilla.org/pub/mozilla.org/b2g/nightly/latest-mozilla-b2g18/ to download a nightly desktop build. You should get one of the <code>b2g-18.0.multi.*-localizer.*</code> builds. Their built-in profile have the newest localization files. | ||
Line 36: | Line 46: | ||
* next up is the platform, pretty self-explanatory, | * next up is the platform, pretty self-explanatory, | ||
* <code>localizer</code> denotes a multilocale Gaia build, i.e. a build which has all locales enabled in it; see <code>[https://github.com/mozilla-b2g/gaia/blob/master/locales/languages_all.json languages-all.json]</code> for the list. | * <code>localizer</code> denotes a multilocale Gaia build, i.e. a build which has all locales enabled in it; see <code>[https://github.com/mozilla-b2g/gaia/blob/master/locales/languages_all.json languages-all.json]</code> for the list. | ||
==Testing using own Gaia profile== | ==Testing using own Gaia profile== | ||
It's possible to test localizations using a desktop build of B2G. The trickiest part is adding your locale to the build, but you only have to do it once. All the work that follows happens in your locale's HG repository. | It's possible to test localizations using a desktop build of B2G. The trickiest part is adding your locale to the build, but you only have to do it once. All the work that follows happens in your locale's HG repository. | ||
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/. | |||
===Download B2G Desktop=== | ===Download B2G Desktop=== | ||
Line 52: | Line 63: | ||
git clone git://github.com/mozilla-b2g/gaia.git | git clone git://github.com/mozilla-b2g/gaia.git | ||
cd gaia | cd gaia | ||
Check out the <code>v1-train</code> branch: | |||
git checkout -b v1-train origin/v1-train | |||
===Setup the l10n repo=== | ===Setup the l10n repo=== | ||
Line 64: | Line 79: | ||
===Enable your locale=== | ===Enable your locale=== | ||
==== | ====locales/languages_all.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/locales/languages_all.json locales/languages_all.json]</code>: | ||
{ | { | ||
Line 75: | Line 90: | ||
"zh-TW" : "正體中文" | "zh-TW" : "正體中文" | ||
} | } | ||
===Create a profile=== | ===Create a profile=== | ||
Line 86: | Line 95: | ||
Now create a profile with your locale enabled: | Now create a profile with your locale enabled: | ||
make profile | make profile LOCALE_BASEDIR=locales/ LOCALES_FILE=locales/languages_all.json GAIA_DEFAULT_LOCALE=pl GAIA_KEYBOARD_LAYOUTS=en,pl | ||
===Run Gaia=== | ===Run Gaia=== |