We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3ffb8e commit 7de10ccCopy full SHA for 7de10cc
app/classes/Transvision/Project.php
@@ -83,6 +83,14 @@ class Project
83
'source_type' => 'mixed',
84
'variable_patterns' => ['ftl'],
85
],
86
+ 'firefox_com' => [
87
+ 'git_repository' => 'mozilla-l10n/www-firefox-l10n',
88
+ 'git_branch' => 'main',
89
+ 'pontoon_project' => 'firefoxcom',
90
+ 'reference_locale' => 'en',
91
+ 'source_type' => 'mixed',
92
+ 'variable_patterns' => ['ftl'],
93
+ ],
94
'android_l10n' => [
95
'git_repository' => 'mozilla-l10n/android-l10n',
96
'git_branch' => 'master',
@@ -114,8 +122,8 @@ class Project
114
122
115
123
// Products using Git
116
124
'git' => [
117
- 'android_l10n', 'firefox_ios', 'gecko_strings', 'mozilla_org',
118
- 'seamonkey', 'thunderbird', 'vpn_client',
125
+ 'android_l10n', 'firefox_ios', 'gecko_strings', 'firefox_com',
126
+ 'mozilla_org', 'seamonkey', 'thunderbird', 'vpn_client',
119
127
120
128
// Products using free text search on Pontoon
121
129
'text_search' => [
app/classes/Transvision/VersionControl.php
@@ -129,8 +129,8 @@ public static function gitPath($locale, $repo, $path)
130
return "https://github.com/{$git_repo}/blob/{$git_branch}/{$file_path}";
131
}
132
- if ($repo == 'mozilla_org') {
133
- // Special case for mozilla.org (Fluent)
+ if ($repo == 'mozilla_org' || $repo == "firefox_com") {
+ // Special case for mozilla.org and firefox.com (Fluent)
134
if ($locale != 'en') {
135
$file_path = str_replace('en/', "{$locale}/", $file_path);
136
app/models/unchanged_strings.php
@@ -1,9 +1,10 @@
1
<?php
2
namespace Transvision;
3
4
-// Set up the repository selector, remove meta project and mozilla.org
+// Set up the repository selector, remove meta project, mozilla.org, firefox.com
5
$repositories = Project::getSupportedRepositories(true);
6
unset($repositories['mozilla_org']);
7
+unset($repositories['firefox_com']);
8
$repository_selector = Utils::getHtmlSelectOptions($repositories, $repo, true);
9
10
$reference_locale = Project::getReferenceLocale($repo);
app/scripts/bash_variables.sh
@@ -25,6 +25,10 @@ folders+=( $seamonkey_path )
25
mozilla_org=$local_git/mozilla_org/
26
folders+=( $mozilla_org )
27
28
+# Location of firefox.com repository (Fluent based)
29
+firefox_com=$local_git/firefox_com/
30
+folders+=( $firefox_com )
31
+
32
# Firefox for iOS, Android-l10n, VPN Client
33
android_l10n=$local_git/android_l10n/
34
firefox_ios=$local_git/firefox_ios/
app/scripts/glossaire.sh
@@ -230,13 +230,27 @@ function updateMozOrg() {
230
nice -20 $install/app/scripts/tmx/tmx_projectconfig.py $mozilla_org/l10n-vendor.toml --ref en --repo mozilla_org
231
232
233
+function updateFirefoxCom() {
234
+ if [ "$checkrepo" = true ]
235
+ then
236
+ cd $firefox_com
237
+ echogreen "Update GitHub repository"
238
+ git pull
239
+ fi
240
+ echogreen "Extract strings for firefox.com (Fluent)"
241
+ cd $install
242
+ nice -20 $install/app/scripts/tmx/tmx_projectconfig.py $firefox_com/l10n-pontoon.toml --ref en --repo firefox_com
243
+ nice -20 $install/app/scripts/tmx/tmx_projectconfig.py $firefox_com/l10n-vendor.toml --ref en --repo firefox_com
244
+}
245
246
echogreen "Activating virtualenv..."
247
source $install/python-venv/bin/activate || exit 1
248
249
updateMultirepo gecko_strings
250
updateMultirepo thunderbird
251
updateSeamonkey
252
updateMozOrg
253
+updateFirefoxCom
254
updateOtherProduct firefox_ios "Firefox for iOS" tmx_xliff
255
updateOtherProduct vpn_client "Mozilla VPN Client" tmx_xliff
256
updateAndroidl10n
app/scripts/setup.sh
@@ -189,6 +189,13 @@ then
189
git clone https://github.com/mozilla-l10n/www-l10n .
190
fi
191
192
+cd $firefox_com
193
+if [ ! -d $firefox_com/.git ]
194
+then
195
+ echogreen "Checking out firefox.com (Fluent) repo"
196
+ git clone https://github.com/mozilla-l10n/www-firefox-l10n .
197
+fi
198
199
cd $firefox_ios
200
if [ ! -d $firefox_ios/.git ]
201
then
0 commit comments