Commit c3e365d6 authored by boklm's avatar boklm Committed by Georg Koppen
Browse files

Bug 20556: update pt-PT users to pt-BR

parent 06fe66a1
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -40,6 +40,8 @@ versions:
          - 6.5a4
          - 6.5a4
        migrate_archs:
        migrate_archs:
          osx32: osx64
          osx32: osx64
        migrate_langs:
            pt-PT: pt-BR
        osx32:
        osx32:
            minSupportedOSVersion: 10.8
            minSupportedOSVersion: 10.8
            detailsURL: https://blog.torproject.org/blog/end-life-plan-tor-browser-32-bit-macs#updating
            detailsURL: https://blog.torproject.org/blog/end-life-plan-tor-browser-32-bit-macs#updating
+5 −0
Original line number Original line Diff line number Diff line
@@ -355,6 +355,7 @@ sub write_htaccess {
    foreach my $channel (@channels) {
    foreach my $channel (@channels) {
        my $htaccess = "RewriteEngine On\n";
        my $htaccess = "RewriteEngine On\n";
        my $version = $config->{channels}{$channel};
        my $version = $config->{channels}{$channel};
        my $migrate_langs = $config->{versions}{$version}{migrate_langs} // {};
        my $files = $config->{versions}{$version}{files};
        my $files = $config->{versions}{$version}{files};
        $htaccess .= "RewriteRule ^[^\/]+/$version/ no-update.xml $flags\n";
        $htaccess .= "RewriteRule ^[^\/]+/$version/ no-update.xml $flags\n";
        foreach my $os (sort keys %$files) {
        foreach my $os (sort keys %$files) {
@@ -367,6 +368,10 @@ sub write_htaccess {
                    $htaccess .= "RewriteRule ^$bt/[^\/]+/$lang "
                    $htaccess .= "RewriteRule ^$bt/[^\/]+/$lang "
                              .  "$version-$os-$lang.xml $flags\n";
                              .  "$version-$os-$lang.xml $flags\n";
                }
                }
                foreach my $lang (sort keys %$migrate_langs) {
                    $htaccess .= "RewriteRule ^$bt/[^\/]+/$lang "
                              .  "$version-$os-$migrate_langs->{$lang}.xml $flags\n";
                }
                $htaccess .= "RewriteRule ^$bt/ $version-$os-en-US.xml $flags\n";
                $htaccess .= "RewriteRule ^$bt/ $version-$os-en-US.xml $flags\n";
            }
            }
        }
        }