Jump to content


Photo

MessageBox Title Translation

messagebox translation

  • Please log in to reply
21 replies to this topic

#1 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 18 October 2013 - 09:04

Hello,

I notice that MessageBox title is not translated.

After adding the following on the MessageBox.py it works.
...
                                }, -1)

                self.onLayoutFinish.append(self.layoutFinished)

        def layoutFinished(self):
                self.setTitle(_(self.title))

        def initTimeout(self, timeout):
...
Also adding the following to skin works.
...
    <applet type="onLayoutFinish">
self.setTitle(_(self.title))
    </applet>
...
If the first way is acceptable i can create a patch.

Thanks
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: MessageBox Title Translation #2 mirakels

  • Forum Moderator
    PLi® Core member
  • 7,599 posts

+62
Good

Posted 18 October 2013 - 09:46

A patch for Messagebox.py seems reasonable.


Geen wonder... Had slechts een dm7000, maar wel ook een rotor. eigenlijk al een tijdje ook een dm600 en dm7025. Maar nu kijkend met een et9000 en vuduo

Re: MessageBox Title Translation #3 littlesat

  • PLi® Core member
  • 56,309 posts

+691
Excellent

Posted 18 October 2013 - 10:05

I beleive it is better to put in the py as in the skin ;)....


Edited by littlesat, 18 October 2013 - 10:05.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: MessageBox Title Translation #4 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 18 October 2013 - 10:32

Ok!

Here is the patch.

Attached Files


Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: MessageBox Title Translation #5 littlesat

  • PLi® Core member
  • 56,309 posts

+691
Excellent

Posted 18 October 2013 - 11:06

It was already granted... I was too quick xqq...


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: MessageBox Title Translation #6 mirakels

  • Forum Moderator
    PLi® Core member
  • 7,599 posts

+62
Good

Posted 18 October 2013 - 11:47

It was already granted... I was too quick xqq...

yes, but you did not grant him credit for the suggested patch!

 

The book of open source and cooperation probably states: "If someone offers to craft a patch for an idea, and the idea is accepted, one does not steal the idea and quickly implements the idea, but allows that this someone posts the patch"!


Geen wonder... Had slechts een dm7000, maar wel ook een rotor. eigenlijk al een tijdje ook een dm600 en dm7025. Maar nu kijkend met een et9000 en vuduo

Re: MessageBox Title Translation #7 littlesat

  • PLi® Core member
  • 56,309 posts

+691
Excellent

Posted 18 October 2013 - 12:23

That is also one thing that I missed :(

@athoik thousand xqqqqqqqqq


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: MessageBox Title Translation #8 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 18 October 2013 - 12:24

There is no problem! It's only two lines of code :)
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: MessageBox Title Translation #9 Pedro_Newbie

  • Senior Member
  • 4,631 posts

+225
Excellent

Posted 18 October 2013 - 14:31

not bad 500 xqqqqqqqqq per line :D (whatever xqqqqqqqqq may be)


Edited by Pedro_Newbie, 18 October 2013 - 14:31.


Re: MessageBox Title Translation #10 littlesat

  • PLi® Core member
  • 56,309 posts

+691
Excellent

Posted 18 October 2013 - 14:47

Excuse... = Xqq...

 

Just like Bar-B-Q ;)


Edited by littlesat, 18 October 2013 - 14:47.

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: MessageBox Title Translation #11 littlesat

  • PLi® Core member
  • 56,309 posts

+691
Excellent

Posted 18 October 2013 - 15:14

And stupid me... :( http://sourceforge.n...7919961f0c09f1/


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: MessageBox Title Translation #12 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 19 October 2013 - 09:55

Hello,

I notice also that EventViewContextMenu title is not translatable.

Attached File  0001-Make-EventViewContextMenu-title-translatable.patch.txt   775bytes   3 downloads

But we need to use valid translation also on PLi-HD (valid is Event view menu not Eventview menu)
-<screen name="EventViewContextMenu" position="fill" title="Eventview menu" flags="wfNoBorder">
+<screen name="EventViewContextMenu" position="fill" title="Event view menu" flags="wfNoBorder">
Do you want me to create patch also for PLi-HD skin on Github?

Edited by athoik, 19 October 2013 - 09:56.

Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: MessageBox Title Translation #13 littlesat

  • PLi® Core member
  • 56,309 posts

+691
Excellent

Posted 19 October 2013 - 11:55

That would indeed be nice...

WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: MessageBox Title Translation #14 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 19 October 2013 - 11:57

That would indeed be nice...

Here is the PLi-HD change: https://github.com/l...-PLiHD/pull/171
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: MessageBox Title Translation #15 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 19 October 2013 - 12:04

We also need to commit 0001-Make-EventViewContextMenu-title-translatable.patch.txt on Enigma.

Thanks.
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: MessageBox Title Translation #16 littlesat

  • PLi® Core member
  • 56,309 posts

+691
Excellent

Posted 19 October 2013 - 12:11

I can only do one thing at the time ;)....


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: MessageBox Title Translation #17 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 19 October 2013 - 12:19

I can only do one thing at the time ;)....

Thanks :)
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: MessageBox Title Translation #18 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 19 October 2013 - 15:11

Hello,

IpkgInstaller suffers from the same issue.
class IpkgInstaller(Screen):
        skin = """
                <screen name="IpkgInstaller" position="center,center" size="550,450" title="Install extensions" >
...
I cannot use the same code as before, probably because we are using also IpkgInstaller in PLi-HD skin. This causes title to be nothing!
...
  <screen name="IpkgInstaller" position="fill" flags="wfNoBorder">
...
Also if you define title on skin (eg title=" 2.Install extension (for skin.xml)") both titles rendered on screen!

Attached File  screenshot.jpg   14.68KB   28 downloads

Why both titles are rendered? Normaly one should win, the one in skin.xml?

Any idea how to solve it?

Thanks
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916

Re: MessageBox Title Translation #19 littlesat

  • PLi® Core member
  • 56,309 posts

+691
Excellent

Posted 20 October 2013 - 01:52

Can we see nice patches again?


WaveFrontier 28.2E | 23.5E | 19.2E | 16E | 13E | 10/9E | 7E | 5E | 1W | 4/5W | 15W


Re: MessageBox Title Translation #20 athoik

  • PLi® Core member
  • 8,458 posts

+327
Excellent

Posted 26 October 2013 - 17:30

"Reception Settings" screen is not translated also.

Satdreamgr_4_settings.jpg

Valid translation exists (http://sourceforge.n.../po/el.po#l4252).

This must be done in the same way (using title) or is better to use gettext_("Reception Settings") ?
Wavefield T90: 0.8W - 1.9E - 4.8E - 13E - 16E - 19.2E - 23.5E - 26E - 33E - 39E - 42E - 45E on EMP Centauri DiseqC 16/1
Unamed: 13E Quattro - 9E Quattro on IKUSI MS-0916



Also tagged with one or more of these keywords: messagebox, translation

1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users