mozharness.mozilla.l10n package

Submodules

mozharness.mozilla.l10n.locales module

Localization.

class mozharness.mozilla.l10n.locales.GaiaLocalesMixin[source]

Bases: object

gaia_locale_revisions = None
pull_gaia_locale_source(l10n_config, locales, base_dir)[source]
class mozharness.mozilla.l10n.locales.LocalesMixin(**kwargs)[source]

Bases: mozharness.base.parallel.ChunkingMixin

list_locales()[source]

Stub action method.

parse_locales_file(locales_file)[source]
pull_locale_source(hg_l10n_base=None, parent_dir=None, vcs='hg')[source]
query_abs_dirs()[source]
query_locales()[source]
run_compare_locales(locale, halt_on_failure=False)[source]

mozharness.mozilla.l10n.multi_locale_build module

multi_locale_build.py

This should be a mostly generic multilocale build script.

class mozharness.mozilla.l10n.multi_locale_build.MultiLocaleBuild(require_config_file=True)[source]

Bases: mozharness.mozilla.l10n.locales.LocalesMixin, mozharness.base.vcs.vcsbase.MercurialScript

This class targets Fennec multilocale builds. We were considering this for potential Firefox desktop multilocale. Now that we have a different approach for B2G multilocale, it’s most likely misnamed.

add_locales()[source]
additional_packaging(package_type='en-US', env=None)[source]
backup_objdir()[source]
build()[source]
clobber()[source]
config_options = [[['--locale'], {'action': 'extend', 'dest': 'locales', 'type': 'string', 'help': 'Specify the locale(s) to repack'}], [['--merge-locales'], {'action': 'store_true', 'dest': 'merge_locales', 'default': False, 'help': 'Use default [en-US] if there are missing strings'}], [['--no-merge-locales'], {'action': 'store_false', 'dest': 'merge_locales', 'help': 'Do not allow missing strings'}], [['--objdir'], {'action': 'store', 'dest': 'objdir', 'default': 'objdir', 'type': 'string', 'help': 'Specify the objdir'}], [['--l10n-base'], {'action': 'store', 'dest': 'hg_l10n_base', 'type': 'string', 'help': 'Specify the L10n repo base directory'}], [['--l10n-tag'], {'action': 'store', 'dest': 'hg_l10n_tag', 'type': 'string', 'help': 'Specify the L10n tag'}], [['--tag-override'], {'action': 'store', 'dest': 'tag_override', 'type': 'string', 'help': 'Override the tags set for all repos'}], [['--user-repo-override'], {'action': 'store', 'dest': 'user_repo_override', 'type': 'string', 'help': 'Override the user repo path for all repos'}], [['--l10n-dir'], {'action': 'store', 'dest': 'l10n_dir', 'default': 'l10n', 'type': 'string', 'help': 'Specify the l10n dir name'}]]
package(package_type='en-US')[source]
package_en_US()[source]
package_multi()[source]
preflight_package_multi()[source]
pull_build_source()[source]
restore_objdir()[source]
upload_en_US()[source]
upload_multi()[source]

Module contents