add German, Romanian and Persian translations

This commit is contained in:
emma peel 2022-12-19 17:57:51 +00:00
parent d273e09588
commit 88d01648db
4 changed files with 38 additions and 3 deletions

View File

@ -19,5 +19,5 @@ RewriteRule ^ga-IE/(.*) /ga$1 [R=302,L]
# 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|fa|fr|ga|ga-IE|he|hu|id|is|it|ja|ka|ko|lt|mk|ms|nb-NO|nl|pl|pt-BR|pt-PT|ro|sq|sv-SE|th|uk|vi|zh-CN|zh-TW)$ / [R=302,L]
RewriteRule ^(ar|ca|cs|da|de|el|fa|fr|ga|ga-IE|he|hu|id|is|it|ja|ka|ko|lt|mk|ms|nb-NO|nl|pl|pt-BR|pt-PT|ro|sq|sv-SE|th|uk|vi|zh-CN|zh-TW)/(.*) /$2 [R=302,L]
RewriteRule ^(ar|ca|cs|da|el|fr|ga|ga-IE|he|hu|id|is|it|ja|ka|ko|lt|mk|ms|nb-NO|nl|pl|pt-BR|pt-PT|sq|sv-SE|th|uk|vi|zh-CN|zh-TW)$ / [R=302,L]
RewriteRule ^(ar|ca|cs|da|el|fr|ga|ga-IE|he|hu|id|is|it|ja|ka|ko|lt|mk|ms|nb-NO|nl|pl|pt-BR|pt-PT|sq|sv-SE|th|uk|vi|zh-CN|zh-TW)/(.*) /$2 [R=302,L]

View File

@ -10,12 +10,22 @@ primary = yes
url_prefix = /
locale = en
[alternatives.de]
name = Deutsch (de)
url_prefix = /de/
locale = de
[alternatives.es]
name = Español (es)
primary = yes
url_prefix = /es/
locale = es
[alternatives.fa]
name = فارسی (fa)
url_prefix = /fa/
locale = fa
[alternatives.ru]
name = Русский (ru)
url_prefix = /ru/
@ -25,3 +35,10 @@ locale = ru
name = Türkçe (tr)
url_prefix = /tr/
locale = tr
[alternatives.ro]
name = Română (ro)
url_prefix = /ro/
locale = ro

View File

@ -1,5 +1,5 @@
content = en
translations = es, ru, tr
translations = de, es, fa, ro, ru, tr
i18npath = i18n
translate_paragraphwise = False
url_prefix = https://community.torproject.org/

View File

@ -4,12 +4,30 @@ order = order-last
url = /
language = English (en)
[de]
direction = text-left
order = order-last
url = /de/
language = Deutsch (de)
[es]
direction = text-left
order = order-last
url = /es/
language = Español (es)
[fa]
direction = text-right
order = order-last
url = /fa/
language = فارسی (fa)
[ro]
direction = text-left
order = order-last
url = /ro/
language = Română (ro)
[ru]
direction = text-left
order = order-last