commit 57c54d79f23c67870e8bf9b0e2144b8c84c7813d Author: emma peel emma.peel@riseup.net Date: Thu Aug 5 18:44:53 2021 +0200
add Magyar(Hungarian) translation. will-fix: https://gitlab.torproject.org/tpo/web/manual/-/issues/103 --- .htaccess | 4 ++-- configs/i18n.ini | 2 +- databags/alternatives.ini | 6 ++++++ manual.lektorproject | 5 +++++ 4 files changed, 14 insertions(+), 3 deletions(-)
diff --git a/.htaccess b/.htaccess index c13c656..8fc680d 100644 --- a/.htaccess +++ b/.htaccess @@ -19,8 +19,8 @@ RewriteRule ^(es-ES|es-MX|es-CO|es-AR)/(.*) /es/$2 [R=302,L] # Rewrites for languages that have a Tor Browser release # but don't have a translated manual # this languages are the priority for translation of the Tor Browser User Manual! -RewriteRule ^(cs|da|fa|hu|ja|ko|ms|my|nb-NO|nl|pl|sv-SE|vi|zh-TW)$ / [R=302,L] -RewriteRule ^(cs|da|fa|hu|ja|ko|ms|my|nb-NO|nl|pl|sv-SE|vi|zh-TW)/(.*) /$2 [R=302,L] +RewriteRule ^(cs|da|fa|ja|ko|ms|my|nb-NO|nl|pl|sv-SE|vi|zh-TW)$ / [R=302,L] +RewriteRule ^(cs|da|fa|ja|ko|ms|my|nb-NO|nl|pl|sv-SE|vi|zh-TW)/(.*) /$2 [R=302,L]
# we have only one translation for this locales RewriteRule ^bn-(BD|IN)$ /bn [R=302,L] diff --git a/configs/i18n.ini b/configs/i18n.ini index e32d8b7..4741dc9 100644 --- a/configs/i18n.ini +++ b/configs/i18n.ini @@ -1,5 +1,5 @@ content = en -translations = ar,bn,ca,de,el,es,fr,ga,he,id,is,it,ka,lt,mk,pt-BR,pt-PT,ro,ru,th,tr,zh-CN +translations = ar,bn,ca,de,el,es,fr,ga,he,hu,id,is,it,ka,lt,mk,pt-BR,pt-PT,ro,ru,th,tr,zh-CN i18npath = i18n url_prefix = https://tb-manual.torproject.org/ translate_paragraphwise = False diff --git a/databags/alternatives.ini b/databags/alternatives.ini index b87c383..993f68c 100644 --- a/databags/alternatives.ini +++ b/databags/alternatives.ini @@ -58,6 +58,12 @@ order = order-last url = /he/ language = עברית (he)
+[hu] +direction = text-left +order = order-last +url = /hu/ +language = Magyar nyelv (hu) + [id] direction = text-left order = order-last diff --git a/manual.lektorproject b/manual.lektorproject index 35dd586..155d5d6 100644 --- a/manual.lektorproject +++ b/manual.lektorproject @@ -55,6 +55,11 @@ name = עברית (he) url_prefix = /he/ locale = he
+[alternatives.hu] +name = Magyar nyelv (hu) +url_prefix = /hu/ +locale = hu + [alternatives.id] name = Indonesia (id) url_prefix = /id/
tor-commits@lists.torproject.org