[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [gettor-web/master] reduce locales and make text translatable. small l10n fixes. part of https://gitlab.torproject.org/tpo/community/l10n/-/issues/31994
commit 41119de320b258d8a83ad42e3f3a48b15cf74622
Author: emma peel <emma.peel@xxxxxxxxxx>
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 mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits