main
Bob Mottram 2021-07-20 20:55:48 +01:00
parent 7809411a91
commit 2f50edf489
1 changed files with 2 additions and 2 deletions

View File

@ -271,9 +271,9 @@ def autoTranslatePost(baseDir: str, postJsonObject: {},
_libretranslate(libretranslateUrl, content,
lang, systemLanguage,
libretranslateApiKey)
if translatedText:
if removeHtml(translatedText) == removeHtml(content):
return content
if translatedText:
translatedText = \
'<p>' + translate['Translated'].upper() + '</p>' + \
translatedText