[tor-commits] [community/translations] add redirects for languages still not published.

emmapeel at torproject.org emmapeel at torproject.org
Wed Jan 15 16:40:51 UTC 2020


commit f1d585122351616a09acddc86d37d6a35d3328d0
Author: emma peel <emma.peel at riseup.net>
Date:   Mon Dec 16 11:22:31 2019 +0100

    add redirects for languages still not published.
    will-fix:  https://trac.torproject.org/projects/tor/ticket/32760
---
 .htaccess | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/.htaccess b/.htaccess
index 6e2c53a..ba7c37a 100644
--- a/.htaccess
+++ b/.htaccess
@@ -1,4 +1,22 @@
+RewriteEngine On
+
 # forward requests in /en to the root folder
 RewriteRule ^(en-US|en)$ / [R=302,L]
 RewriteRule ^(en-US|en)/(.*) /$2 [R=302,L]
 
+# forward requests in /en and /en-US to the root folder
+RewriteRule ^(en|en-US)$ / [R=302,L]
+RewriteRule ^(en|en-US)/(.*) /$2 [R=302,L]
+
+# Rewrites for languages that have a different mapping in the page than in TBB
+RewriteRule ^(es-ES|es-MX|es-CO|es-AR)(.*) /es$2 [R=302,L]
+
+# we have only one translation for this locales
+RewriteRule ^(bn-BD|bn-IN)(.*) /bn$2 [R=302,L]
+RewriteRule ^ga-IE/(.*) /ga$1 [R=302,L]
+
+# Rewrites for languages that have a Tor Browser release
+# but don't have a community page
+# You can see them at https://dist.torproject.org/torbrowser/, pick the last alpha for the most languages
+# this languages are the translation priority for the community portal!
+RewriteRule ^(ar|ca|cs|da|de|el|es|fa|fr|ga|he|hu|id|is|ja|ka|ko|lt|mk|ms|nb-NO|nl|pl|pt-BR|pt-PT|ro|ru|sv-SE|th|tr|vi|zh-CN|zh-TW)/(.*) /$2 [R=302,L]





More information about the tor-commits mailing list