commit c7f3330609d7ba4560ee9b7850c0371e07e55041 Author: emma peel emma.peel@riseup.net Date: Fri Mar 26 14:49:41 2021 +0100
add more languages for preview: el,fa,he,id,it,ka,pl,sq --- .htaccess | 4 ++-- GetTor.lektorproject | 50 ++++++++++++++++++++++++++++++++++++++++++----- configs/i18n.ini | 2 +- databags/alternatives.ini | 48 +++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 96 insertions(+), 8 deletions(-)
diff --git a/.htaccess b/.htaccess index 2f22bf4..a7aa9c1 100644 --- a/.htaccess +++ b/.htaccess @@ -17,5 +17,5 @@ RewriteRule ^ga-IE/(.*) /ga$1 [R=302,L] # but don't have a gettor website translation # 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 gettor website -RewriteRule ^(ca|cs|da|el|fa|ga|he|hu|id|is|it|ja|ka|ko|lt|ms|nb-NO|nl|pl|pt-PT|ro|ru|sv-SE|th|vi|zh-TW)$ / [R=302,L] -RewriteRule ^(ca|cs|da|el|fa|ga|he|hu|id|is|it|ja|ka|ko|lt|ms|nb-NO|nl|pl|pt-PT|ro|ru|sv-SE|th|vi|zh-TW)/(.*) /$2 [R=302,L] +RewriteRule ^(ca|cs|da|ga|hu|is|ja|ko|lt|ms|nb-NO|nl|pt-PT|ro|ru|sv-SE|th|vi|zh-TW)$ / [R=302,L] +RewriteRule ^(ca|cs|da|ga|hu|is|ja|ko|lt|ms|nb-NO|nl|pt-PT|ro|ru|sv-SE|th|vi|zh-TW)/(.*) /$2 [R=302,L] diff --git a/GetTor.lektorproject b/GetTor.lektorproject index 0582280..7d43bf9 100644 --- a/GetTor.lektorproject +++ b/GetTor.lektorproject @@ -9,37 +9,77 @@ name = عربية (ar) url_prefix = /ar/ locale = ar
+[alternatives.de] +name = Deutsch +url_prefix = /de/ +locale = de + +[alternatives.el] +name = Ελληνικά (el) +url_prefix = /el/ +locale = el + [alternatives.en] name = English (en) primary = yes url_prefix = / locale = en
-[alternatives.de] -name = Deutsch -url_prefix = /de/ -locale = de - [alternatives.es] name = Español url_prefix = /es/ locale = es
+[alternatives.fa] +name = ﻑﺍﺮﺳی (fa) +url_prefix = /fa/ +locale = fa + [alternatives.fr] name = Français url_prefix = /fr/ locale = fr
+[alternatives.he] +name = עברית (he) +url_prefix = /he/ +locale = he + +[alternatives.id] +name = Indonesia (id) +url_prefix = /id/ +locale = id + +[alternatives.it] +name = Italia (it) +url_prefix = /it/ +locale = it + +[alternatives.ka] +name = Georgian (ka) +url_prefix = /ka/ +locale = ka + [alternatives.mk] name = Macedonian (mk) url_prefix = /mk/ locale = mk
+[alternatives.pl] +name = Polski (pl) +url_prefix = /pl/ +locale = pl + [alternatives.pt-BR] name = Português (Brasil) url_prefix = /pt-BR/ locale = pt-BR
+[alternatives.sq] +name = Shqip (sq) +url_prefix = /sq/ +locale = sq + [alternatives.tr] name = Türkçe url_prefix = /tr/ diff --git a/configs/i18n.ini b/configs/i18n.ini index 66c15d7..130e206 100644 --- a/configs/i18n.ini +++ b/configs/i18n.ini @@ -1,5 +1,5 @@ content = en -translations = ar,de,es,fr,mk,pt-BR,tr,zh-CN +translations = ar,de,el,es,fa,fr,he,id,it,ka,mk,pl,pt-BR,sq,tr,zh-CN i18npath = i18n translate_paragraphwise = False url_prefix = https://gettor.torproject.org/ diff --git a/databags/alternatives.ini b/databags/alternatives.ini index d839e53..02f69ab 100644 --- a/databags/alternatives.ini +++ b/databags/alternatives.ini @@ -16,30 +16,78 @@ order = order-last url = /de/ language = Deutsch (de)
+[el] +direction = text-left +order = order-last +url = /el/ +language = Ελληνικά (el) + [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)
+[he] +direction = text-right +order = order-last +url = /he/ +language = עברית (he) + +[id] +direction = text-left +order = order-last +url = /id/ +language = bahasa Indonesia (id) + +[it] +direction = text-left +order = order-last +url = /it/ +language = Italiano (it) + +[ka] +direction = text-left +order = order-last +url = /ka/ +language = ქართული ენა (ka) + [mk] direction = text-left order = order-last language = македонски (mk) url = /mk/
+[pl] +direction = text-left +order = order-last +url = /pl/ +language = polski (pl) + [pt-BR] direction = text-left order = order-last url = /pt-BR/ language = Português Br. (pt-BR)
+[sq] +direction = text-left +order = order-last +url = /sq/ +language = Shqip (sq) + [tr] direction = text-left order = order-last
tor-commits@lists.torproject.org