1 # -*- coding: utf-8 -*-
2 from os import environ as os_environ
7 gettext.bindtextdomain("BackupSuite","/usr/lib/enigma2/python/Plugins/Extensions/BackupSuiteHDD/locale")
14 t = gettext.dgettext("BackupSuite", txt)
16 #print "[BackupSuite] fallback to default translation for", txt
17 t = gettext.gettext(txt)
22 print _("No supported receiver found!")
26 print _("BACK-UP TOOL, FOR MAKING A COMPLETE BACK-UP")
30 print _("Please be patient, a backup will now be made, because of the used filesystem the back-up will take about 5-7 minutes for this system.")
34 print _("not found, the backup process will be aborted!")
38 print _("Create: root.ubifs")
42 print _("Create: kerneldump")
46 print _("Almost there... Now building the USB-Image!")
50 sys.stdout.write(_("Additional backup -> "))
54 sys.stdout.write(_("USB Image created in: "))
58 sys.stdout.write(_("and there is made an extra copy in: "))
62 print _("To restore the image:")
63 print _("Place the USB-flash drive in the (front) USB-port and switch the receiver off and on with the powerswitch on the back of the receiver.")
64 print _("Follow the instructions on the front-display.")
65 print _("Please wait.... almost ready!")
69 print _("To restore the image:")
70 print _("Place the USB-flash drive in the (front) USB-port and switch the receiver off and on with the powerswitch on the back of the receiver.")
71 print _("Press arrow up from frontpanel to start loading.")
72 print _("Please wait.... almost ready!")
76 print _("Please check the manual of the receiver on how to restore the image.")
80 print _("Image creation FAILED!")
81 # print _("Probable causes could be:")
82 # print _("-> no space left on back-up device")
83 # print _("-> no writing permission on back-up device")
87 sys.stdout.write(_("available "))
91 print _("There is a valid USB-flashdrive detected in one of the USB-ports, therefore an extra copy of the back-up image will now be copied to that USB-flashdrive.")
92 print _("This only takes about 20 seconds.....")
96 print _("Backup finished and copied to your USB-flashdrive.")
100 sys.stdout.write(_("Full back-up to the harddisk"))
104 print _("There is NO valid USB-stick found, so I've got nothing to do.")
106 print _("PLEASE READ THIS:")
107 print _("To back-up directly to the USB-stick, the USB-stick MUST contain a file with the name:")
108 print _("backupstick or")
109 print _("backupstick.txt")
111 print _("If you place an USB-stick containing this file then the back-up will be automatically made onto the USB-stick and can be used to restore the current image if necessary.")
112 print _("The program will exit now.")
116 sys.stdout.write(_("Full back-up direct to USB"))
120 print _("The content of the folder is:")
125 sys.stdout.write(_("Time required for this process: "))
132 globals()[sys.argv[2]]()
133 os_environ["LANGUAGE"] = sys.argv[1]