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(' ')
linkedStr = translate['Linked']
for word in wordsList:
# replace mentions
if word.startswith('@'):
replacements[word] = \
translate['mentioning'] + ' ' + word[1:] + ', '
domain = None
domainFull = None
if 'https://' in word:

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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