my title="" was example only ... full screen skins do not using title="blabla" from skin screen, but using setTitle("blabla") from python. Thats all...
Language assistance requested...
Re: Language assistance requested... #501
Re: Language assistance requested... #502
Posted 27 August 2018 - 07:44
Hi,
I have created Pull Request #1701 to fix not translating blank "titles=" and "text=" attributes in the skin.
Please check this code before merging the pull request as I threw this together without testing to point out where, in the code, this is processed.
Regards,
Ian.
Re: Language assistance requested... #503
Posted 27 August 2018 - 07:46
Hi Ims,
As I move through the code I have been fixing the title processing. You will see this in the new Setup.pl where the titles are actually defined in "setup.xml" and used by the Setup code. Most of the skin "title=" attributes don't work because the Python code is forcing an override.
Setting the title in the VirtualKeyBoard skin should be working.
Regards,
Ian.
Edited by IanSav, 27 August 2018 - 07:50.
Re: Language assistance requested... #504
Re: Language assistance requested... #505
Posted 27 August 2018 - 07:59
Hi Littlesat,
You are right. If you have a title="0" (zero) then the string will not be translated. Well I have highlighted the two entries in skin.py that need protection. By all means fix as appropriate. I quickly filed the pull request and the warning here because I only just searched for the code a short while ago to answer Rob's question. I am in the middle of something else and didn't have time to properly think out and test the code.
Perhaps "if value is not None and value !="":" would have been better.
If someone doesn't fix this first I will resubmit the fix later (after proper testing).
Regards,
Ian.
Edited by IanSav, 27 August 2018 - 08:02.
Re: Language assistance requested... #506
Posted 27 August 2018 - 08:03
Once again ... title="blabla" in skin's screen is translated.
But if not exist border (=> not exists TITLE) for screen = screen as "fill", this text is not used. In this time is used text as self.setTitle(_("blabla")). And this using all "full screen" skins
Edited by ims, 27 August 2018 - 08:04.
Re: Language assistance requested... #507
Re: Language assistance requested... #508
Re: Language assistance requested... #509
Posted 27 August 2018 - 08:32
Hi,
This is a general question for anyone who can help.
I have the new NumericaTextInput.py code ready for people here to test before I raise a pull request. There will need to a simple code change in any code that looks inside the NumericaTextInput.py code for certain values that no longer exist. In all the OpenPLi main image source this only occurs once in "MovieSelection.py". The change is easy to implement. What I would like to know is if there is a way to easily scan ALL plugins to see if any of them use the same problematic code?
If searching is not possible how can I alert people for the need to fix their code? As with VIRTUALKEYBOARD I will create a small instructional document to explain the removal of the "search=" parameter and the addition of the significantly more comprehensive "mode=" parameter.
Regards,
Ian.
Re: Language assistance requested... #510
Posted 27 August 2018 - 08:37
Hi Ims,
For this
<widget source="Title" render="Label" p(skin_templates.xml) under <screen name="TopTemplate"> there must be in .py setTitle(_(Virtual keyboard")) or it is not translated.
That's all... ...
I will have to check this out and fix it. I probably never noticed the problem because all my work is usually in English. OpenPLi has been expanding my horizons to introduce me to working with lots of different languages.
Regards,
Ian.
Re: Language assistance requested... #511
Posted 27 August 2018 - 08:44
Edited by Taapat, 27 August 2018 - 08:57.
Re: Language assistance requested... #512
Posted 27 August 2018 - 09:18
I second Taapat (as translator) I try to have OpenPLi fully in french so what I translate is Enigma2 and now also all the opensource plugins from the feeds are also in french because they have there own strings, but I cannot afford to translate skins and as Taapat remark is correct a skin is not there to translate or rename screens, it is just the look & feel that a skin change not the text. Since VirtualKeyboard is part of Enigma2 every strings added for its own need are also translated.
NO SUPPORT by PM, it is a forum make your question public so everybody can benefit from the question/answer.
If you think that my answer helps you, you can press the up arrow in bottom right of the answer.
Wanna help with OpenPLi Translation? Please read our Wiki Information for translators
Sat: Hotbird 13.0E, Astra 19.2E, Eutelsat5A 5.0W
VU+ Solo 4K: 2*DVB-S2 + 2*DVB-C/T/T2 (used in DVB-C) & Duo 4K: 2*DVB-S2X + DVB-C (FBC)
AB-Com: PULSe 4K 1*DVB-S2X (+ DVB-C/T/T2)
Edision OS Mio 4K: 1*DVB-S2X + 1*DVB-C/T/T2
Re: Language assistance requested... #513
Re: Language assistance requested... #514
Re: Language assistance requested... #515
Posted 27 August 2018 - 10:30
title = "0" is also not None and has content... so if title is not None and title != "" makes no sense... just if Title: is sufficient...
But I still think this no title empty string thing should be solved in a different way...
Edited by littlesat, 27 August 2018 - 10:30.
WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W
Re: Language assistance requested... #516
Re: Language assistance requested... #517
Posted 27 August 2018 - 11:19
I don't understand why "fill" stops the translations.
Maybe I'm mistaken, but it seems to me that this is because the widget used on screen with fill use self ["Title"], which is assigned with setTitle.
It does not stop translation, it does not assign this variable.
This screen does not have a tile because it fills the entire screen without borders and without a screen tile from skin, and thefore you use aditional widget wich use source="Title".
Edited by Taapat, 27 August 2018 - 11:24.
Re: Language assistance requested... #518
Posted 27 August 2018 - 15:42
Edited by Taapat, 27 August 2018 - 15:45.
Re: Language assistance requested... #519
Re: Language assistance requested... #520
Posted 27 August 2018 - 16:50
Does this mean that SVG images can now be used in the skin engine?
Not yet.
I guess LoadPixmap should be fixed to support svg and that seems different than picload.
Also picload svg thumbnail doesn't work right yet.
I seens that nanosvg can work with few svg's only (and it's expected). On the other hand, other solutions seem way more complicated!!!
Is there anybody able to explain how an ePtr<gPixmap> should be filed from an "RGBA image (non-premultiplied alpha)"?
result = new gPixmap(width, height, bit_depth * channels, pixmapDisposed, accel); gUnmanagedSurface *surface = result->surface; ...It's just enough to put the rgba image to surface->data?
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users