[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



commit 93d402e1d1df1845f90844fc59a5b8b331c5f7e5
Author: emma peel <emma.peel@xxxxxxxxxx>
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



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits