[tbb-commits] [Git][tpo/applications/tor-browser-build][maint-13.0] Bug 42535 (TB): Fix Japanese translation paths.

Pier Angelo Vendrame (@pierov) git at gitlab.torproject.org
Thu May 2 15:10:38 UTC 2024



Pier Angelo Vendrame pushed to branch maint-13.0 at The Tor Project / Applications / tor-browser-build


Commits:
0e074a38 by Pier Angelo Vendrame at 2024-05-02T17:10:10+02:00
Bug 42535 (TB): Fix Japanese translation paths.

When we setup packaged locales, it seemed that Japanese files needed to
be in torbutton/locale/ja also for macOS, instead of ja-JP-mac.
However, recently we saw that Firefox cannot find brand.ftl in ja, and
the legacy files work also in ja-JP-mac.
Maybe the initial tests were influenced by some cache.

- - - - -


1 changed file:

- projects/firefox/build


Changes:

=====================================
projects/firefox/build
=====================================
@@ -132,15 +132,15 @@ mkdir "$HOME/.mozbuild"
     torbutton_locales="toolkit/torbutton/chrome/locale/"
     torbutton_jar="toolkit/torbutton/jar.mn"
     for lang in $supported_locales; do
-      central_lang=$lang
+      source_lang=$lang
       [% IF c("var/macos") -%]
         if [ "$lang" == "ja-JP-mac" ]; then
-          lang="ja"
+          source_lang="ja"
         fi
       [% END -%]
-      mv "$transl_tor_browser/$lang/tor-browser.ftl" "$l10ncentral/$central_lang/browser/browser/"
-      mv "$transl_tor_browser/$lang/cryptoSafetyPrompt.properties" "$l10ncentral/$central_lang/browser/chrome/browser/"
-      mv "$transl_tor_browser/$lang" "$torbutton_locales/"
+      mv "$transl_tor_browser/$source_lang/tor-browser.ftl" "$l10ncentral/$lang/browser/browser/"
+      mv "$transl_tor_browser/$source_lang/cryptoSafetyPrompt.properties" "$l10ncentral/$lang/browser/chrome/browser/"
+      mv "$transl_tor_browser/$source_lang" "$torbutton_locales/$lang"
       echo "% locale torbutton $lang %locale/$lang/" >> "$torbutton_jar"
       echo "    locale/$lang (chrome/locale/$lang/*)" >> "$torbutton_jar"
     done



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/0e074a38509d957e867df150f796f6ac87e7ce78

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/0e074a38509d957e867df150f796f6ac87e7ce78
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20240502/38925d19/attachment-0001.htm>


More information about the tbb-commits mailing list