Skip to content

Commit

Permalink
add translations: de fa fr ro sw. part of: tpo/web/community#333
Browse files Browse the repository at this point in the history
  • Loading branch information
emmapeel2 committed Jan 29, 2024
1 parent c85e82c commit e2dd06e
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 3 deletions.
4 changes: 2 additions & 2 deletions assets/.htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -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|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|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]
25 changes: 25 additions & 0 deletions community.lektorproject
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,42 @@ 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.fr]
name = Français (fr)
url_prefix = /fr/
locale = fr

[alternatives.ro]
name = Română (ro)
url_prefix = /ro/
locale = ro

[alternatives.ru]
name = Русский (ru)
url_prefix = /ru/
locale = ru

[alternatives.sw]
name = Kiswahili
url_prefix = /sw/
locale = sw

[alternatives.tr]
name = Türkçe (tr)
url_prefix = /tr/
Expand Down
2 changes: 1 addition & 1 deletion configs/i18n.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
content = en
translations = es, ru, tr
translations = de, es, fa, fr, ro, ru, sw, tr
i18npath = i18n
translate_paragraphwise = False
url_prefix = https://community.torproject.org/
30 changes: 30 additions & 0 deletions databags/alternatives.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,48 @@ 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)

[fr]
direction = text-left
order = order-last
url = /fr/
language = Français (fr)

[ro]
direction = text-left
order = order-last
url = /ro/
language = Română (ro)

[ru]
direction = text-left
order = order-last
url = /ru/
language = Русский (ru)

[sw]
direction = text-left
order = order-last
url = /sw/
language = Kiswahili (sw)

[tr]
direction = text-left
order = order-last
Expand Down

0 comments on commit e2dd06e

Please sign in to comment.