Merge branch 'newlangs' into 'main'

Add Persian, Ukrainian and Albanian translation

See merge request tpo/web/manual!65
This commit is contained in:
emmapeel 2022-12-03 07:44:26 +00:00
commit e9a2dc9555
4 changed files with 36 additions and 3 deletions

View File

@ -19,8 +19,8 @@ RewriteRule ^(es-ES|es-MX|es-CO|es-AR)/(.*) /es/$2 [R=302,L]
# Rewrites for languages that have a Tor Browser release
# but don't have a translated manual
# this languages are the priority for translation of the Tor Browser User Manual!
RewriteRule ^(cs|da|fa|ja|ms|nb-NO|nl|pl|sv-SE|vi)$ / [R=302,L]
RewriteRule ^(cs|da|fa|ja|ms|nb-NO|nl|pl|sv-SE|vi)/(.*) /$2 [R=302,L]
RewriteRule ^(cs|da|ja|ms|nb-NO|nl|pl|sv-SE|vi)$ / [R=302,L]
RewriteRule ^(cs|da|ja|ms|nb-NO|nl|pl|sv-SE|vi)/(.*) /$2 [R=302,L]
# we have only one translation for this locales
RewriteRule ^bn-(BD|IN)$ /bn [R=302,L]

View File

@ -1,5 +1,5 @@
content = en
translations = ar,bn,ca,de,el,es,fr,ga,he,hu,id,is,it,ka,km,ko,lt,mk,my,pt-BR,pt-PT,ro,ru,th,tr,zh-CN,zh-TW
translations = ar,bn,ca,de,el,es,fa,fr,ga,he,hu,id,is,it,ka,km,ko,lt,mk,my,pt-BR,pt-PT,ro,ru,sq,th,tr,uk,zh-CN,zh-TW
i18npath = i18n
url_prefix = https://tb-manual.torproject.org/
translate_paragraphwise = False

View File

@ -40,6 +40,12 @@ order = order-last
url = /es/
language = Español (es)
[fa]
direction = text-right
order = order-last
url = /fa/
language = فارسی (fa)
[fr]
direction = text-left
order = order-last
@ -142,6 +148,12 @@ order = order-last
url = /ru/
language = Русский (ru)
[sq]
direction = text-left
order = order-last
url = /sq/
language = Shqip (sq)
[th]
direction = text-left
order = order-last
@ -154,6 +166,12 @@ order = order-last
url = /tr/
language = Türkçe (tr)
[uk]
direction = text-left
order = order-last
url = /uk/
language = українська (uk)
[zh-CN]
direction = text-left
order = order-last

View File

@ -40,6 +40,11 @@ name = Español (es)
url_prefix = /es/
locale = es
[alternatives.fa]
name = فارسی (fa)
url_prefix = /fa/
locale = fa
[alternatives.fr]
name = Français (fr)
url_prefix = /fr/
@ -125,6 +130,11 @@ name = Русский (ru)
url_prefix = /ru/
locale = ru
[alternatives.sq]
name = Shqip (sq)
url_prefix = /sq/
locale = sq
[alternatives.th]
name = ภาษาไทย (th)
url_prefix = /th/
@ -135,6 +145,11 @@ name = Türkçe (tr)
url_prefix = /tr/
locale = tr
[alternatives.uk]
name = українська (uk)
url_prefix = /uk/
locale = uk
[alternatives.zh-CN]
name = 简体中文 (zh-CN)
url_prefix = /zh-CN/