diff --git a/speaker.py b/speaker.py index 6d3a8f700..0fbd1a748 100644 --- a/speaker.py +++ b/speaker.py @@ -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: diff --git a/translations/ar.json b/translations/ar.json index 437ae04f4..487dce77f 100644 --- a/translations/ar.json +++ b/translations/ar.json @@ -377,5 +377,6 @@ "Linked": "رابط موقع", "hashtag": "رابطة هاشتاق", "smile": "ابتسامة", - "wink": "غمزة" + "wink": "غمزة", + "mentioning": "ذكر" } diff --git a/translations/ca.json b/translations/ca.json index b89e4ae86..13b0f62ae 100644 --- a/translations/ca.json +++ b/translations/ca.json @@ -377,5 +377,6 @@ "Linked": "enllaç web", "hashtag": "etiqueta", "smile": "somriure", - "wink": "fer l'ullet" + "wink": "fer l'ullet", + "mentioning": "esmentant" } diff --git a/translations/cy.json b/translations/cy.json index c9b3c9948..64ee24374 100644 --- a/translations/cy.json +++ b/translations/cy.json @@ -377,5 +377,6 @@ "Linked": "Dolen we", "hashtag": "hash-nod", "smile": "gwenu", - "wink": "winc" + "wink": "winc", + "mentioning": "sôn" } diff --git a/translations/de.json b/translations/de.json index b82173280..ab44c194a 100644 --- a/translations/de.json +++ b/translations/de.json @@ -377,5 +377,6 @@ "Linked": "Weblink", "hashtag": "hash-tag", "smile": "Lächeln", - "wink": "zwinkern" + "wink": "zwinkern", + "mentioning": "Erwähnen" } diff --git a/translations/en.json b/translations/en.json index 432484090..837292aac 100644 --- a/translations/en.json +++ b/translations/en.json @@ -377,5 +377,6 @@ "Linked": "Web linked", "hashtag": "hash-tag", "smile": "smile", - "wink": "wink" + "wink": "wink", + "mentioning": "mentioning" } diff --git a/translations/es.json b/translations/es.json index 5bb19751d..f8115080c 100644 --- a/translations/es.json +++ b/translations/es.json @@ -377,5 +377,6 @@ "Linked": "enlace web", "hashtag": "hash-tag", "smile": "sonreír", - "wink": "guiño" + "wink": "guiño", + "mentioning": "mencionar" } diff --git a/translations/fr.json b/translations/fr.json index c941a8501..02073739a 100644 --- a/translations/fr.json +++ b/translations/fr.json @@ -377,5 +377,6 @@ "Linked": "lien Web", "hashtag": "hash-tag", "smile": "le sourire", - "wink": "clin d'œil" + "wink": "clin d'œil", + "mentioning": "mentionnant" } diff --git a/translations/ga.json b/translations/ga.json index 532f88b43..fa339a1ae 100644 --- a/translations/ga.json +++ b/translations/ga.json @@ -377,5 +377,6 @@ "Linked": "Nasc gréasáin", "hashtag": "hash-tag", "smile": "aoibh gháire", - "wink": "wink" + "wink": "wink", + "mentioning": "ag lua" } diff --git a/translations/hi.json b/translations/hi.json index 849a6dd1a..ed1b44682 100644 --- a/translations/hi.json +++ b/translations/hi.json @@ -377,5 +377,6 @@ "Linked": "वेब लिंक", "hashtag": "हैशटैग", "smile": "मुस्कुराओ", - "wink": "आँख मारना" + "wink": "आँख मारना", + "mentioning": "उल्लेख" } diff --git a/translations/it.json b/translations/it.json index eae56d560..df2359c8d 100644 --- a/translations/it.json +++ b/translations/it.json @@ -377,5 +377,6 @@ "Linked": "collegamento web", "hashtag": "hash-tag", "smile": "Sorridi", - "wink": "occhiolino" + "wink": "occhiolino", + "mentioning": "menzionando" } diff --git a/translations/ja.json b/translations/ja.json index 39d70d3d2..b36d1dce9 100644 --- a/translations/ja.json +++ b/translations/ja.json @@ -377,5 +377,6 @@ "Linked": "ウェブリンク", "hashtag": "ハッシュタグ", "smile": "スマイル", - "wink": "ウィンク" + "wink": "ウィンク", + "mentioning": "言及する" } diff --git a/translations/oc.json b/translations/oc.json index beaced8cf..b286d175a 100644 --- a/translations/oc.json +++ b/translations/oc.json @@ -373,5 +373,6 @@ "Linked": "Web link", "hashtag": "hash-tag", "smile": "smile", - "wink": "wink" + "wink": "wink", + "mentioning": "mentioning" } diff --git a/translations/pt.json b/translations/pt.json index ee8516a08..c3e805dc9 100644 --- a/translations/pt.json +++ b/translations/pt.json @@ -377,5 +377,6 @@ "Linked": "link da web", "hashtag": "hash-tag", "smile": "sorrir", - "wink": "piscar" + "wink": "piscar", + "mentioning": "mencionando" } diff --git a/translations/ru.json b/translations/ru.json index 305595f78..f7e05697c 100644 --- a/translations/ru.json +++ b/translations/ru.json @@ -377,5 +377,6 @@ "Linked": "интернет-ссылка", "hashtag": "хэштег", "smile": "улыбка", - "wink": "подмигивание" + "wink": "подмигивание", + "mentioning": "упоминание" } diff --git a/translations/zh.json b/translations/zh.json index 703a28232..b6339aec7 100644 --- a/translations/zh.json +++ b/translations/zh.json @@ -377,5 +377,6 @@ "Linked": "网页链接", "hashtag": "井号", "smile": "微笑", - "wink": "眨眼" + "wink": "眨眼", + "mentioning": "提及" }