commit 41119de320b258d8a83ad42e3f3a48b15cf74622 Author: emma peel emma.peel@riseup.net Date: Wed Mar 24 12:02:24 2021 +0100
reduce locales and make text translatable. small l10n fixes. part of https://gitlab.torproject.org/tpo/community/l10n/-/issues/31994 --- GetTor.lektorproject | 25 ------------------------- configs/i18n.ini | 2 +- databags/alternatives.ini | 36 ------------------------------------ models/page.ini | 2 ++ 4 files changed, 3 insertions(+), 62 deletions(-)
diff --git a/GetTor.lektorproject b/GetTor.lektorproject index 598554c..683dd78 100644 --- a/GetTor.lektorproject +++ b/GetTor.lektorproject @@ -4,22 +4,12 @@ url = https://gettor.torproject.org/ url_style = relative locale = en
-[alternatives.ar] -name = عربية (ar) -url_prefix = /ar/ -locale = ar - [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/ @@ -30,22 +20,7 @@ name = Français url_prefix = /fr/ locale = fr
-[alternatives.mk] -name = Macedonian (mk) -url_prefix = /mk/ -locale = mk - [alternatives.pt-BR] name = Português (Brasil) url_prefix = /pt-BR/ locale = pt-BR - -[alternatives.tr] -name = Turkish -url_prefix = /tr/ -locale = tr - -[alternatives.zh-CN] -name = 简体中文 (zh-CN) -url_prefix = /zh-CN/ -locale = zh-CN diff --git a/configs/i18n.ini b/configs/i18n.ini index 04a288a..92d6e00 100644 --- a/configs/i18n.ini +++ b/configs/i18n.ini @@ -1,5 +1,5 @@ content = en -translations = ar,de,es,fr,mk,pt-BR,pt-PT,tr,zh-CN +translations = es,fr,pt-BR i18npath = i18n translate_paragraphwise = False url_prefix = https://gettor.torproject.org/ diff --git a/databags/alternatives.ini b/databags/alternatives.ini index c12a2e3..37a51a7 100644 --- a/databags/alternatives.ini +++ b/databags/alternatives.ini @@ -4,24 +4,6 @@ order = order-last url = / language = English (en)
-[ar] -direction = text-right -order = order-last -url = /ar/ -language = عربية (ar) - -[de] -direction = text-left -order = order-last -url = /de/ -language = Deutsch (de) - -[en-US] -direction = text-left -order = order-last -url = /en-US/ -language = English (en-US) - [es] direction = text-left order = order-last @@ -34,26 +16,8 @@ order = order-last url = /fr/ language = Français (fr)
-[mk] -direction = text-left -order = order-last -language = македонски (mk) -url = /mk/ - [pt-BR] direction = text-left order = order-last url = /pt-BR/ language = Português Br. (pt-BR) - -[tr] -direction = text-left -order = order-last -url = /tr/ -language = Türkçe (tr) - -[zh-CN] -direction = text-left -order = order-last -url = /zh-CN/ -language = 简体中文 (zh-CN) diff --git a/models/page.ini b/models/page.ini index dcddfe8..c9e19cc 100644 --- a/models/page.ini +++ b/models/page.ini @@ -5,7 +5,9 @@ label = {{ this.title }} [fields.title] label = Title type = string +translate = true
[fields.body] label = Body type = markdown +translate = true
tor-commits@lists.torproject.org