#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, TorBrowserTeam201811, | Actual Points: TBA-a2, GeorgKoppen201811 | Parent ID: #26782 | Points: Reviewer: | Sponsor: -------------------------------------------------+-------------------------
Comment (by sysrqb): I built a multi-locale package, including the 28 locales provided by the desktop alpha builds. It is as simple as the [https://gitweb.torproject.org/tor- browser.git/tree/build/docs/locales.rst?h=tor-browser-60.3.0esr-8.5-1#n60 documentation says]. The trick is you must do it exactly as the doc says, and don't change the name of the environment variable it says :) (specifically, `MOZ_CHROME_MULTILOCALE` must be used and set correctly) Follow the same steps as comment:7, except substitute the last step (./mach build installers-es-ES) with the following three steps: {{{ $ export MOZ_CHROME_MULTILOCALE="ar ca cs da de el es-ES fa fr ga-IE he hu id is it ja ka ko nb-NO nl pl pt-BR ru sv-SE tr vi zh-CN zh-TW" $ for AB_CD in $MOZ_CHROME_MULTILOCALE; do ./mach build chrome-$AB_CD; done $ AB_CD=multi ./mach package }}} The resulting apk is ~48MB, including Orbot and the addons. The filename contains `en-US`: {{{ $ # before $ du -sh ~/tor-browser/obj-x86-linux-android/dist/fennec-60.3.0.en- US.android-i686.apk 46M /home/android/tor-browser/obj-x86-linux-android/dist/fennec-60.3.0 .en-US.android-i686.apk $ # after $ du -sh ~/tor-browser/obj-x86-linux-android/dist/fennec-60.3.0.en- US.android-i686.apk 48M /home/android/tor-browser/obj-x86-linux-android/dist/fennec-60.3.0 .en-US.android-i686.apk }}} Comparing the mutli-locale package with the single-locale package, the multi-locale package provides a better user experience. Orbot and Fennec use the system default locale on first-run, so they should use the same locale when the user opens the app. When a different locale is chosen within Fennec, Orbot uses the new locale, too. It seems like this mitigates the major problems in the single-locale package. -- Ticket URL: <https://trac.torproject.org/projects/tor/ticket/26843#comment:9> Tor Bug Tracker & Wiki <https://trac.torproject.org/> The Tor Project: anonymity online
_______________________________________________ tor-bugs mailing list tor-bugs@lists.torproject.org https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs