PDA

View Full Version : EPG-translator (download thread)



Rob van der Does
29-08-13, 17:38
Attached a plugin that will translate the EPG-text. Thanks to Kashmir, see

https://sites.google.com/site/kashmirplugins/home/translator

Will be on the ViX-feeds from buyild 730

Be aware: the blue button causes Enigma to crash. The author was not able to fix that for ViX.
For the rest the plugin works fine.

abu baniaz
23-07-14, 04:34
Since there is an existing thread, Version 0.9

Naz
02-08-14, 13:22
can I have the link to the ipk please. I cant find it on the feeds since I update from 016 to 023.

Rob van der Does
02-08-14, 15:50
I have no idea what's wrong, but here is the ipk: 36392

abu baniaz
07-12-20, 03:37
enigma2-plugin-extensions-translator_1.4rc1-fhd-edition_all.ipk

birdman
07-12-20, 21:59
Here's an rc2 (I think...built it by hand).

61016

birdman
08-12-20, 02:14
I may get around to a v1.5. There's a lot of code rationalization that could be done.

But I'll take longer over that, and actually install it to test things...

EDIT: And also fit it for python3. Currently it has some byte vs. str issues, for which 2to3 is no help at all.

gilvey
08-12-20, 07:59
Thank you very much for fixing this

malcolmp
09-12-20, 10:30
And many thanks from me!

birdman
14-12-20, 03:37
Here's an rc2 (I think...built it by hand)........which left all of the files owned by my uid/gid.

Here's one with them owned by root, in case anyone worries.

61034

I discovered this when I actually installed it to work on it today. Making progress. It now understands all of the www html5 entities and (probably) works under python3.
More tidying up to do yet.
But at least I now know what it looks like. I also might extend my German vocabulary (a little), as I have to translate into something non-English.

Trial
14-12-20, 08:59
Hi,
if you have problems with the terrible German language ask me:-)

Ralf

birdman
21-12-20, 21:03
Here's a tidied-up(?) version.

61071


