From ce75a26a3c340b31d0c3432b6c0861221a8cf2b7 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Wed, 3 Mar 2021 14:19:07 +0000 Subject: [PATCH] More gender words --- translations/ar.json | 4 +++- translations/ca.json | 4 +++- translations/cy.json | 4 +++- translations/de.json | 4 +++- translations/en.json | 4 +++- translations/es.json | 4 +++- translations/fr.json | 4 +++- translations/ga.json | 4 +++- translations/hi.json | 4 +++- translations/it.json | 4 +++- translations/ja.json | 4 +++- translations/oc.json | 4 +++- translations/pt.json | 4 +++- translations/ru.json | 4 +++- translations/zh.json | 4 +++- utils.py | 6 ++++-- 16 files changed, 49 insertions(+), 17 deletions(-) diff --git a/translations/ar.json b/translations/ar.json index 0027e6346..9464a5fd8 100644 --- a/translations/ar.json +++ b/translations/ar.json @@ -384,5 +384,7 @@ "laughing": "يضحك", "gender": "جنس تذكير أو تأنيث", "He/Him": "هو", - "She/Her": "هي" + "She/Her": "هي", + "girl": "فتاة", + "boy": "صبي" } diff --git a/translations/ca.json b/translations/ca.json index 5ad1772f0..270c58bf3 100644 --- a/translations/ca.json +++ b/translations/ca.json @@ -384,5 +384,7 @@ "laughing": "rient", "gender": "gènere", "He/Him": "Ell", - "She/Her": "Ella" + "She/Her": "Ella", + "girl": "noia", + "boy": "noi" } diff --git a/translations/cy.json b/translations/cy.json index c8c2dfff5..50eb775b7 100644 --- a/translations/cy.json +++ b/translations/cy.json @@ -384,5 +384,7 @@ "laughing": "chwerthin", "gender": "rhyw", "He/Him": "Ef", - "She/Her": "Hi/Ei" + "She/Her": "Hi/Ei", + "girl": "merch", + "boy": "bachgen" } diff --git a/translations/de.json b/translations/de.json index aef2f428a..daac52394 100644 --- a/translations/de.json +++ b/translations/de.json @@ -384,5 +384,7 @@ "laughing": "Lachen", "gender": "geschlecht", "He/Him": "Er/ihm", - "She/Her": "Sie" + "She/Her": "Sie", + "girl": "mädchen", + "boy": "junge" } diff --git a/translations/en.json b/translations/en.json index eb8743f40..f8bd99cc8 100644 --- a/translations/en.json +++ b/translations/en.json @@ -384,5 +384,7 @@ "laughing": "laughing", "gender": "gender", "He/Him": "He/Him", - "She/Her": "She/Her" + "She/Her": "She/Her", + "girl": "girl", + "boy": "boy" } diff --git a/translations/es.json b/translations/es.json index 10c2729ea..acf4db559 100644 --- a/translations/es.json +++ b/translations/es.json @@ -384,5 +384,7 @@ "laughing": "risa", "gender": "género", "He/Him": "El", - "She/Her": "Ella" + "She/Her": "Ella", + "girl": "muchacha", + "boy": "niño" } diff --git a/translations/fr.json b/translations/fr.json index f959f284e..e59a9a2e6 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -384,5 +384,7 @@ "laughing": "en riant", "gender": "le genre", "He/Him": "Il/Lui", - "She/Her": "Elle" + "She/Her": "Elle", + "girl": "fille", + "boy": "garçon" } diff --git a/translations/ga.json b/translations/ga.json index 315448826..2552a172b 100644 --- a/translations/ga.json +++ b/translations/ga.json @@ -384,5 +384,7 @@ "laughing": "ag gáire", "gender": "inscne", "He/Him": "Sé/Eisean", - "She/Her": "Sí" + "She/Her": "Sí", + "girl": "cailín", + "boy": "buachaill" } diff --git a/translations/hi.json b/translations/hi.json index f7ed05f0d..59ed7f0bf 100644 --- a/translations/hi.json +++ b/translations/hi.json @@ -384,5 +384,7 @@ "laughing": "हस रहा", "gender": "लिंग", "He/Him": "वह/उसे", - "She/Her": "वह/उसकी" + "She/Her": "वह/उसकी", + "girl": "लड़की", + "boy": "लड़का" } diff --git a/translations/it.json b/translations/it.json index 52bb3e58f..72f3a93f1 100644 --- a/translations/it.json +++ b/translations/it.json @@ -384,5 +384,7 @@ "laughing": "ridendo", "gender": "genere", "He/Him": "Lui", - "She/Her": "Lei" + "She/Her": "Lei", + "girl": "ragazza", + "boy": "ragazzo" } diff --git a/translations/ja.json b/translations/ja.json index 967673668..069ba9093 100644 --- a/translations/ja.json +++ b/translations/ja.json @@ -384,5 +384,7 @@ "laughing": "笑い", "gender": "性別", "He/Him": "彼", - "She/Her": "彼女" + "She/Her": "彼女", + "girl": "女の子", + "boy": "男の子" } diff --git a/translations/oc.json b/translations/oc.json index 3d008db27..4f5f577a1 100644 --- a/translations/oc.json +++ b/translations/oc.json @@ -380,5 +380,7 @@ "laughing": "laughing", "gender": "gender", "He/Him": "He/Him", - "She/Her": "She/Her" + "She/Her": "She/Her", + "girl": "girl", + "boy": "boy" } diff --git a/translations/pt.json b/translations/pt.json index e62387eec..516d3b6ca 100644 --- a/translations/pt.json +++ b/translations/pt.json @@ -384,5 +384,7 @@ "laughing": "rindo", "gender": "gênero", "He/Him": "Ele", - "She/Her": "Ela" + "She/Her": "Ela", + "girl": "garota", + "boy": "garoto" } diff --git a/translations/ru.json b/translations/ru.json index 806da91da..c7c82a6d4 100644 --- a/translations/ru.json +++ b/translations/ru.json @@ -384,5 +384,7 @@ "laughing": "смеющийся", "gender": "Пол", "He/Him": "Он/Его", - "She/Her": "Она/Ее" + "She/Her": "Она/Ее", + "girl": "девочка", + "boy": "мальчик" } diff --git a/translations/zh.json b/translations/zh.json index 60cf92e5c..2cf1aa4ed 100644 --- a/translations/zh.json +++ b/translations/zh.json @@ -384,5 +384,7 @@ "laughing": "笑", "gender": "性别", "He/Him": "他", - "She/Her": "她" + "She/Her": "她", + "girl": "女孩", + "boy": "男生" } diff --git a/utils.py b/utils.py index 9ccef742a..00b77fab4 100644 --- a/utils.py +++ b/utils.py @@ -723,9 +723,11 @@ def getGenderFromBio(baseDir: str, actor: str, personCache: {}, gender = 'They/Them' bioFoundOrig = bioFound bioFound = bioFound.lower() - if translate['He/Him'] in bioFound: + if translate['He/Him'] in bioFound or \ + translate['boy'] in bioFound: gender = 'He/Him' - elif translate['She/Her'] in bioFound: + elif (translate['She/Her'] in bioFound or + translate['girl'] in bioFound): gender = 'She/Her' elif 'him' in bioFound or 'male' in bioFound: gender = 'He/Him'