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

[tor-commits] [Git][tpo/applications/tor-browser-build][main] MB 198: Enable additional languages on Mullvad Browser.



Title: GitLab

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

Commits:

  • a93cb13f
    by Pier Angelo Vendrame at 2023-08-08T18:09:08+02:00
    MB 198: Enable additional languages on Mullvad Browser.
    
    Also MB 199: Inject Mullvad Browser-specific localized strings in
    projects/firefox.
    

5 changed files:

Changes:

  • .gitlab/issue_templates/Release Prep - Mullvad Browser Alpha.md
    ... ... @@ -47,6 +47,7 @@ Mullvad Browser Alpha (and Nightly) are on the `main` branch
    47 47
         - [ ] run `make list_translation_updates-alpha` to get updated hashes
    
    48 48
         - [ ] `steps/base-browser/git_hash` : update with `HEAD` commit of project's `base-browser` branch
    
    49 49
         - [ ] `steps/base-browser-fluent/git_hash` : update with `HEAD` commit of project's `basebrowser-newidentityftl` branch
    
    50
    +    - [ ] `steps/mullvad-browser/git_hash` : update with `HEAD` commit of project's `mullvad-browser` branch
    
    50 51
     - [ ] Update common build configs
    
    51 52
       - [ ] Check for NoScript updates here : https://addons.mozilla.org/en-US/firefox/addon/noscript
    
    52 53
         - [ ] ***(Optional)*** If new version available, update `noscript` section of `input_files` in `projects/browser/config`
    

  • projects/firefox/build
    ... ... @@ -154,6 +154,14 @@ mkdir "$HOME/.mozbuild"
    154 154
           echo "% locale torbutton $lang %locale/$lang/" >> "$torbutton_jar"
    
    155 155
           echo "    locale/$lang (chrome/locale/$lang/*)" >> "$torbutton_jar"
    
    156 156
         done
    
    157
    +  [% ELSIF c("var/mullvad-browser") -%]
    
    158
    +    tar -C "$rootdir" -xf "$rootdir/[% c('input_files_by_name/translation-mullvad-browser') %]"
    
    159
    +    pushd "$rootdir/translation-mullvad-browser"
    
    160
    +    ln -s ja ja-JP-mac
    
    161
    +    for lang in $supported_locales; do
    
    162
    +      cp -r $lang "$l10ncentral/"
    
    163
    +    done
    
    164
    +    popd
    
    157 165
       [% END -%]
    
    158 166
     [% ELSE -%]
    
    159 167
       supported_locales=""
    

  • projects/firefox/config
    ... ... @@ -199,6 +199,10 @@ input_files:
    199 199
         name: translation-tor-browser
    
    200 200
         pkg_type: tor-browser
    
    201 201
         enable: '[% c("var/tor-browser") && c("var/has_l10n") %]'
    
    202
    +  - project: translation
    
    203
    +    name: translation-mullvad-browser
    
    204
    +    pkg_type: mullvad-browser
    
    205
    +    enable: '[% c("var/mullvad-browser") && c("var/has_l10n") %]'
    
    202 206
       - filename: marsigner.der
    
    203 207
         enable: '[% c("var/override_updater_url") %]'
    
    204 208
       - filename: namecoin-torbutton.patch
    

  • projects/translation/config
    ... ... @@ -28,6 +28,12 @@ steps:
    28 28
         targets:
    
    29 29
           nightly:
    
    30 30
             git_hash: 'tor-browser'
    
    31
    +  mullvad-browser:
    
    32
    +    mullvad-browser: '[% INCLUDE build %]'
    
    33
    +    git_hash: 1f736c5ae157f27df975c18bf3f2fa5f4bb5e33a
    
    34
    +    targets:
    
    35
    +      nightly:
    
    36
    +        git_hash: 'mullvad-browser'
    
    31 37
       fenix:
    
    32 38
         fenix: '[% INCLUDE build %]'
    
    33 39
         # We need to bump the commit before releasing but just pointing to a branch
    
    ... ... @@ -40,7 +46,7 @@ steps:
    40 46
       list_updates:
    
    41 47
         list_updates: |
    
    42 48
           [%
    
    43
    -        FOREACH component = [ 'base-browser', 'base-browser-fluent', 'tor-browser', 'fenix' ];
    
    49
    +        FOREACH component = [ 'base-browser', 'base-browser-fluent', 'tor-browser', 'mullvad-browser', 'fenix' ];
    
    44 50
               branch = pc(project, 'git_hash', { step => component, target => [ 'nightly' ] });
    
    45 51
               commit_hash = exec('git rev-parse ' _ branch, { git_hash => branch });
    
    46 52
               IF commit_hash == pc(project, "git_hash", { step => component });
    

  • rbm.conf
    ... ... @@ -280,7 +280,28 @@ targets:
    280 280
           ProjectName: MullvadBrowser
    
    281 281
           exe_name: mullvadbrowser
    
    282 282
           mar_channel_id: '[% c("var/projectname") %]-mullvad-[% c("var/channel") %]'
    
    283
    -      locales: []
    
    283
    +      locales:
    
    284
    +        - ar
    
    285
    +        - da
    
    286
    +        - de
    
    287
    +        - es-ES
    
    288
    +        - fa
    
    289
    +        - fi
    
    290
    +        - fr
    
    291
    +        - it
    
    292
    +        - '[% c("var/locale_ja") %]'
    
    293
    +        - ko
    
    294
    +        - my
    
    295
    +        - nb-NO
    
    296
    +        - nl
    
    297
    +        - pl
    
    298
    +        - pt-BR
    
    299
    +        - ru
    
    300
    +        - sv-SE
    
    301
    +        - th
    
    302
    +        - tr
    
    303
    +        - zh-CN
    
    304
    +        - zh-TW
    
    284 305
           torbrowser_build: 'build2'
    
    285 306
           torbrowser_incremental_from:
    
    286 307
             - 12.5a7
    

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