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
3 changed files:
Changes:
1 | 1 | #!/bin/bash
|
2 | + |
|
3 | +# Usually NSIS uses English name with capital first letter.
|
|
4 | +# You can check the exact language names on NSIS's archive or here:
|
|
5 | +# https://sourceforge.net/p/nsis/code/HEAD/tree/NSIS/trunk/Contrib/Language%20files/
|
|
6 | + |
|
2 | 7 | declare -A nsis_languages
|
3 | 8 | nsis_languages[ar]="Arabic"
|
4 | 9 | nsis_languages[ca]="Catalan"
|
... | ... | @@ -13,7 +18,7 @@ nsis_languages[fr]="French" |
13 | 18 | nsis_languages[ga-IE]="ScotsGaelic"
|
14 | 19 | nsis_languages[he]="Hebrew"
|
15 | 20 | nsis_languages[hu]="Hungarian"
|
16 | -nsis_languages[d]="Indonesian"
|
|
21 | +nsis_languages[id]="Indonesian"
|
|
17 | 22 | nsis_languages[is]="Icelandic"
|
18 | 23 | nsis_languages[it]="Italian"
|
19 | 24 | nsis_languages[ja]="Japanese"
|
... | ... | @@ -37,3 +42,8 @@ nsis_languages[uk]="Ukrainian" |
37 | 42 | nsis_languages[vi]="Vietnamese"
|
38 | 43 | nsis_languages[zh-CN]="SimpChinese"
|
39 | 44 | nsis_languages[zh-TW]="TradChinese"
|
45 | + |
|
46 | +# Currently nightly only
|
|
47 | +nsis_languages[be]="Belarusian"
|
|
48 | +nsis_languages[bg]="Bulgarian"
|
|
49 | +nsis_languages[pt-PT]="Portuguese" |
... | ... | @@ -29,6 +29,7 @@ steps: |
29 | 29 | my $locales = project_config($project, $locales_key, $options);
|
30 | 30 | foreach my $loc (@$locales) {
|
31 | 31 | my $locale = process_template($project, $loc, '.');
|
32 | + next unless $locale;
|
|
32 | 33 | $locale =~ s/-r/-/;
|
33 | 34 | $locale = "id" if ($is_android && $locale eq "in");
|
34 | 35 | $locale = "he" if ($is_android && $locale eq "iw");
|
... | ... | @@ -149,6 +149,9 @@ var: |
149 | 149 | - vi
|
150 | 150 | - zh-CN
|
151 | 151 | - zh-TW
|
152 | + - '[% IF c("var/nightly") %]be[% END %]'
|
|
153 | + - '[% IF c("var/nightly") %]bg[% END %]'
|
|
154 | + - '[% IF c("var/nightly") %]pt-PT[% END %]'
|
|
152 | 155 | locales_mobile:
|
153 | 156 | - ar
|
154 | 157 | - ca
|