reduce locales in config, correct .htaccess file to prevent 404s, make model translatable

This commit is contained in:
emma peel 2021-03-25 08:10:43 +01:00
parent 0c630870c1
commit 1a1b0492b6
6 changed files with 12 additions and 9 deletions

View File

@ -9,7 +9,7 @@ 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$2 [R=302,L]
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]

View File

@ -10,8 +10,8 @@ primary = yes
url_prefix = /
locale = en
[alternatives.es-AR]
name = Español Arg (es-AR)
[alternatives.es]
name = Español (es)
primary = yes
url_prefix = /es-AR/
locale = es-AR
url_prefix = /es/
locale = es

View File

@ -1,5 +1,5 @@
content = en
translations = es,es-AR,de,fr,it,pt-BR,ru
translations = es
i18npath = i18n
translate_paragraphwise = False
url_prefix = https://community.torproject.org/

View File

@ -4,8 +4,8 @@ order = order-last
url = /
language = English (en)
[es-AR]
[es]
direction = text-left
order = order-last
url = /es-AR/
language = Español Arg. (es-AR)
url = /es/
language = Español

View File

@ -15,6 +15,7 @@ translate = True
[fields.section]
label = Section
type = string
translate = True
[fields.cta]
label = Call To Action

View File

@ -1,7 +1,9 @@
[model]
name = Text
label = Text
translate = True
[fields.body]
label = Body
type = text
translate = True