[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



Title: GitLab

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:

Changes:

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

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits