mirror of https://gitlab.com/bashrc2/epicyon
Handling of understood languages prior to automatic translation
parent
bb3de9e173
commit
882774bc50
|
@ -24,6 +24,7 @@ from posts import downloadAnnounce
|
|||
from posts import populateRepliesJson
|
||||
from utils import getActorLanguagesList
|
||||
from utils import getBaseContentFromPost
|
||||
from utils import getContentFromPost
|
||||
from utils import hasObjectDict
|
||||
from utils import updateAnnounceCollection
|
||||
from utils import isPGPEncrypted
|
||||
|
@ -1600,7 +1601,7 @@ def individualPostAsHtml(allowDownloads: bool,
|
|||
languagesUnderstood = []
|
||||
if actorJson:
|
||||
languagesUnderstood = getActorLanguagesList(actorJson)
|
||||
contentStr = getBaseContentFromPost(postJsonObject, systemLanguage,
|
||||
contentStr = getContentFromPost(postJsonObject, systemLanguage,
|
||||
languagesUnderstood)
|
||||
if not contentStr:
|
||||
contentStr = \
|
||||
|
|
Loading…
Reference in New Issue