Esempio n. 1
0
	def __init__(self, session):
		Screen.__init__(self, session)

		self.oldActiveLanguage = language.getActiveLanguage()
		self.catalog = language.getActiveCatalog()

		self.list = []
# 		self["flag"] = Pixmap()
		self["summarylangname"] = StaticText()
		self["languages"] = List(self.list)
		self["languages"].onSelectionChanged.append(self.changed)

		self.updateList()
		self.onLayoutFinish.append(self.selectActiveLanguage)

		self["key_red"] = Label(_("Cancel"))
		self["key_green"] = Label(_("Save"))
		self["key_yellow"] = Label(_("Update Cache"))
		self["key_blue"] = Label(_("Delete Language"))

		self["actions"] = ActionMap(["SetupActions", "ColorActions"],
		{
			"ok": self.save,
			"cancel": self.cancel,
			"red": self.cancel,
			"green": self.save,
			"yellow": self.updateCache,
			"blue": self.delLang,
		}, -1)
    def __init__(self, session):
        Screen.__init__(self, session)

        self.oldActiveLanguage = language.getActiveLanguage()
        self.catalog = language.getActiveCatalog()

        self.list = []
        # 		self["flag"] = Pixmap()
        self["summarylangname"] = StaticText()
        self["languages"] = List(self.list)
        self["languages"].onSelectionChanged.append(self.changed)

        self.updateList()
        self.onLayoutFinish.append(self.selectActiveLanguage)

        self["key_red"] = Label(_("Cancel"))
        self["key_green"] = Label(_("Save"))

        self["actions"] = ActionMap(
            ["SetupActions", "ColorActions"], {
                "ok": self.save,
                "cancel": self.cancel,
                "red": self.cancel,
                "green": self.save,
                "yellow": self.updateCache,
            }, -1)
Esempio n. 3
0
 def __init__(self, session):
     Screen.__init__(self, session)
     self.setTitle(_('Setup Language'))
     language.InitLang()
     self.oldActiveLanguage = language.getActiveLanguage()
     self.catalog = language.getActiveCatalog()
     self.list = []
     self['summarylangname'] = StaticText()
     self['summarylangsel'] = StaticText()
     self['languages'] = List(self.list)
     self['languages'].onSelectionChanged.append(self.changed)
     self.updateList()
     self.onLayoutFinish.append(self.selectActiveLanguage)
     self['key_red'] = Label(_('Cancel'))
     self['key_green'] = Label(_('Save'))
     self['key_yellow'] = Label(_('Update Cache'))
     self['key_blue'] = Label(_('Delete Language'))
     self['actions'] = ActionMap(
         ['SetupActions', 'ColorActions'], {
             'ok': self.save,
             'cancel': self.cancel,
             'red': self.cancel,
             'green': self.save,
             'yellow': self.updateCache,
             'blue': self.delLang
         }, -1)
Esempio n. 4
0
    def __init__(self, session):
        Screen.__init__(self, session)
        self.setTitle(_("Setup Language"))

        language.InitLang()
        self.oldActiveLanguage = language.getActiveLanguage()
        self.catalog = language.getActiveCatalog()

        self.list = []
        # 		self["flag"] = Pixmap()
        self["summarylangname"] = StaticText()
        self["summarylangsel"] = StaticText()
        self["languages"] = List(self.list)
        self["languages"].onSelectionChanged.append(self.changed)

        self.updateList()
        self.onLayoutFinish.append(self.selectActiveLanguage)

        self["key_red"] = Label(_("Cancel"))
        self["key_green"] = Label(_("Save"))
        self["key_yellow"] = Label(_("Update Cache"))
        self["key_blue"] = Label(_("Delete Language"))
        self["description"] = Label(
            _("Press MENU to install additional language(s)."))

        self["actions"] = ActionMap(
            ["SetupActions", "ColorActions"], {
                "ok": self.save,
                "cancel": self.cancel,
                "red": self.cancel,
                "green": self.save,
                "yellow": self.updateCache,
                "blue": self.delLang,
                "menu": self.installLanguage,
            }, -1)
Esempio n. 5
0
    def __init__(self, session):
        Screen.__init__(self, session)
        self.setTitle(_("Language"))

        language.InitLang()
        self.oldActiveLanguage = language.getActiveLanguage()
        self.catalog = language.getActiveCatalog()

        self.list = []
        self["summarylangname"] = StaticText()
        self["summarylangsel"] = StaticText()
        self["languages"] = List(self.list)
        self["languages"].onSelectionChanged.append(self.changed)

        self.updateList()
        self.onLayoutFinish.append(self.selectActiveLanguage)

        self["key_red"] = Label("")
        self["key_green"] = Label("")
        self["key_yellow"] = Label(_("Add Language"))
        self["key_blue"] = Label(_("Delete Language(s)"))
        self["description"] = Label(
            _("'Save' changes active language.\n'Add Language' or MENU adds additional language(s).\n'Delete Language' allows either deletion of all but English and active language OR selected language"
              ))

        self["actions"] = ActionMap(
            ["SetupActions", "ColorActions"], {
                "ok": self.save,
                "cancel": self.cancel,
                "red": self.cancel,
                "green": self.save,
                "yellow": self.installLanguage,
                "blue": self.delLang,
                "menu": self.installLanguage,
            }, -1)
