From 6c374efdb5604da773e89e755af77d89721614ad Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 8 Mar 2021 22:24:29 +0000 Subject: [PATCH] Translate heart emoji for speaker --- speaker.py | 3 +++ translations/ar.json | 3 ++- translations/ca.json | 3 ++- translations/cy.json | 3 ++- translations/de.json | 3 ++- translations/en.json | 3 ++- translations/es.json | 3 ++- translations/fr.json | 3 ++- translations/ga.json | 3 ++- translations/hi.json | 3 ++- translations/it.json | 3 ++- translations/ja.json | 3 ++- translations/ku.json | 3 ++- translations/oc.json | 3 ++- translations/pt.json | 3 ++- translations/ru.json | 3 ++- translations/zh.json | 3 ++- 17 files changed, 35 insertions(+), 16 deletions(-) diff --git a/speaker.py b/speaker.py index 06360e5ce..2b6ab90cc 100644 --- a/speaker.py +++ b/speaker.py @@ -380,6 +380,9 @@ def _postToSpeakerJson(baseDir: str, nickname: str, domain: str, content = urllib.parse.unquote_plus(postJsonObject['object']['content']) content = html.unescape(content) content = content.replace('

', '').replace('

', ' ') + # replace some emoji before removing html + if ' <3' in content: + content = content.replace(' <3', ' ' + translate['heart']) content = removeHtml(htmlReplaceQuoteMarks(content)) content = speakerReplaceLinks(content, translate, detectedLinks) content = _speakerPronounce(baseDir, content, translate) diff --git a/translations/ar.json b/translations/ar.json index 872bb6f69..1d24ec0a6 100644 --- a/translations/ar.json +++ b/translations/ar.json @@ -396,5 +396,6 @@ "Filtering and Blocking": "التصفية والحظر", "Role Assignment": "تعيين الدور", "Contact Details": "بيانات المتصل", - "Background Images": "صور الخلفية" + "Background Images": "صور الخلفية", + "heart": "قلب" } diff --git a/translations/ca.json b/translations/ca.json index 05fd736f3..85b3ac232 100644 --- a/translations/ca.json +++ b/translations/ca.json @@ -396,5 +396,6 @@ "Filtering and Blocking": "Filtratge i bloqueig", "Role Assignment": "Assignació de funcions", "Contact Details": "Detalls de contacte", - "Background Images": "Imatges de fons" + "Background Images": "Imatges de fons", + "heart": "cor" } diff --git a/translations/cy.json b/translations/cy.json index 43bc66b67..23078b289 100644 --- a/translations/cy.json +++ b/translations/cy.json @@ -396,5 +396,6 @@ "Filtering and Blocking": "Hidlo a Blocio", "Role Assignment": "Aseiniad Rôl", "Background Images": "Delweddau Cefndir", - "Contact Details": "Manylion cyswllt" + "Contact Details": "Manylion cyswllt", + "heart": "galon" } diff --git a/translations/de.json b/translations/de.json index a7e2e6d87..7e159cc44 100644 --- a/translations/de.json +++ b/translations/de.json @@ -396,5 +396,6 @@ "Filtering and Blocking": "Filtern und Blockieren", "Role Assignment": "Rollenzuweisung", "Background Images": "Hintergrundbilder", - "Contact Details": "Kontaktdetails" + "Contact Details": "Kontaktdetails", + "heart": "herz" } diff --git a/translations/en.json b/translations/en.json index 1f5f1a1de..7a683ec94 100644 --- a/translations/en.json +++ b/translations/en.json @@ -396,5 +396,6 @@ "Filtering and Blocking": "Filtering and Blocking", "Role Assignment": "Role Assignment", "Contact Details": "Contact Details", - "Background Images": "Background Images" + "Background Images": "Background Images", + "heart": "heart" } diff --git a/translations/es.json b/translations/es.json index 9414179e0..0709b730e 100644 --- a/translations/es.json +++ b/translations/es.json @@ -396,5 +396,6 @@ "Filtering and Blocking": "Filtrado y bloqueo", "Role Assignment": "Asignación de roles", "Background Images": "Imágenes de fondo", - "Contact Details": "Detalles de contacto" + "Contact Details": "Detalles de contacto", + "heart": "corazón" } diff --git a/translations/fr.json b/translations/fr.json index 3aba51267..a41db9837 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -396,5 +396,6 @@ "Filtering and Blocking": "Filtrage et blocage", "Role Assignment": "Attribution de rôle", "Background Images": "Images d'arrière-plan", - "Contact Details": "Détails du contact" + "Contact Details": "Détails du contact", + "heart": "cœur" } diff --git a/translations/ga.json b/translations/ga.json index cb98b3e88..eb9c3a270 100644 --- a/translations/ga.json +++ b/translations/ga.json @@ -396,5 +396,6 @@ "Filtering and Blocking": "Scagadh agus Blocáil", "Role Assignment": "Sannadh Róil", "Background Images": "Íomhánna Cúlra", - "Contact Details": "Sonraí Teagmhála" + "Contact Details": "Sonraí Teagmhála", + "heart": "chroí" } diff --git a/translations/hi.json b/translations/hi.json index d890c16ba..85415821a 100644 --- a/translations/hi.json +++ b/translations/hi.json @@ -396,5 +396,6 @@ "Filtering and Blocking": "छानना और अवरुद्ध करना", "Role Assignment": "भूमिका असाइनमेंट", "Background Images": "पृष्ठभूमि छवियों", - "Contact Details": "सम्पर्क करने का विवरण" + "Contact Details": "सम्पर्क करने का विवरण", + "heart": "दिल" } diff --git a/translations/it.json b/translations/it.json index be3e43443..07d2527b2 100644 --- a/translations/it.json +++ b/translations/it.json @@ -396,5 +396,6 @@ "Filtering and Blocking": "Filtraggio e blocco", "Role Assignment": "Assegnazione del ruolo", "Background Images": "Immagini di sfondo", - "Contact Details": "Dettagli del contatto" + "Contact Details": "Dettagli del contatto", + "heart": "cuore" } diff --git a/translations/ja.json b/translations/ja.json index d5ef7d006..a84dbd084 100644 --- a/translations/ja.json +++ b/translations/ja.json @@ -396,5 +396,6 @@ "Filtering and Blocking": "フィルタリングとブロッキング", "Role Assignment": "役割の割り当て", "Background Images": "背景画像", - "Contact Details": "連絡先の詳細" + "Contact Details": "連絡先の詳細", + "heart": "ハート" } diff --git a/translations/ku.json b/translations/ku.json index 64633d5d2..5809b110f 100644 --- a/translations/ku.json +++ b/translations/ku.json @@ -396,5 +396,6 @@ "Filtering and Blocking": "Fîlterkirin û Astengkirin", "Role Assignment": "Erk Rol", "Contact Details": "Agahdariyên Têkiliyê", - "Background Images": "Wêneyên Paşê" + "Background Images": "Wêneyên Paşê", + "heart": "dil" } diff --git a/translations/oc.json b/translations/oc.json index f8495c139..454434982 100644 --- a/translations/oc.json +++ b/translations/oc.json @@ -392,5 +392,6 @@ "Filtering and Blocking": "Filtering and Blocking", "Role Assignment": "Role Assignment", "Background Images": "Background Images", - "Contact Details": "Contact Details" + "Contact Details": "Contact Details", + "heart": "heart" } diff --git a/translations/pt.json b/translations/pt.json index 54ffea0d8..a39029135 100644 --- a/translations/pt.json +++ b/translations/pt.json @@ -396,5 +396,6 @@ "Filtering and Blocking": "Filtragem e Bloqueio", "Role Assignment": "Atribuição de Função", "Background Images": "Imagens de fundo", - "Contact Details": "Detalhes do contato" + "Contact Details": "Detalhes do contato", + "heart": "coração" } diff --git a/translations/ru.json b/translations/ru.json index f171d543c..825fdcd46 100644 --- a/translations/ru.json +++ b/translations/ru.json @@ -396,5 +396,6 @@ "Filtering and Blocking": "Фильтрация и блокировка", "Role Assignment": "Назначение ролей", "Background Images": "Фоновые изображения", - "Contact Details": "Контактная информация" + "Contact Details": "Контактная информация", + "heart": "сердце" } diff --git a/translations/zh.json b/translations/zh.json index 493e6e184..443592235 100644 --- a/translations/zh.json +++ b/translations/zh.json @@ -396,5 +396,6 @@ "Filtering and Blocking": "过滤和阻止", "Role Assignment": "角色分配", "Background Images": "背景图片", - "Contact Details": "联系方式" + "Contact Details": "联系方式", + "heart": "心" }