Skip to content

Commit

Permalink
Bug 823478 - Add 1.1 locales. r=kaze
Browse files Browse the repository at this point in the history
  • Loading branch information
stasm committed Jan 24, 2013
1 parent e6a30b9 commit 958278f
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 6 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,4 @@ manifest.appcache

/tools/xpcwindow/vendor/

/locales/*

/outoftree_apps/
3 changes: 3 additions & 0 deletions locales/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!*.json
!README.md
23 changes: 22 additions & 1 deletion locales/README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
Building multilocale Gaia
=========================

You can build a multilocale Gaia profile with the following `make` command:

make profile \
LOCALE_BASEDIR=locales/ \
LOCALES_FILE=locales/languages_basecamp.json \
GAIA_DEFAULT_LOCALE=pt-BR

Use `make multilocale-clean` to clean the working directory after the above.

Use `GAIA_INLINE_LOCALES=1` to precompile all HTML to include text content in
the deafult locale.

See `build/multilocale.py --help` for other l10n-related tasks that you may be
interested in (e.g., modifying the \*.ini files).

The full documentation on building multilocale Gaia and B2G is avaiable on MDN: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox_OS/Building#Building_multilocale


Localization Testing
====================

Expand Down Expand Up @@ -48,7 +69,7 @@ Create Gaia's profile with:

And launch it in a desktop build:

$ b2g -profile profile/
$ b2g-bin -profile profile/

...or in Firefox:

Expand Down
8 changes: 5 additions & 3 deletions locales/languages_all.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"ar" : "عربي",
"as" : "অসমীয়া",
"bn-BD" : "বাংলা (বাংলাদেশ)",
"ca" : "català",
"ca" : "Català",
"cs" : "Čeština",
"cy" : "Cymraeg",
"de" : "Deutsch",
Expand All @@ -20,8 +20,9 @@
"gl" : "Galego",
"he" : "עברית",
"hi-IN" : "हिन्दी (भारत)",
"hr" : "Hrvatski",
"ht" : "Kreyòl ayisyen",
"hu" : "magyar",
"hu" : "Magyar",
"id" : "Bahasa Indonesia",
"it" : "Italiano",
"ja" : "日本語",
Expand All @@ -33,8 +34,9 @@
"pa" : "ਪੰਜਾਬੀ",
"pl" : "Polski",
"pt-BR" : "Português (do Brasil)",
"ro" : "română",
"ro" : "Română",
"ru" : "Русский",
"sk" : "Slovenčina",
"sl" : "Slovenščina",
"sq" : "Shqip",
"sv-SE" : "Svenska",
Expand Down
11 changes: 11 additions & 0 deletions locales/languages_dev.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
{
"ar" : "عربي",
"cs" : "Čeština",
"de" : "Deutsch",
"el" : "Ελληνικά",
"en-US" : "English (US)",
"es" : "Español",
"fr" : "Français",
"hr" : "Hrvatski",
"hu" : "Magyar",
"nl" : "Nederlands",
"pl" : "Polski",
"pt-BR" : "Português (do Brasil)",
"ro" : "Română",
"ru" : "Русский",
"sk" : "Slovenčina",
"tr" : "Türkçe",
"zh-TW" : "正體中文 (繁體)"
}
14 changes: 14 additions & 0 deletions locales/languages_shira.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"cs" : "Čeština",
"de" : "Deutsch",
"el" : "Ελληνικά",
"en-US" : "English (US)",
"hr" : "Hrvatski",
"hu" : "Magyar",
"nl" : "Nederlands",
"pl" : "Polski",
"ro" : "Română",
"ru" : "Русский",
"sk" : "Slovenčina",
"tr" : "Türkçe"
}

0 comments on commit 958278f

Please sign in to comment.