Translate heart emoji for speaker

main
Bob Mottram 2021-03-08 22:24:29 +00:00
parent 72be5162cd
commit 6c374efdb5
17 changed files with 35 additions and 16 deletions

View File

@ -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('<p>', '').replace('</p>', ' ')
# 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)

View File

@ -396,5 +396,6 @@
"Filtering and Blocking": "التصفية والحظر",
"Role Assignment": "تعيين الدور",
"Contact Details": "بيانات المتصل",
"Background Images": "صور الخلفية"
"Background Images": "صور الخلفية",
"heart": "قلب"
}

View File

@ -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"
}

View File

@ -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"
}

View File

@ -396,5 +396,6 @@
"Filtering and Blocking": "Filtern und Blockieren",
"Role Assignment": "Rollenzuweisung",
"Background Images": "Hintergrundbilder",
"Contact Details": "Kontaktdetails"
"Contact Details": "Kontaktdetails",
"heart": "herz"
}

View File

@ -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"
}

View File

@ -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"
}

View File

@ -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"
}

View File

@ -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í"
}

View File

@ -396,5 +396,6 @@
"Filtering and Blocking": "छानना और अवरुद्ध करना",
"Role Assignment": "भूमिका असाइनमेंट",
"Background Images": "पृष्ठभूमि छवियों",
"Contact Details": "सम्पर्क करने का विवरण"
"Contact Details": "सम्पर्क करने का विवरण",
"heart": "दिल"
}

View File

@ -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"
}

View File

@ -396,5 +396,6 @@
"Filtering and Blocking": "フィルタリングとブロッキング",
"Role Assignment": "役割の割り当て",
"Background Images": "背景画像",
"Contact Details": "連絡先の詳細"
"Contact Details": "連絡先の詳細",
"heart": "ハート"
}

View File

@ -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"
}

View File

@ -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"
}

View File

@ -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"
}

View File

@ -396,5 +396,6 @@
"Filtering and Blocking": "Фильтрация и блокировка",
"Role Assignment": "Назначение ролей",
"Background Images": "Фоновые изображения",
"Contact Details": "Контактная информация"
"Contact Details": "Контактная информация",
"heart": "сердце"
}

View File

@ -396,5 +396,6 @@
"Filtering and Blocking": "过滤和阻止",
"Role Assignment": "角色分配",
"Background Images": "背景图片",
"Contact Details": "联系方式"
"Contact Details": "联系方式",
"heart": "心"
}