commit 73b3859b657d5826a3385371121273a4f8fac2f9 Author: emma peel emma.peel@riseup.net Date: Fri Aug 20 14:52:43 2021 +0200
add Catalan and Hungarian translations --- .htaccess | 4 ++-- GetTor.lektorproject | 10 ++++++++++ configs/i18n.ini | 2 +- databags/alternatives.ini | 12 ++++++++++++ 4 files changed, 25 insertions(+), 3 deletions(-)
diff --git a/.htaccess b/.htaccess index 3db5155..47d1d68 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 ^(ar|ca|cs|da|de|el|fa|ga|he|hu|id|is|it|ja|ka|ko|lt|mk|ms|nb-NO|nl|pl|pt-PT|ro|ru|sv-SE|th|vi|zh-CN|zh-TW)$ / [R=302,L] -RewriteRule ^(ar|ca|cs|da|de|el|fa|ga|he|hu|id|is|it|ja|ka|ko|lt|mk|ms|nb-NO|nl|pl|pt-PT|ro|ru|sv-SE|th|vi|zh-CN|zh-TW)/(.*) /$2 [R=302,L] +RewriteRule ^(ar|cs|da|de|el|fa|ga|he|id|is|it|ja|ka|ko|lt|mk|ms|nb-NO|nl|pl|pt-PT|ro|ru|sv-SE|th|vi|zh-CN|zh-TW)$ / [R=302,L] +RewriteRule ^(ar|cs|da|de|el|fa|ga|he|id|is|it|ja|ka|ko|lt|mk|ms|nb-NO|nl|pl|pt-PT|ro|ru|sv-SE|th|vi|zh-CN|zh-TW)/(.*) /$2 [R=302,L] diff --git a/GetTor.lektorproject b/GetTor.lektorproject index 287a687..5f1a816 100644 --- a/GetTor.lektorproject +++ b/GetTor.lektorproject @@ -4,6 +4,11 @@ url = https://gettor.torproject.org/ url_style = relative locale = en
+[alternatives.ca] +name = Català (ca) +url_prefix = /ca/ +locale = ca + [alternatives.en] name = English (en) primary = yes @@ -20,6 +25,11 @@ name = Français url_prefix = /fr/ locale = fr
+[alternatives.hu] +name = Magyar nyelv (hu) +url_prefix = /hu/ +locale = hu + [alternatives.pt-BR] name = Português (Brasil) url_prefix = /pt-BR/ diff --git a/configs/i18n.ini b/configs/i18n.ini index 7ff03d0..9a4b192 100644 --- a/configs/i18n.ini +++ b/configs/i18n.ini @@ -1,5 +1,5 @@ content = en -translations = es,fr,pt-BR,tr +translations = ca,es,fr,hu,pt-BR,tr i18npath = i18n translate_paragraphwise = False url_prefix = https://gettor.torproject.org/ diff --git a/databags/alternatives.ini b/databags/alternatives.ini index 71abfb1..a9e164e 100644 --- a/databags/alternatives.ini +++ b/databags/alternatives.ini @@ -1,3 +1,9 @@ +[ca] +direction = text-left +order = order-last +url = /ca/ +language = Català (ca) + [en] direction = text-left order = order-last @@ -16,6 +22,12 @@ order = order-last url = /fr/ language = Français (fr)
+[hu] +direction = text-left +order = order-last +url = /hu/ +language = Magyar nyelv (hu) + [pt-BR] direction = text-left order = order-last
tor-commits@lists.torproject.org