LibreOffice plugin to pipe whole Writer documents through Google Translate, that ought to keep most of the page formatting.

⌈⌋ branch:  PageTranslate


View Ticket

Ticket Hash: 1c6b6e33f25de38ee21c38f06349b181b71eba8e
Title: synchronisation of language list with Google Translate capability
Status: Review Type: Feature_Request
Severity: Critical Priority: Medium
Subsystem: Resolution: Open
Last Modified: 2022-11-15 12:25:49
Version Found In: 1.7
User Comments:
anonymous added on 2022-11-06 04:20:48: (text/x-markdown)
Thank you for this amazing Libreoffice utility.

Via the language drop down one can pick language for translation. 

Google Translate since a year back at least has begun offering many more Indian languages like Assamese and Odia. However, page translate list of asian languages do not display these languages and hence cannot translate to these languages even though Google Translate has these capabilities. Should there be a schedule of periodically synchronising menu in Page Translate with languages offered by Google translate? It should be easy to do, and it's lack is critical to me! Hence, I invert the meanings of critical etc.

mario added on 2022-11-15 12:25:49: (text/x-markdown)
Thanks for the report. So this is a bit more difficult. It's also an artifact of not being aware of the almost 500 languages in India. And organizatorial I can't really add all of them. Some of the more prominent ones are worth enlisting of course.

The main issue here is that the menu cannot easily be extended at runtime. The installation is fairly static, and LibreOffice adds the entries to its registry somewhere. I guess I could investigate if the registry scheme lends itself to tampering, and add something to the config dialog. But a live runtime menu instance is out of scope, as that would incur having the module active - which slows down LibreOffice then, despite being inert most of the time.

Two current options are manual extension:

 * <https://fossil.include-once.org/pagetranslate/file/off/addlang.py>
 * <https://fossil.include-once.org/pagetranslate/file/help/en/vnd.include-once.pagetranslate/extending.page>

Another more practical approach could be adding to the language select dialog. Here an automatic request to detect supported languages would be feasible. Keeping this on my todo list hence.