2022-10-20, 00:13
Very basic translation proof of concept addon using https://github.com/LibreTranslate/LibreTranslate which offers online (paid, or free mirrors) as well as option to run your own local server.
This addon will work with any of those options.
Kodi File Manager Source:
https://kcook98765.github.io/repository.kcook98765/
Direct ZIP Install:
https://github.com/kcook98765/repository...-1.0.2.zip
Once repository is installed, you can install the translation "Program addon" LibreTranslate
It is very basic, but has settings :
1) to adjust server (uses open mirror url by default)
2) Api key (not needed for a free mirror, otherwise can add one for paid subscription or for free local server install)
3) Language to translate "to" (it auto detects language)
I tested in a basic way, in skin under <window> for the video info details window, I added:
<onload>RunScript(script.LibreTranslate,'hola')</onload>
(note 'hola' is just a sample of the text to translate, you should be able to use an $INFO[] or similar variable to send to translation.
Then in an area of the skin where display of text occurs, I added:
$INFO[Window(Home).Property(libreTranslate_text)]
This "property" is where your translated (or server error) text will be available.
This addon will work with any of those options.
Kodi File Manager Source:
https://kcook98765.github.io/repository.kcook98765/
Direct ZIP Install:
https://github.com/kcook98765/repository...-1.0.2.zip
Once repository is installed, you can install the translation "Program addon" LibreTranslate
It is very basic, but has settings :
1) to adjust server (uses open mirror url by default)
2) Api key (not needed for a free mirror, otherwise can add one for paid subscription or for free local server install)
3) Language to translate "to" (it auto detects language)
I tested in a basic way, in skin under <window> for the video info details window, I added:
<onload>RunScript(script.LibreTranslate,'hola')</onload>
(note 'hola' is just a sample of the text to translate, you should be able to use an $INFO[] or similar variable to send to translation.
Then in an area of the skin where display of text occurs, I added:
$INFO[Window(Home).Property(libreTranslate_text)]
This "property" is where your translated (or server error) text will be available.