Esempio n. 6
0
    def __init__(self, session, menu_path=""):
        Screen.__init__(self, session)
        screentitle = _("Language")
        if config.usage.show_menupath.value == 'large':
            menu_path += screentitle
            title = menu_path
            self["menu_path_compressed"] = StaticText("")
        elif config.usage.show_menupath.value == 'small':
            title = screentitle
            self["menu_path_compressed"] = StaticText(
                menu_path +
                " >" if not menu_path.endswith(' / ') else menu_path[:-3] +
                " >" or "")
        else:
            title = screentitle
            self["menu_path_compressed"] = StaticText("")
        Screen.setTitle(self, title)

        language.InitLang()
        self.oldActiveLanguage = language.getActiveLanguage()
        self.catalog = language.getActiveCatalog()

        self.list = []
        self["summarylangname"] = StaticText()
        self["summarylangsel"] = StaticText()
        self["languages"] = List(self.list)
        self["languages"].onSelectionChanged.append(self.changed)

        self.updateList()
        self.onLayoutFinish.append(self.selectActiveLanguage)

        self["key_red"] = Label("")
        self["key_green"] = Label("")
        self["key_yellow"] = Label(_("Add Language"))
        self["key_blue"] = Label(_("Delete Language(s)"))
        self["description"] = Label(
            _("'Save' changes active language.\n'Add Language' or MENU adds additional language(s).\n'Delete Language' allows either deletion of all but English and active language OR selected language"
              ))

        self["actions"] = ActionMap(
            ["SetupActions", "ColorActions"], {
                "ok": self.save,
                "cancel": self.cancel,
                "red": self.cancel,
                "green": self.save,
                "yellow": self.installLanguage,
                "blue": self.delLang,
                "menu": self.installLanguage,
            }, -1)
Esempio n. 7
0
    def __init__(self, session, menu_path=""):
        Screen.__init__(self, session)
        screentitle = _("Language")
        if config.usage.show_menupath.value == 'large':
            menu_path += screentitle
            title = menu_path
            self["menu_path_compressed"] = StaticText("")
        elif config.usage.show_menupath.value == 'small':
            title = screentitle
            self["menu_path_compressed"] = StaticText(
                menu_path +
                " >" if not menu_path.endswith(' / ') else menu_path[:-3] +
                " >" or "")
        else:
            title = screentitle
            self["menu_path_compressed"] = StaticText("")
        Screen.setTitle(self, title)

        language.InitLang()
        self.oldActiveLanguage = language.getActiveLanguage()
        self.catalog = language.getActiveCatalog()

        self.list = []
        # 		self["flag"] = Pixmap()
        self["summarylangname"] = StaticText()
        self["summarylangsel"] = StaticText()
        self["languages"] = List(self.list)
        self["languages"].onSelectionChanged.append(self.changed)

        self.updateList()
        self.onLayoutFinish.append(self.selectActiveLanguage)

        self["key_red"] = Label(_("Cancel"))
        self["key_green"] = Label(_("Save"))
        self["key_yellow"] = Label(_("Update Cache"))
        self["key_blue"] = Label(_("Delete Language"))

        self["actions"] = ActionMap(
            ["SetupActions", "ColorActions"], {
                "ok": self.save,
                "cancel": self.cancel,
                "red": self.cancel,
                "green": self.save,
                "yellow": self.updateCache,
                "blue": self.delLang,
            }, -1)
Esempio n. 8
0
    def __init__(self, session):
        Screen.__init__(self, session)

        self.oldActiveLanguage = language.getActiveLanguage()
        self.catalog = language.getActiveCatalog()

        self.list = []
        self["languages"] = List(self.list)
        self["languages"].onSelectionChanged.append(self.changed)

        self.updateList()
        self.onLayoutFinish.append(self.selectActiveLanguage)

        self["actions"] = ActionMap(["OkCancelActions"], {
            "ok": self.save,
            "cancel": self.cancel,
        }, -1)
Esempio n. 9
0
	def __init__(self, session):
		Screen.__init__(self, session)

		self.oldActiveLanguage = language.getActiveLanguage()
		self.catalog = language.getActiveCatalog()

		self.list = []
		self["languages"] = List(self.list)
		self["languages"].onSelectionChanged.append(self.changed)

		self.updateList()
		self.onLayoutFinish.append(self.selectActiveLanguage)

		self["actions"] = ActionMap(["OkCancelActions"],
		{
			"ok": self.save,
			"cancel": self.cancel,
		}, -1)
Esempio n. 10
0
	def __init__(self, session, menu_path=""):
		Screen.__init__(self, session)
		screentitle = _("Language selection")
		if config.usage.show_menupath.value == 'large':
			menu_path += screentitle
			title = menu_path
			self["menu_path_compressed"] = StaticText("")
		elif config.usage.show_menupath.value == 'small':
			title = screentitle
			self["menu_path_compressed"] = StaticText(menu_path + " >" if not menu_path.endswith(' / ') else menu_path[:-3] + " >" or "")
		else:
			title = screentitle
			self["menu_path_compressed"] = StaticText("")
		Screen.setTitle(self, title)

		language.InitLang()
		self.oldActiveLanguage = language.getActiveLanguage()
		self.catalog = language.getActiveCatalog()

		self.list = []
# 		self["flag"] = Pixmap()
		self["summarylangname"] = StaticText()
		self["summarylangsel"] = StaticText()
		self["languages"] = List(self.list)
		self["languages"].onSelectionChanged.append(self.changed)

		self.updateList()
		self.onLayoutFinish.append(self.selectActiveLanguage)

		self["key_red"] = Label(_("Cancel"))
		self["key_green"] = Label(_("Save"))
		self["key_yellow"] = Label(_("Update Cache"))
		self["key_blue"] = Label(_("Delete Language"))

		self["actions"] = ActionMap(["SetupActions", "ColorActions"],
		{
			"ok": self.save,
			"cancel": self.cancel,
			"red": self.cancel,
			"green": self.save,
			"yellow": self.updateCache,
			"blue": self.delLang,
		}, -1)
Esempio n. 11
0
	def __init__(self, session):
		Screen.__init__(self, session)

		self.oldActiveLanguage = language.getActiveLanguage()
		self.catalog = language.getActiveCatalog()

		self.list = []
		self["languages"] = List(self.list)
		self["languages"].onSelectionChanged.append(self.changed)

		self.updateList()
		self.onLayoutFinish.append(self.selectActiveLanguage)

		self["key_red"] = Label(_("Cancel"))
		self["key_green"] = Label(_("Save"))

		self["actions"] = ActionMap(["SetupActions", "ColorActions"],
		{
			"ok": self.save,
			"cancel": self.cancel,
			"red": self.cancel,
			"green": self.save,
		}, -1)
Esempio n. 12
0
 def __init__(self, session):
     Screen.__init__(self, session)
     self.setTitle(_('Setup Language'))
     language.InitLang()
     self.oldActiveLanguage = language.getActiveLanguage()
     self.catalog = language.getActiveCatalog()
     self.list = []
     self['summarylangname'] = StaticText()
     self['summarylangsel'] = StaticText()
     self['languages'] = List(self.list)
     self['languages'].onSelectionChanged.append(self.changed)
     self.updateList()
     self.onLayoutFinish.append(self.selectActiveLanguage)
     self['key_red'] = Label(_('Cancel'))
     self['key_green'] = Label(_('Save'))
     self['key_yellow'] = Label(_('Update Cache'))
     self['key_blue'] = Label(_('Delete Language'))
     self['actions'] = ActionMap(['SetupActions', 'ColorActions'], {'ok': self.save,
      'cancel': self.cancel,
      'red': self.cancel,
      'green': self.save,
      'yellow': self.updateCache,
      'blue': self.delLang}, -1)
Esempio n. 13
0
		if config.usage.show_menupath.value == 'large':
			menu_path += screentitle
			title = menu_path
			self["menu_path_compressed"] = StaticText("")
		elif config.usage.show_menupath.value == 'small':
			title = screentitle
			self["menu_path_compressed"] = StaticText(menu_path + " >" if not menu_path.endswith(' / ') else menu_path[:-3] + " >" or "")
		else:
			title = screentitle
			self["menu_path_compressed"] = StaticText("")
		Screen.setTitle(self, title)

<<<<<<< HEAD
		language.InitLang()
		self.oldActiveLanguage = language.getActiveLanguage()
		self.catalog = language.getActiveCatalog()

		self.list = []
# 		self["flag"] = Pixmap()
		self["summarylangname"] = StaticText()
		self["summarylangsel"] = StaticText()
		self["languages"] = List(self.list)
		self["languages"].onSelectionChanged.append(self.changed)
=======
		self.oldActiveLanguage = language.getActiveLanguage()

		self.list = []
		self["summarylangname"] = StaticText()
		self["languages"] = List(self.list)
>>>>>>> dev/Dev