[tor-commits] [tpo/master] make fields translatable

hiro at torproject.org hiro at torproject.org
Mon Jan 21 14:25:31 UTC 2019


commit 93d402e1d1df1845f90844fc59a5b8b331c5f7e5
Author: emma peel <emma.peel at riseup.net>
Date:   Fri Jan 11 15:00:13 2019 +0100

    make fields translatable
---
 models/page.ini   | 3 +++
 models/people.ini | 3 +++
 models/person.ini | 4 ++++
 3 files changed, 10 insertions(+)

diff --git a/models/page.ini b/models/page.ini
index f913c43..ab36981 100644
--- a/models/page.ini
+++ b/models/page.ini
@@ -5,14 +5,17 @@ label = {{ this.title }}
 [fields.title]
 label = Title
 type = string
+translate = True
 
 [fields.section]
 label = Section
 type = string
+translate = True
 
 [fields.body]
 label = Body
 type = markdown
+translate = True
 
 [fields.color]
 label = Color
diff --git a/models/people.ini b/models/people.ini
index d7f8a86..2f860be 100644
--- a/models/people.ini
+++ b/models/people.ini
@@ -6,14 +6,17 @@ hidden = yes
 [fields.title]
 label = Title
 type = string
+translate = True
 
 [fields.section]
 label = Section
 type = string
+translate = True
 
 [fields.body]
 label = Body
 type = markdown
+translate = True
 
 [fields.color]
 label = Color
diff --git a/models/person.ini b/models/person.ini
index 39b6fca..462333a 100644
--- a/models/person.ini
+++ b/models/person.ini
@@ -15,10 +15,12 @@ addon_label = @
 [fields.title]
 label = Title
 type = string
+translate = True
 
 [fields.role]
 label = Role
 type = string
+translate = True
 
 [fields.name]
 label = Name
@@ -27,6 +29,7 @@ type = string
 [fields.description]
 label = Description
 type = markdown
+translate = True
 
 [fields.image]
 label = Image
@@ -35,3 +38,4 @@ type = string
 [fields.pronoun]
 label = Pronoun
 type = string
+translate = True





More information about the tor-commits mailing list