Merge branch 'new_langs' into 'main'

Add ga, ja, pl translations: Irish, Japanese and Polish

See merge request tpo/web/support!227
This commit is contained in:
emmapeel 2024-10-02 21:04:06 +00:00
commit 71a305c08b
4 changed files with 35 additions and 2 deletions

View File

@ -14,4 +14,4 @@ RewriteRule ^ga-IE(.*) /ga$1 [R=302,L]
# Rewrites for languages that have a Tor Browser release
# but don't have a support page
# this languages are the translation priority for the support portal!
RewriteRule ^(bn|ca|cs|da|el|ga|he|hu|is|ja|ka|ml|ms|mk|nb-NO|nl|pl|sq|sv-SE)/(.*) /$2 [R=302,L]
RewriteRule ^(bn|ca|cs|da|el|he|hu|is|ka|ml|ms|mk|nb-NO|nl|sq|sv-SE)/(.*) /$2 [R=302,L]

View File

@ -1,5 +1,5 @@
content = en
translations = ar,de,es,fa,fr,id,it,ko,pt-BR,ro,ru,sw,tr,uk,vi,zh-CN,zh-TW
translations = ar,de,es,fa,fr,ga,id,it,ja,ko,pl,pt-BR,ro,ru,sw,tr,uk,vi,zh-CN,zh-TW
i18npath = i18n
translate_paragraphwise = False
url_prefix = https://support.torproject.org/

View File

@ -34,6 +34,12 @@ order = order-last
url = /fr/
language = Français (fr)
[ga]
direction = text-left
order = order-last
url = /ga/
language = Gaeilge (ga)
[id]
direction = text-left
order = order-last
@ -46,12 +52,24 @@ order = order-last
url = /it/
language = Italiano (it)
[ja]
direction = text-left
order = order-last
language = 日本語 (ja)
url = /ja/
[ko]
direction = text-left
order = order-last
language = 한국어(ko)
url = /ko/
[pl]
direction = text-left
order = order-last
url = /pl/
language = polski (pl)
[pt-BR]
direction = text-left
order = order-last

View File

@ -35,6 +35,11 @@ name = Français
url_prefix = /fr/
locale = fr
[alternatives.ga]
name = Gaeilge (ga)
url_prefix = /ga/
locale = ga
[alternatives.id]
name = Indonesia (id)
url_prefix = /id/
@ -45,11 +50,21 @@ name = Italiano (it)
url_prefix = /it/
locale = it
[alternatives.ja]
name = 日本語 (ja)
url_prefix = /ja/
locale = ja
[alternatives.ko]
name = 한국어 (ko)
url_prefix = /ko/
locale = ko
[alternatives.pl]
name = polski (pl)
url_prefix = /pl/
locale = pl
[alternatives.pt-BR]
name = Português Br. (pt-BR)
url_prefix = /pt-BR/