cleanup duplicated langs and replace with forward

This commit is contained in:
emma peel 2019-04-08 10:44:44 +02:00
parent 1b00821697
commit 9380938efd
4 changed files with 5 additions and 45 deletions

View File

@ -9,6 +9,9 @@ RewriteRule ^en(.+)$ /$1 [R=302,L]
RewriteRule ^es-ES/(.+)$ /es/$1 [R=302,L]
RewriteRule ^es-AR/(.+)$ /es/$1 [R=302,L]
# Our mapping is not the same as the Tor Browser
RewriteRule ^bn-BD/(.+)$ /bn/$1 [R=302,L]
# Rewrites for languages that have a Tor Browser release
# but don't have a support page
RewriteRule ^(ar|cs|da|el|fa|he|hu|is|ja|ka|ko|nb-NO|nl|pl|ru|sv-SE|vi|zh-TW)/(.+)$ /$1 [R=302,L]

View File

@ -1,4 +1,5 @@
content = en
translations = bn,bn-BD,ca,de,en-US,es,fr,ga,id,it,pt-BR,tr,zh-CN
translations = bn,ca,de,es,fr,ga,id,it,pt-BR,tr,zh-CN
i18npath = i18n
translate_paragraphwise = False
url_prefix = https://support.torproject.org/

View File

@ -10,12 +10,6 @@ order = order-last
url = /bn/
language = বাংলা ভাষা (bn)
[bn-BD]
direction = text-left
order = order-last
url = /bn-BD/
language = বাংলা ভাষা (bn-BD)
[ca]
direction = text-left
order = order-last
@ -28,18 +22,6 @@ order = order-last
url = /de/
language = Deutsch (de)
[en-US]
direction = text-left
order = order-last
url = /en-US/
language = English (en)
[en-US]
direction = text-left
order = order-last
url = /en-US/
language = English (en-US)
[es]
direction = text-left
order = order-last

View File

@ -9,21 +9,6 @@ name = বাংলা ভাষা (bn)
url_prefix = /bn/
locale = bn
[alternatives.bn-BD]
name = বাংলা ভাষা (bn)
url_prefix = /bn-BD/
locale = bn
[alternatives.bn]
name = Bengali
url_prefix = /bn/
locale = bn_BD
[alternatives.bn-BD]
name = Bengali
url_prefix = /bn-BD/
locale = bn_BD
[alternatives.ca]
name = Catala
url_prefix = /ca/
@ -40,17 +25,6 @@ primary = yes
url_prefix = /
locale = en
[alternatives.en-US]
name = English (en)
url_prefix = /en-US/
locale = en
[alternatives.en-US]
name = English
primary = yes
url_prefix = /en-US/
locale = en_US
[alternatives.es]
name = Español
url_prefix = /es/