[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [tor-browser-bundle/master] Bug 20556: update pt-PT users to pt-BR
commit c3e365d6eb07ea07a4187380aebe2c6015a50346
Author: Nicolas Vigier <boklm@xxxxxxxxxxxxxx>
Date: Tue Nov 8 16:46:19 2016 +0100
Bug 20556: update pt-PT users to pt-BR
---
tools/update-responses/config.yml | 2 ++
tools/update-responses/update_responses | 5 +++++
2 files changed, 7 insertions(+)
diff --git a/tools/update-responses/config.yml b/tools/update-responses/config.yml
index c0559e2..8daa8e1 100644
--- a/tools/update-responses/config.yml
+++ b/tools/update-responses/config.yml
@@ -40,6 +40,8 @@ versions:
- 6.5a4
migrate_archs:
osx32: osx64
+ migrate_langs:
+ pt-PT: pt-BR
osx32:
minSupportedOSVersion: 10.8
detailsURL: https://blog.torproject.org/blog/end-life-plan-tor-browser-32-bit-macs#updating
diff --git a/tools/update-responses/update_responses b/tools/update-responses/update_responses
index b61e379..c60704f 100755
--- a/tools/update-responses/update_responses
+++ b/tools/update-responses/update_responses
@@ -355,6 +355,7 @@ sub write_htaccess {
foreach my $channel (@channels) {
my $htaccess = "RewriteEngine On\n";
my $version = $config->{channels}{$channel};
+ my $migrate_langs = $config->{versions}{$version}{migrate_langs} // {};
my $files = $config->{versions}{$version}{files};
$htaccess .= "RewriteRule ^[^\/]+/$version/ no-update.xml $flags\n";
foreach my $os (sort keys %$files) {
@@ -367,6 +368,10 @@ sub write_htaccess {
$htaccess .= "RewriteRule ^$bt/[^\/]+/$lang "
. "$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";
}
}
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits