speaker says 'mentioning name' rather than @name

merge-requests/21/head
Bob Mottram 2021-03-02 13:54:22 +00:00
parent 426daa6642
commit 5625487e58
16 changed files with 35 additions and 15 deletions

View File

@ -90,6 +90,11 @@ def speakerReplaceLinks(sayText: str, translate: {},
wordsList = text.split(' ') wordsList = text.split(' ')
linkedStr = translate['Linked'] linkedStr = translate['Linked']
for word in wordsList: for word in wordsList:
# replace mentions
if word.startswith('@'):
replacements[word] = \
translate['mentioning'] + ' ' + word[1:] + ', '
domain = None domain = None
domainFull = None domainFull = None
if 'https://' in word: if 'https://' in word:

View File

@ -377,5 +377,6 @@
"Linked": "رابط موقع", "Linked": "رابط موقع",
"hashtag": "رابطة هاشتاق", "hashtag": "رابطة هاشتاق",
"smile": "ابتسامة", "smile": "ابتسامة",
"wink": "غمزة" "wink": "غمزة",
"mentioning": "ذكر"
} }

View File

@ -377,5 +377,6 @@
"Linked": "enllaç web", "Linked": "enllaç web",
"hashtag": "etiqueta", "hashtag": "etiqueta",
"smile": "somriure", "smile": "somriure",
"wink": "fer l'ullet" "wink": "fer l'ullet",
"mentioning": "esmentant"
} }

View File

@ -377,5 +377,6 @@
"Linked": "Dolen we", "Linked": "Dolen we",
"hashtag": "hash-nod", "hashtag": "hash-nod",
"smile": "gwenu", "smile": "gwenu",
"wink": "winc" "wink": "winc",
"mentioning": "sôn"
} }

View File

@ -377,5 +377,6 @@
"Linked": "Weblink", "Linked": "Weblink",
"hashtag": "hash-tag", "hashtag": "hash-tag",
"smile": "Lächeln", "smile": "Lächeln",
"wink": "zwinkern" "wink": "zwinkern",
"mentioning": "Erwähnen"
} }

View File

@ -377,5 +377,6 @@
"Linked": "Web linked", "Linked": "Web linked",
"hashtag": "hash-tag", "hashtag": "hash-tag",
"smile": "smile", "smile": "smile",
"wink": "wink" "wink": "wink",
"mentioning": "mentioning"
} }

View File

@ -377,5 +377,6 @@
"Linked": "enlace web", "Linked": "enlace web",
"hashtag": "hash-tag", "hashtag": "hash-tag",
"smile": "sonreír", "smile": "sonreír",
"wink": "guiño" "wink": "guiño",
"mentioning": "mencionar"
} }

View File

@ -377,5 +377,6 @@
"Linked": "lien Web", "Linked": "lien Web",
"hashtag": "hash-tag", "hashtag": "hash-tag",
"smile": "le sourire", "smile": "le sourire",
"wink": "clin d'œil" "wink": "clin d'œil",
"mentioning": "mentionnant"
} }

View File

@ -377,5 +377,6 @@
"Linked": "Nasc gréasáin", "Linked": "Nasc gréasáin",
"hashtag": "hash-tag", "hashtag": "hash-tag",
"smile": "aoibh gháire", "smile": "aoibh gháire",
"wink": "wink" "wink": "wink",
"mentioning": "ag lua"
} }

View File

@ -377,5 +377,6 @@
"Linked": "वेब लिंक", "Linked": "वेब लिंक",
"hashtag": "हैशटैग", "hashtag": "हैशटैग",
"smile": "मुस्कुराओ", "smile": "मुस्कुराओ",
"wink": "आँख मारना" "wink": "आँख मारना",
"mentioning": "उल्लेख"
} }

View File

@ -377,5 +377,6 @@
"Linked": "collegamento web", "Linked": "collegamento web",
"hashtag": "hash-tag", "hashtag": "hash-tag",
"smile": "Sorridi", "smile": "Sorridi",
"wink": "occhiolino" "wink": "occhiolino",
"mentioning": "menzionando"
} }

View File

@ -377,5 +377,6 @@
"Linked": "ウェブリンク", "Linked": "ウェブリンク",
"hashtag": "ハッシュタグ", "hashtag": "ハッシュタグ",
"smile": "スマイル", "smile": "スマイル",
"wink": "ウィンク" "wink": "ウィンク",
"mentioning": "言及する"
} }

View File

@ -373,5 +373,6 @@
"Linked": "Web link", "Linked": "Web link",
"hashtag": "hash-tag", "hashtag": "hash-tag",
"smile": "smile", "smile": "smile",
"wink": "wink" "wink": "wink",
"mentioning": "mentioning"
} }

View File

@ -377,5 +377,6 @@
"Linked": "link da web", "Linked": "link da web",
"hashtag": "hash-tag", "hashtag": "hash-tag",
"smile": "sorrir", "smile": "sorrir",
"wink": "piscar" "wink": "piscar",
"mentioning": "mencionando"
} }

View File

@ -377,5 +377,6 @@
"Linked": "интернет-ссылка", "Linked": "интернет-ссылка",
"hashtag": "хэштег", "hashtag": "хэштег",
"smile": "улыбка", "smile": "улыбка",
"wink": "подмигивание" "wink": "подмигивание",
"mentioning": "упоминание"
} }

View File

@ -377,5 +377,6 @@
"Linked": "网页链接", "Linked": "网页链接",
"hashtag": "井号", "hashtag": "井号",
"smile": "微笑", "smile": "微笑",
"wink": "眨眼" "wink": "眨眼",
"mentioning": "提及"
} }