diff --git a/NeoBoot/plugin.py b/NeoBoot/plugin.py
index 467ef66..4055ea5 100644
--- a/NeoBoot/plugin.py
+++ b/NeoBoot/plugin.py
@@ -63,6 +63,7 @@ class MyUpgrade(Screen):
skin = """\{"template": [MultiContentEntryText(pos = (90, 1), size = (920, 66), flags = RT_HALIGN_LEFT|RT_VALIGN_CENTER, text = 0),MultiContentEntryPixmapAlphaTest(pos = (8, 4), size = (66, 66), png = 1),],"fonts": [gFont("Regular", 40)],"itemHeight": 66}"""
else:
skin = """{"template": [MultiContentEntryText(pos = (90, 1), size = (920, 66), flags = RT_HALIGN_LEFT|RT_VALIGN_CENTER, text = 0),MultiContentEntryPixmapAlphaTest(pos = (8, 4), size = (66, 66), png = 1),],"fonts": [gFont("Regular", 40)],"itemHeight": 66}"""
+
__module__ = __name__
def __init__(self, session):
@@ -158,6 +159,7 @@ class MyHelp(Screen):
skin = """"""
else:
skin = """"""
+
__module__ = __name__
def __init__(self, session):
@@ -257,7 +259,6 @@ class NeoBootInstallation(Screen):
skin = """"""
else:
skin = """\n \n \n \n \n \n \n \n \n """
-
def __init__(self, session):
Screen.__init__(self, session)
self.list = []
@@ -584,11 +585,10 @@ class NeoBootInstallation(Screen):
os.system('cd; cd /media/neoboot/ImagesUpload/.kernel; /usr/sbin/nanddump /dev/mtd2 -o > vmlinux.gz; mv /home/root/vmlinux.gz /media/neoboot/ImagesUpload/.kernel/')
os.system('cd ' + LinkNeoBoot + '/; rm ./bin/neobm; rm ./bin/fontforneoboot.ttf; rm ./bin/libpngneo; mv ' + LinkNeoBoot + '/target/vu_dev_mtd2.sh ' + LinkNeoBoot + '/files/kernel.sh; mv ' + LinkNeoBoot + '/target/vu_mtd2_run.py ' + LinkNeoBoot + '/run.py; cd')
- #inne stb
+ #inne stb
elif getCPUSoC() == 'bcm73625' or getCPUSoC() == 'bcm7358' or getCPUSoC() == 'bcm7362' or getCPUSoC() == 'BCM7362' or getCPUSoC() == 'bcm7356' or getCPUSoC() == 'bcm7241' or getCPUSoC() == 'bcm7362' or getBoxHostName() == 'formuler4turbo' or getBoxHostName() == 'mbmini' or getBoxHostName() == 'osmini' or getTunerModel() == 'ini-1000sv' or getTunerModel() == 'h3':
os.system('cd ' + LinkNeoBoot + '/; mv ./bin/fontforneoboot.ttf /usr/share/fonts; mv ./bin/libpngneo /usr/lib; cp -f ./bin/neoinitmips /sbin/neoinitmips; cp -f ./bin/neoinitmipsvu /sbin/neoinitmipsvu; chmod 0755 /sbin/neoinit*; chmod 0755 ./bin/neobm; chmod 0755 /usr/lib/libpngneo; cd; chmod 0755 /sbin/neoinitmips; ln -sf /media/neoboot/ImageBoot/.neonextboot /etc/neoimage; mv ' + LinkNeoBoot + '/target/mips_run.py ' + LinkNeoBoot + '/run.py; cd')
-
-
+
os.system('cp -Rf ' + LinkNeoBoot + '/bin/neoinitmips /sbin/neoinitmips; cp -Rf ' + LinkNeoBoot + '/bin/neoinitmipsvu /sbin/neoinitmipsvu')
os.system('chmod 755 ' + LinkNeoBoot + '/bin/nfidump; chmod 0755 ' + LinkNeoBoot + '/bin/nanddump_mips; rm -r ' + LinkNeoBoot + '/bin/neoinitar*; cd')
os.system('chmod 755 /sbin/neoinitmips; chmod 0755 /sbin/neoinitmipsvu; cd ' + LinkNeoBoot + '/;mv ./bin/fontforneoboot.ttf /usr/share/fonts;mv ./bin/libpngneo /usr/lib; cp -f ./bin/neoinitmips /sbin/neoinitmips; chmod 0755 ./bin/neobm;chmod 0755 /usr/lib/libpngneo; cd; chmod 0755 /sbin/neoinitmips ')
@@ -605,13 +605,13 @@ class NeoBootInstallation(Screen):
os.system('chmod 0755 ' + LinkNeoBoot + '/files/neo_location')
- if os.path.isfile('' + LinkNeoBoot + '/.location'):
+ if os.path.isfile('' + LinkNeoBoot + '/.location'):
if getLabelDisck() != 'LABEL=':
cmd = "echo -e '\n%s '" % _('NeoBoot has been installed succesfully !')
- cmd1 = "echo -e '\n%s '" % _('NeoBoot wykrył że dyski nie mają nadanej nazwy Label.\nDo poprawnego dzialania neoboot prosze nadac dla dyskow nazwy !!! LABEL\nZalecany calkowity rstart tunera ' + getBoxHostName() + '\nNeoBoot zainstalowano w lokalizacji: ' + getNeoLocation() + '\n')
+ cmd1 = "echo -e '\n%s '" % _('NeoBoot has detected that the disks do not have a Label name.\nDo poprawnego dzialania neoboot prosze nadac dla dyskow nazwy !!! LABEL\nZalecany calkowity rstart tunera ' + getBoxHostName() + '\nNeoBoot zainstalowano w lokalizacji: ' + getNeoLocation() + '\n')
elif getLabelDisck() == 'LABEL=':
cmd = "echo -e '\n%s '" % _('NeoBoot has been installed succesfully !')
- cmd1 = "echo -e '\n%s '" % _('NeoBoot wykrył że dyski mają nadane nazwy Label.\nZalecany calkowity rstart tunera ' + getBoxHostName() + '\nNeoBoot zainstalowano w lokalizacji: ' + getNeoLocation() + '\n')
+ cmd1 = "echo -e '\n%s '" % _('NeoBoot has detected that the disks have been labeled.\nZalecany calkowity rstart tunera ' + getBoxHostName() + '\nNeoBoot zainstalowano w lokalizacji: ' + getNeoLocation() + '\n')
else:
self.myclose2(_('NeoBoot has not been installed ! :(' ))
@@ -637,8 +637,7 @@ class NeoBootImageChoose(Screen):
skin = """
\n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t Format:%A %e %B %Y \t\t\t"""
-
- def __init__(self, session):
+ def __init__(self, session):
Screen.__init__(self, session)
if not fileExists('' + LinkNeoBoot + '/files/mountpoint.sh'):
os.system('touch ' + LinkNeoBoot + '/files/mountpoint.sh; echo "#!/bin/sh\n#DESCRIPTION=This script by gutosie\n" >> ' + LinkNeoBoot + '/files/mountpoint.sh; chmod 0755 ' + LinkNeoBoot + '/files/mountpoint.sh')
@@ -840,7 +839,7 @@ class NeoBootImageChoose(Screen):
self.onShow.append(self.updateList)
def chackkernel(self):
- message = _('NeoBoot wykryl niezgodnos kernela w flash, \nZainstalowac kernel dla flash image ? ?')
+ message = _('NeoBoot detected a kernel mismatch in flash, \nInstall a kernel for flash image??')
ybox = self.session.openWithCallback(self.updatekernel, MessageBox, message, MessageBox.TYPE_YESNO)
ybox.setTitle(_('Updating ... '))
def pomoc(self):
@@ -851,7 +850,7 @@ class NeoBootImageChoose(Screen):
self.session.open(Opis)
def ReinstallNeoBoot(self):
- INSTALLbox = self.session.openWithCallback(self.reinstallboot, MessageBox, _('Wybierz Tak, by przeinstalować neoboota.\n NEOBOOT.'), MessageBox.TYPE_YESNO)
+ INSTALLbox = self.session.openWithCallback(self.reinstallboot, MessageBox, _('Select Yes to reinstall the neoboot.\n NEOBOOT.'), MessageBox.TYPE_YESNO)
INSTALLbox.setTitle(_('Zainstalować ponownie neoboota ?'))
def reinstallboot(self, answer):
@@ -865,7 +864,7 @@ class NeoBootImageChoose(Screen):
self.close()
else:
try:
- self.session.open(MessageBox, _('Rezygnacja.'), MessageBox.TYPE_INFO, 4)
+ self.session.open(MessageBox, _('Resignation.'), MessageBox.TYPE_INFO, 4)
self.close()
except:
False
@@ -1204,11 +1203,11 @@ class NeoBootImageChoose(Screen):
def ImageInstall(self):
if fileExists('/.multinfo'):
- message = _('Instalacja nowego oprogramowania do neoboot, zalecane tylko z poziomu Flash!!!\n---Kontynuowac ?---')
+ message = _('Installing new neoboot software, only recommended from Flash!!!\n---Continue ?---')
ybox = self.session.openWithCallback(self.installation_image, MessageBox, message, MessageBox.TYPE_YESNO)
ybox.setTitle(_('Installation with risk '))
else:
- message = _('Instalacja z poziomu Flash!!!\n---Kontynuowac ?---')
+ message = _('Installation from Flash!!!\n---Continue ?---')
ybox = self.session.openWithCallback(self.installation_image, MessageBox, message, MessageBox.TYPE_YESNO)
ybox.setTitle(_('Installation new image. '))
# self.installation_image()
@@ -1260,10 +1259,10 @@ class NeoBootImageChoose(Screen):
'formuler4turbo']:
self.extractImage()
else:
- self.messagebox = self.session.open(MessageBox, _('Tuner nie jest wspierany przez NeoBoota.\nSkontaktuj sie z autorem.\nNie wykryto odpowiedniego STB do instalacji !!!!'), MessageBox.TYPE_INFO, 8)
+ self.messagebox = self.session.open(MessageBox, _('The tuner is not supported by NeoBoot.\nContact the author.\nNo proper STB for installation !!!!'), MessageBox.TYPE_INFO, 8)
self.close()
else:
- self.messagebox = self.session.open(MessageBox, _('Zaleca sie instalacje nowego oprogramowania tylko z poziomu systemu flash.\n---NEOBOOT EXIT---'), MessageBox.TYPE_INFO, 10)
+ self.messagebox = self.session.open(MessageBox, _('It is recommended to install new software only from a flash system.\n---NEOBOOT EXIT---'), MessageBox.TYPE_INFO, 10)
self.close()
def extractImage(self):
@@ -1353,7 +1352,7 @@ def checkimage():
mycheck = False
return mycheck
-def main(session, **kwargs):
+def main(session, **kwargs):
if not fileExists('' + LinkNeoBoot + '/files/mountpoint.sh'):
pass
else:
@@ -1375,7 +1374,7 @@ def main(session, **kwargs):
else:
session.open(NeoBootImageChoose)
else:
- session.open(MessageBox, _('Sorry: Wrong image in flash found. You have to install in flash Vu+ or Octagon-sf4008 Image !!!'), MessageBox.TYPE_INFO, 10)
+ session.open(MessageBox, _('Sorry: Wrong image in flash found. You have to install in flash. !!!'), MessageBox.TYPE_INFO, 10)
else:
session.open(NeoBootInstallation)
@@ -1390,6 +1389,6 @@ def menu(menuid, **kwargs):
from Plugins.Plugin import PluginDescriptor
def Plugins(**kwargs):
- return [PluginDescriptor(name='NeoBoot', description='NeoBoot MultiBoot', where=PluginDescriptor.WHERE_MENU, fnc=menu), PluginDescriptor(name='NeoBoot', description=_('Installing multiple images'), icon='neo.png', where=PluginDescriptor.WHERE_PLUGINMENU, fnc=main)]
+ return [PluginDescriptor(name='NeoBoot', description='NeoBoot', where=PluginDescriptor.WHERE_MENU, fnc=menu), PluginDescriptor(name='NeoBoot', description=_('Installing multiple images'), icon='neo.png', where=PluginDescriptor.WHERE_PLUGINMENU, fnc=main)]
####################### _(-_-)_ gutosie _(-_-)_ #######################