All YouTube code has been removed (it didn't work).
The code has been rationalized (e.g. the code to call to translate.google.com only exists once).
It can handle all w3.org HTML5 entities.
It should work with Python3 (and if it doesn't any changes should be trivial).
The Info page is now translated to both the environment language and (if different) the target language. (And this is done using Google translate...).
Norwegian translation (and possibly others?) now works. (It was not working when I started...)


If all looks OK I'll bump it to v2.0, and put it on github, with some documentation

Willo3092
21-12-20, 21:36
Working for me on ViX 5.4.003. Thank you :thumbsup:

61072

I didn't realise that if you press 'menu' you can turn off the original epg and just show the translation.
Left and right buttons also take you through the epg for the channel you're watching.

birdman
21-12-20, 22:24
Working for me on ViX 5.4.003. Thank you :thumbsup:Thanks for reporting.


I didn't realise that if you press 'menu' you can turn off the original epg and just show the translation.
Left and right buttons also take you through the epg for the channel you're watching.If you press OK you can enter any text to get it translated too.
And the Blue button toggles hiding the screen.

birdman
22-12-20, 00:31
The source code and ipk (plus the script to generate the ipk on changes) is now all at:

https://github.com/original-birdman/Vix-EPGTranslator/

ja5
22-12-20, 01:15
Works fine here :thumbsup:

I just wanted to ask if a option could be added when you use epg guide or single epg. When in either epg you scroll across to the epg your interesting in and select info it will show with red similar green add timer, if you press menu you see epg translator click it and it only shows the first epg and not the epg your on.

Could a option be added in the info option ? mapped to yellow or blue thats not being used or when selecting the epg translator it will translate the epg your on??

I beleave something was add like this in epgtranslatorlite gutemine

birdman
11-01-21, 23:38
EDIT: I've managed to crash this myself!
I'll post an rc2 once I've worked out why and fixed it.

EDIT2: Found the culprit!
Problems when starting up the EPG browser when playing back a recording as the EPG cache has no idea about this item (could be from years ago). I have a fix, but will need to tidy it up and test a little more.

Original post ==========
I've put a test version on github, under the Dev stream.
If this looks OK I'll make a release version.


https://github.com/original-birdman/Vix-EPGTranslator/tree/Dev

The actual 2.01-rc file is (link removed, as there are bugs to be fixed....)

Notable changes:


You can no longer limit the number of items (forward from now) that it will translate. It will work for as far forward you wish to go. As a result it also no longer (confusingly) wraps round at each end of the list.
It caches items it has translated. By default (the 0 setting) it will remember them until they would no longer show up in an EPG. You can also set the maximum cache time to a number of hours (from the configuration menu).
The plugin will also translate items which show in some EventView windows (the ones when you press Info - or equiv - when watching a programme or within the Grid EPG. This window only show now&next.


Discussion in the discussion thread, please at:

https://www.world-of-satellite.com/showthread.php?63672-EPG-Translator-(Discussion-thread)&p=507615&viewfull=1#post507615

birdman
14-01-21, 01:47
I've fixed the issues that caused my crash, and tidied up a few others things in the process.
(The config menu now has larger, easier to read text).

The rc2 ipk file is at:

(link removed - updated version available)

There's a README file in the plugin's directory (so it gets installed onto your box) that explains what it does.

Discussion in the discussion thread, please at:

https://www.world-of-satellite.com/showthread.php?63672-EPG-Translator-(Discussion-thread)&p=507699&viewfull=1#post507699

birdman
17-01-21, 19:02
Here's 2.01-rc3.

It now translates Titles as well as Descriptions.
It puts the current service/channel name into the Title in its EPG browser.
It might now work with ATV, etc...

NOTE: That rc release won't be on github anymore.

(attachment removed - updated version available).

Discussion - bug reports in the discussion thread (https://www.world-of-satellite.com/showthread.php?63672-EPG-Translator-(Discussion-thread)&p=507893&viewfull=1#post507893) please.

birdman
17-01-21, 22:06
Update to (possibly) fix descriptions with [] tags at the start.

This is 2.0-rc4.

(attachment removed - updated version available).

birdman
18-01-21, 19:03
This is 2.0-rc5.

It fixes EventView translations, allows for longer descriptions and puts the version number into the configuration menu.

(attachment removed - updated version available).

Discussion and bug reports to the discussion thread (https://www.world-of-satellite.com/showthread.php?63672-EPG-Translator-(Discussion-thread)&p=507978&viewfull=1#post507978) please.

birdman
20-01-21, 19:46
This is 2.0-rc6.

It fixes EventView translations for non-Vix distros. (Well, hopefully).

(attachment removed - updated version available).

Discussion and bug reports to the discussion thread (https://www.world-of-satellite.com/showthread.php?63672-EPG-Translator-(Discussion-thread)&p=508100&viewfull=1#post508100) please.

birdman
21-01-21, 01:43
This is 2.0-rc7.

It fixes a crash if a description is empty, and also fixes EventView windows, which were cacheing the untranslated values, not the translated ones (a result of an incomplete variable name tidy-up).

(attachment removed - updated version available).

Discussion and bug reports to the discussion thread (https://www.world-of-satellite.com/showthread.php?63672-EPG-Translator-(Discussion-thread)&p=508110&viewfull=1#post508110) please.

birdman
22-01-21, 12:52
This is 2.01-rc8. (All of the others should have been 2.01-rcX as well - fortunately fixed it here).

Barring any crashes I intend this to be the last rc before 2.01-release.

(attachment removed - updated version available).

Discussion and bug reports to the discussion thread (https://www.world-of-satellite.com/showthread.php?63672-EPG-Translator-(Discussion-thread)&p=508248&viewfull=1#post508248) please.

birdman
23-01-21, 19:08
Here is 2.01-rc9.

Hopefully this time it will be OK and I can move to a 2.01-release.

(attachment removed - updated version available).

Discussion and bug reports to the discussion thread (https://www.world-of-satellite.com/showthread.php?63672-EPG-Translator-(Discussion-thread)&p=508308&viewfull=1#post508308) please

birdman
25-01-21, 20:38
Given that there no longer seem to be any failures reported I'll promote this to a release.

61324

Then I can look at whether it is possible to get this info into the SecondInfoBar, and the InfoBarEPG's EventView.
Also which flags and languages to use...

birdman
13-02-21, 19:25
Next release candidate here.

61475

Discussion and bug reports to the discussion thread (https://www.world-of-satellite.com/showthread.php?63672-EPG-Translator-(Discussion-thread)&p=509475&viewfull=1#post509475) please

birdman
16-02-21, 03:34
2.02.rc2 here now.

61536

This corrects a variable name typo, that somehow crept into the previous version. Sorry for that...

Discussion and bug reports to the discussion thread (https://www.world-of-satellite.com/showthread.php?63672-EPG-Translator-(Discussion-thread)&p=509647&viewfull=1#post509647) please

EDIT: attachment replaced to fix a second type that came from nowhere(?)!

gilvey
03-01-22, 09:39
Thanks for the plug in. I'm finding that longer translations don't fit inside the box and some of the text is missing (goes outside the box)
Is there a fix for this?

ccs
03-01-22, 09:54
... the plugin is now in the feeds, did you use the ipk in post #28?

birdman
03-01-22, 11:45
Thanks for the plug in. I'm finding that longer translations don't fit inside the box and some of the text is missing (goes outside the box)
Is there a fix for this?Could you provide a screen shot?
Text wrapping isn't done by this plugin at all - it just puts text into an object that does it (although that is probably dependent on the skin you use).

gilvey
03-01-22, 12:06
........yes i did

gilvey
03-01-22, 12:15
63145 the text is going out of the box.
im running openvix
System OE: OE-Alliance 5.0
Firmware version: OpenViX 6.0.004 (2021-12-09)
Kernel / Drivers: 4.1.20 / 20211026

not sure if that makes a difference

ccs
03-01-22, 12:16
...which skin are you using?

gilvey
03-01-22, 12:30
red-HD

the translator is perfect on my older receiver running 5.4 openvix using the same skin

birdman
03-01-22, 13:09
...which skin are you using?Actually, the plugin is setting a skin for that screen.

birdman
03-01-22, 13:25
red-HD

the translator is perfect on my older receiver running 5.4 openvix using the same skinThe relative size of the flags indicates that you don't have a full-HD screen.
If I force my set-up to use Skin_small.py I see the same thing. Sorry about that.
I'll get a fix in later....


EDIT:

https://github.com/oe-alliance/oe-alliance-plugins/pull/536

gilvey
03-01-22, 13:28
thanks for that

gilvey
04-01-22, 23:54
Is the update available in the feeds or is there an ipk to download?

birdman
05-01-22, 00:42
Is the update available in the feeds or is there an ipk to download?It won't arrive in the feeds until 6.007 (I suspect).

If you're comfortable with copying files onto the box you could put this (unzipped) into /usr/lib/enigma2/python/Plugins/Extensions/EPGTranslator.

63156

It just changes the width of three widgets from 750 to 720.

gilvey
05-01-22, 04:19
Thanks I'll give that a go

Huevos
05-01-22, 23:13
It won't arrive in the feeds until 6.007 (I suspect).Depends on STB. Some are built after that.

gilvey
07-01-22, 18:34
I added the file and all is ok. Thanks for your support