[tbb-commits] [Git][tpo/applications/tor-browser-build][main] Bug 41149: Add be, bg, and pt-PT to nightlies.

Pier Angelo Vendrame (@pierov) git at gitlab.torproject.org
Tue May 28 14:42:55 UTC 2024



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%20files/
+
 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/8045286909c3e84957c73f9b2301cce74ac1dcf4

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser-build/-/commit/8045286909c3e84957c73f9b2301cce74ac1dcf4
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/20240528/990f10f4/attachment-0001.htm>


More information about the tbb-commits mailing list