mirror of
https://github.com/torproject/community.git
synced 2024-11-23 01:39:50 +00:00
reduce locales in config, correct .htaccess file to prevent 404s, make model translatable
This commit is contained in:
parent
0c630870c1
commit
1a1b0492b6
@ -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]
|
||||
|
@ -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
|
||||
|
@ -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/
|
||||
|
@ -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
|
||||
|
@ -15,6 +15,7 @@ translate = True
|
||||
[fields.section]
|
||||
label = Section
|
||||
type = string
|
||||
translate = True
|
||||
|
||||
[fields.cta]
|
||||
label = Call To Action
|
||||
|
@ -1,7 +1,9 @@
|
||||
[model]
|
||||
name = Text
|
||||
label = Text
|
||||
translate = True
|
||||
|
||||
[fields.body]
|
||||
label = Body
|
||||
type = text
|
||||
translate = True
|
||||
|
Loading…
Reference in New Issue
Block a user