Changes

Jump to: navigation, search

Mobile/Fennec/Android/AdvancedTopics

566 bytes added, 21:16, 30 May 2016
Updated with the latest instructions on how to make a multilocale build
=== Multilocale builds ===
Currently, multilocale only works with a full build. Due to some issues, multilocale artifact build is not supported and you will encounter make target build error when attempting to do so.
Assumptions * Create a $AB_CD is the locale you want to repack with* objdir-frontend is the directoryyou specified in your mozconfig, clone mozharness, copy replace this with the config file for easy editing/usage:object directory you are using
mkdir multilocale
cd multilocale
hg clone http://hg.mozilla.org/build/mozharness
cp mozharness/configs/multi_locale/standalone_mozilla-central.py myconfig.py
* Edit myconfig.pyBefore starting, make sure you are in the parent directory of mozilla-central repo** currently will check out m mkdir -c into p l10n # this should be a sibling directory named 'to mozilla-central' in this directory** currently assumes your mozconfig is in this directory and named 'mozconfig' cd l10n hg clone https://hg.mozilla.org/l10n-central/$AB_CD** currently assumes your mozconfig sets your objdir name to 'objdir cd ../mozilla-droid'central
* pull mozillaEdit your mozconfig to include the following options and input the values you want # Edit to include only locales you want to build. Exception is 'en-centralUS' must always be included! mk_add_options 'export MOZ_CHROME_MULTILOCALE=en-US fr' # Use absolute paths to the directory that houses your locale repos mk_add_options 'export L10NBASEDIR=/absolute/path/to/l10n' ac_add_options --with-l10n-base=/absolute/path/to/l10n
mozharness/scripts/multil10n.py --cfg myconfig.py --pull-build-source
# Alternately, you can hg clone http://hg.mozilla.org/mozilla-central
* Run Build, merge, chrome, package, install for each locale you want with the script, which will create a multilocale apkfollowing steps: mach configure mach build make -C objdir-frontend/mobile/android/locales chrome-$AB_CD LOCALE_MERGEDIR=/absolute/path/to/repo/objdir-frontend/merge-$AB_CD mach package mach install
mozharness/scripts/multil10n.py --cfg myconfig.pyRebuild with another locale
And In mozconfig, edit MOZ_CHROME_MULTILOCALE option to the locale you're done.want
* If you want to recompile or re mach configure mach build mobile/android make -run the script, restore your C objdir to en-US first!  mozharnessfrontend/mobile/scriptsandroid/multil10n.py locales chrome-$AB_CD LOCALE_MERGEDIR=/absolute/path/to/repo/objdir-cfg myconfig.py --restorefrontend/merge-objdir$AB_CD mach packageAlso see [http://escapewindow.dreamwidth.org/234671.html this blog post] for more information. mach install
=== Single-locale language repacks ===
1
edit

Navigation menu