
Pier Angelo Vendrame pushed to branch main at The Tor Project / Applications / tor-browser-build Commits: 80452869 by Pier Angelo Vendrame at 2024-05-28T16:41:13+02:00 Bug 41149: Add be, bg, and pt-PT to nightlies. Also, add support for skipping languages when they are evaluated as empty strings after being processed as templates. We already process them for Japanese, but with this change we will be able to enable/disable languages for specific channels. Also, fix a typo in the "id" language code in the map we use to associate language names to codes for NSIS. - - - - - 3 changed files: - projects/browser/windows-installer/language-map.sh - projects/firefox-l10n/config - rbm.conf Changes: ===================================== projects/browser/windows-installer/language-map.sh ===================================== @@ -1,4 +1,9 @@ #!/bin/bash + +# Usually NSIS uses English name with capital first letter. +# You can check the exact language names on NSIS's archive or here: +# https://sourceforge.net/p/nsis/code/HEAD/tree/NSIS/trunk/Contrib/Language%20... + declare -A nsis_languages nsis_languages[ar]="Arabic" nsis_languages[ca]="Catalan" @@ -13,7 +18,7 @@ nsis_languages[fr]="French" nsis_languages[ga-IE]="ScotsGaelic" nsis_languages[he]="Hebrew" nsis_languages[hu]="Hungarian" -nsis_languages[d]="Indonesian" +nsis_languages[id]="Indonesian" nsis_languages[is]="Icelandic" nsis_languages[it]="Italian" nsis_languages[ja]="Japanese" @@ -37,3 +42,8 @@ nsis_languages[uk]="Ukrainian" nsis_languages[vi]="Vietnamese" nsis_languages[zh-CN]="SimpChinese" nsis_languages[zh-TW]="TradChinese" + +# Currently nightly only +nsis_languages[be]="Belarusian" +nsis_languages[bg]="Bulgarian" +nsis_languages[pt-PT]="Portuguese" ===================================== projects/firefox-l10n/config ===================================== @@ -29,6 +29,7 @@ steps: my $locales = project_config($project, $locales_key, $options); foreach my $loc (@$locales) { my $locale = process_template($project, $loc, '.'); + next unless $locale; $locale =~ s/-r/-/; $locale = "id" if ($is_android && $locale eq "in"); $locale = "he" if ($is_android && $locale eq "iw"); ===================================== rbm.conf ===================================== @@ -149,6 +149,9 @@ var: - vi - zh-CN - zh-TW + - '[% IF c("var/nightly") %]be[% END %]' + - '[% IF c("var/nightly") %]bg[% END %]' + - '[% IF c("var/nightly") %]pt-PT[% END %]' locales_mobile: - ar - ca View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/80... -- This project does not include diff previews in email notifications. View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/80... You're receiving this email because of your account on gitlab.torproject.org.
participants (1)
-
Pier Angelo Vendrame (@pierov)