Jump to content


Photo

Translation of menu items in screens load plugins and delete plugins.


  • Please log in to reply
9 replies to this topic

#1 a.k.a. Uchkun

  • Senior Member
  • 94 posts

+26
Good

Posted 8 November 2012 - 14:46

Is it possible to add into image localizability of menu items in plug-in load and delete windows ?


I offer to add this localizability into component PluginList.py using gettext.
Changed file is attached.
Also attached is screenshot of plugin load window, where using changed file and adding into file translation enigma2.mo all menu items now are in Russian language.

Posted Image

http://s019.radikal....2d34c5ff5e6.jpg

Attached Files


Edited by a.k.a. Uchkun, 8 November 2012 - 14:48.


Re: Translation of menu items in screens load plugins and delete plugins. #2 grizli

  • Member
  • 2 posts

0
Neutral

Posted 8 November 2012 - 17:35

support the author, because everyone would like to see a full translation of the image in your own language

Re: Translation of menu items in screens load plugins and delete plugins. #3 maigais

  • Senior Member
  • 431 posts

+4
Neutral

Posted 8 November 2012 - 17:40

+1 ;)

BlackHole-3.1.0F_DM800 ,Tuner + ALINK DTU & Digital USB DVB-T HDTV TV Tuner Recorder Receiver , HDD TOSHIBA MK2552GSX 250gb,usb 16gb,skins Glamour_X-Infinity mod


Re: Translation of menu items in screens load plugins and delete plugins. #4 littlesat

  • PLi® Core member
  • 57,384 posts

+708
Excellent

Posted 9 November 2012 - 09:11

I suggest this is not an easy request... as this data is dynamic and you easily cannot produce .po files on those to do this in a structured way...

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


Re: Translation of menu items in screens load plugins and delete plugins. #5 Dimitrij

  • PLi® Core member
  • 10,370 posts

+354
Excellent

Posted 9 November 2012 - 13:52

But why not?
Many users do not speak English.
This simplifies the configuration.
It's such a small thing :) ...

def PluginCategoryComponent(name, png, width=440):
return [
name,
MultiContentEntryText(pos=(80, 5), size=(width-80, 25), font=0, text=_(name)),
MultiContentEntryPixmapAlphaTest(pos=(10, 0), size=(60, 50), png = png)
]

Edited by Dima73, 9 November 2012 - 13:53.

GigaBlue UHD Quad 4K /Lunix3-4K/Duo 4K


Re: Translation of menu items in screens load plugins and delete plugins. #6 littlesat

  • PLi® Core member
  • 57,384 posts

+708
Excellent

Posted 9 November 2012 - 14:08

Because name is dynamic.... you cannot create a ,po file to edit them... When translating this is the "hack" way... so when made it should be done by a different way.

Edited by littlesat, 9 November 2012 - 14:11.

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


Re: Translation of menu items in screens load plugins and delete plugins. #7 a.k.a. Uchkun

  • Senior Member
  • 94 posts

+26
Good

Posted 9 November 2012 - 14:30

I do not understand your answer. Dynamic loading plugins window depends on the image that is on you. So far this is only a static text.

Re: Translation of menu items in screens load plugins and delete plugins. #8 littlesat

  • PLi® Core member
  • 57,384 posts

+708
Excellent

Posted 9 November 2012 - 14:36

If you have _("Something in English") you can build a po file automatically and do translation...

When you have _(someVariable) how can we build the po file with the stuff that needs to be translated??

It is a good idee to translate plugins... but the way it is patched is a hack... and that is something we should avoid...

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


Re: Translation of menu items in screens load plugins and delete plugins. #9 a.k.a. Uchkun

  • Senior Member
  • 94 posts

+26
Good

Posted 9 November 2012 - 14:38

We are one and the same talking about?

I suggest that translate? Offered only translatable window loading and removal of plug-ins.

And it's not about the name of the plugin, and the names of categories plugins.

Edited by a.k.a. Uchkun, 9 November 2012 - 14:39.


Re: Translation of menu items in screens load plugins and delete plugins. #10 muzon

  • Member
  • 1 posts

0
Neutral

Posted 10 November 2012 - 10:25

For many Russian-speaking users, the modification of the distinguished a.k.a. Uchkun - this is the best solution! +1


6 user(s) are reading this topic

0 members, 6 guests, 0 anonymous users