[tor-bugs] #26843 [Applications/Tor Browser]: TBA: Investigate how Mozilla Fennec provides localization

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Aug 6 22:37:09 UTC 2018


#26843: TBA: Investigate how Mozilla Fennec provides localization
--------------------------------------+--------------------------
 Reporter:  sysrqb                    |          Owner:  tbb-team
     Type:  task                      |         Status:  new
 Priority:  High                      |      Milestone:
Component:  Applications/Tor Browser  |        Version:
 Severity:  Normal                    |     Resolution:
 Keywords:  tbb-mobile                |  Actual Points:
Parent ID:  #26782                    |         Points:
 Reviewer:                            |        Sponsor:
--------------------------------------+--------------------------

Comment (by sysrqb):

 Okay. So, [https://searchfox.org/mozilla-
 central/source/build/docs/locales.rst there's a doc for this].
 Specifically, the mozilla build system clones [https://hg.mozilla.org
 /l10n-central l10n-central] and creates the localization package from
 there. I haven't look at the logic used for this, yet.

 We'll want to clone l10n-central separately, and add the location into
 `.mozconfig-android`:
 {{{
 ac_add_options --with-l10n-base=/make/this/a/absolute/path
 }}}

 The specific locale is repackaged using:
 {{{

       ./mach build installers-$AB_CD
 }}}

 The doc says:
 {{{
 You should find a re-packaged build at ``OBJDIR/dist/``, and a
 runnable binary in ``OBJDIR/dist/l10n-stage/``.
 }}}

 Running the `installers-` build target (by default):
 {{{
 The ``installers`` target runs quite a few things for you, including
 getting
 the repository for the requested locale from
 https://hg.mozilla.org/l10n-central/. It will clone them into
 ``~/.mozbuild/l10n-central``.
 }}}

 Multilocale packages are created using:
 {{{
       export MOZ_CHROME_MULTILOCALE="de it zh-TW"
       for AB_CD in $MOZ_CHROME_MULTILOCALE; do
          ./mach build chrome-$AB_CD
       done

       AB_CD=multi ./mach package
 }}}

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/26843#comment:2>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list