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

Pier Angelo Vendrame (@pierov) git at gitlab.torproject.org
Mon Apr 22 15:52:42 UTC 2024



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


Commits:
40425dd2 by Pier Angelo Vendrame at 2024-04-22T17:52:26+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
=====================================
@@ -133,15 +133,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/40425dd29bbcede26edf2db01da8d3287adeda1b

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/40425dd29bbcede26edf2db01da8d3287adeda1b
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/20240422/045e2053/attachment-0001.htm>


More information about the tbb-commits mailing list