commit 2245bc36c49575bbfecc57a3fef418a534853623 Author: emma peel emma.peel@riseup.net Date: Mon Oct 11 06:58:37 2021 +0200
add Turkish for website. closes: https://gitlab.torproject.org/tpo/web/community/-/issues/231 --- .htaccess | 4 ++-- community.lektorproject | 5 +++++ configs/i18n.ini | 2 +- databags/alternatives.ini | 6 ++++++ 4 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/.htaccess b/.htaccess index 1e7a96d..93d6f93 100644 --- a/.htaccess +++ b/.htaccess @@ -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|he|hu|id|is|it|ja|ka|ko|lt|mk|ms|nb-NO|nl|pl|pt-BR|pt-PT|ro|ru|sv-SE|th|tr|vi|zh-CN|zh-TW)$ / [R=302,L] -RewriteRule ^(ar|ca|cs|da|de|el|fa|fr|ga|he|hu|id|is|it|ja|ka|ko|lt|mk|ms|nb-NO|nl|pl|pt-BR|pt-PT|ro|ru|sv-SE|th|tr|vi|zh-CN|zh-TW)/(.*) /$2 [R=302,L] +RewriteRule ^(ar|ca|cs|da|de|el|fa|fr|ga|he|hu|id|is|it|ja|ka|ko|lt|mk|ms|nb-NO|nl|pl|pt-BR|pt-PT|ro|ru|sv-SE|th|vi|zh-CN|zh-TW)$ / [R=302,L] +RewriteRule ^(ar|ca|cs|da|de|el|fa|fr|ga|he|hu|id|is|it|ja|ka|ko|lt|mk|ms|nb-NO|nl|pl|pt-BR|pt-PT|ro|ru|sv-SE|th|vi|zh-CN|zh-TW)/(.*) /$2 [R=302,L] diff --git a/community.lektorproject b/community.lektorproject index b933b44..4a2adfe 100644 --- a/community.lektorproject +++ b/community.lektorproject @@ -15,3 +15,8 @@ name = Español (es) primary = yes url_prefix = /es/ locale = es + +[alternatives.tr] +name = Türkçe (tr) +url_prefix = /tr/ +locale = tr diff --git a/configs/i18n.ini b/configs/i18n.ini index 53c9865..933da87 100644 --- a/configs/i18n.ini +++ b/configs/i18n.ini @@ -1,5 +1,5 @@ content = en -translations = es +translations = es, tr i18npath = i18n translate_paragraphwise = False url_prefix = https://community.torproject.org/ diff --git a/databags/alternatives.ini b/databags/alternatives.ini index 774371b..e3d4bcb 100644 --- a/databags/alternatives.ini +++ b/databags/alternatives.ini @@ -9,3 +9,9 @@ direction = text-left order = order-last url = /es/ language = Español (es) + +[tr] +direction = text-left +order = order-last +url = /tr/ +language = Türkçe (tr)
tor-commits@lists.torproject.org