Translating files in LibreTranslate
Navigate to LibreTranslate instance in web browser, for example libretranslate.com
Click on the “Translate Files” tab at the top of the page
Click the “File” button to upload your file
Click “Translate” to translate your document
Click “Download” to download your translated document
2 Likes
jra47
July 4, 2023, 6:59pm
2
I installed Libretranslate on my Synology serveur using docker and portainer : this works well for text translation but not for files (Epub). Is this a known issue?
1 Like
what problem do you have with the translation of an .epub? @jra47
1 Like
jra47
July 22, 2023, 3:21pm
4
When I ask for an epub translation, there is no translation, the file come back immediately untranslated, and looking in the log, I see WARNING:waitress.queue:Task queue depth is 2
WARNING:waitress.queue:Task queue depth is 2,
1 Like
I think I found the fix for EPUBs not being translated:
LibreTranslate:main
← argosopentech:epub-fix
opened 02:18PM - 05 Aug 23 UTC
We're expecting inzipinfo.filename == "OPS/content.opf" while this
value is "OE… BPS/content.opf" for an EPUB file created with
LibreOffice.
The current logic that decides wether HTML should be translated
will often not translate text in an EPUB that the user would
want translated. This commit will translate any html or xhtml
files in the EPUB document.
Example of a filename that isn't translated with the current code
but is with this commit:
OEBPS/sections/section0003.xhtml
https://github.com/LibreTranslate/argos-translate-files/issues/1
The filenames within the EPUB files are slightly different from what we were expecting.
2 Likes