mirror of https://gitlab.com/bashrc2/epicyon
Sequence
parent
7809411a91
commit
2f50edf489
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue