L10n:B2G/Adding Locales: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
(Created page with "Here are the steps to follow by l10n drivers to add a locale to Gaia. ==Create the repository== Follow ReleaseEngineering/RepositoryCreationRequest to get the repository cre...")
 
Line 14: Line 14:


Edit [https://github.com/mozilla-b2g/gaia/blob/master/locales/languages_all.json locales/languages_all.json] in Gaia.  Native language names can be found in the [http://viewvc.svn.mozilla.org/vc/libs/product-details/localeDetails.class.php?view=markup product-details lib].
Edit [https://github.com/mozilla-b2g/gaia/blob/master/locales/languages_all.json locales/languages_all.json] in Gaia.  Native language names can be found in the [http://viewvc.svn.mozilla.org/vc/libs/product-details/localeDetails.class.php?view=markup product-details lib].
Edit [https://github.com/mozilla-b2g/gaia/blob/master/shared/resources/keyboard_layouts.json shared/resources/kayboard_layouts.json] to enable the desired layout during the FTU setup.


See {{bug|838516}} for example and the [https://github.com/mozilla-b2g/gaia/pull/7980 corresponding pull request].
See {{bug|838516}} for example and the [https://github.com/mozilla-b2g/gaia/pull/7980 corresponding pull request].

Revision as of 12:20, 13 March 2013

Here are the steps to follow by l10n drivers to add a locale to Gaia.

Create the repository

Follow ReleaseEngineering/RepositoryCreationRequest to get the repository created. See bug 834221 for an example.

Push to the repo at least once before you enable the locale in Elmo. For example, you could push a README file, similar to this:

   This directory contains the vi locale for Firefox OS.
   For English files, see https://hg.mozilla.org/gaia-l10n/en-US/

(See example.)

Add to Gaia

Edit locales/languages_all.json in Gaia. Native language names can be found in the product-details lib.

Edit shared/resources/kayboard_layouts.json to enable the desired layout during the FTU setup.

See bug 838516 for example and the corresponding pull request.

Add to Elmo

Edit l10n-master/dir-builds.json in master-ball.

See this pull request for an example.