From ebda8428503a031e90919bf195a25ecd18fbf6ee Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Thu, 25 Apr 2019 17:41:26 +0200 Subject: [PATCH] Removed esp lagnuages from news and side menu --- channels/news.py | 10 ++++----- channels/side_menu.py | 50 +++++++++++++++++++++---------------------- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/channels/news.py b/channels/news.py index adf5aebf..85dbdfc2 100644 --- a/channels/news.py +++ b/channels/news.py @@ -561,12 +561,12 @@ def menu_opciones(item): title=config.get_localized_string(60529), thumbnail=get_thumb("channels_anime.png"), folder=False)) - itemlist.append( - Item(channel=item.channel, action="setting_channel", extra="castellano", title=config.get_localized_string(70212), - thumbnail=get_thumb("channels_documentary.png"), folder=False)) + # itemlist.append( + # Item(channel=item.channel, action="setting_channel", extra="castellano", title=config.get_localized_string(70212), + # thumbnail=get_thumb("channels_documentary.png"), folder=False)) - itemlist.append(Item(channel=item.channel, action="setting_channel", extra="latino", title=config.get_localized_string(70213), - thumbnail=get_thumb("channels_documentary.png"), folder=False)) + # itemlist.append(Item(channel=item.channel, action="setting_channel", extra="latino", title=config.get_localized_string(70213), + # thumbnail=get_thumb("channels_documentary.png"), folder=False)) itemlist.append(Item(channel=item.channel, action="setting_channel", extra="Torrent", title=config.get_localized_string(70214), thumbnail=get_thumb("channels_documentary.png"), folder=False)) diff --git a/channels/side_menu.py b/channels/side_menu.py index 764c4dd7..7c6794b1 100644 --- a/channels/side_menu.py +++ b/channels/side_menu.py @@ -192,32 +192,32 @@ class Main(xbmcgui.WindowXMLDialog): self.buttons.append(self.button_docu) posy += space - label = config.get_localized_string(70013) - self.button_terror = xbmcgui.ControlButton(posx, posy, width, height, label, font=font, - alignment=0x00000000, noFocusTexture='', - focusTexture=media_path+selected, textColor=textcolor, - shadowColor=shadow, textOffsetX=offsetx, textOffsetY=offsety) - self.addControl(self.button_terror) - self.buttons.append(self.button_terror) + # label = config.get_localized_string(70013) + # self.button_terror = xbmcgui.ControlButton(posx, posy, width, height, label, font=font, + # alignment=0x00000000, noFocusTexture='', + # focusTexture=media_path+selected, textColor=textcolor, + # shadowColor=shadow, textOffsetX=offsetx, textOffsetY=offsety) + # self.addControl(self.button_terror) + # self.buttons.append(self.button_terror) - if channelselector.auto_filter() == 'esp': - posy += space - label = config.get_localized_string(59981) - self.button_lat = xbmcgui.ControlButton(posx, posy, width, height, label, font=font, alignment=0x00000000, - noFocusTexture='', focusTexture=media_path+selected, - textColor=textcolor, shadowColor=shadow, textOffsetX=offsetx, - textOffsetY=offsety) - self.addControl(self.button_lat) - self.buttons.append(self.button_lat) - posy += space - label = config.get_localized_string(70014) - self.button_cast = xbmcgui.ControlButton(posx, posy, width, height, label, font=font, alignment=0x00000000, - noFocusTexture='', focusTexture=media_path + selected, - textColor=textcolor, shadowColor=shadow, textOffsetX=offsetx, - textOffsetY=offsety) - self.addControl(self.button_cast) - self.buttons.append(self.button_cast) - posy += space + # if channelselector.auto_filter() == 'esp': + # posy += space + # label = config.get_localized_string(59981) + # self.button_lat = xbmcgui.ControlButton(posx, posy, width, height, label, font=font, alignment=0x00000000, + # noFocusTexture='', focusTexture=media_path+selected, + # textColor=textcolor, shadowColor=shadow, textOffsetX=offsetx, + # textOffsetY=offsety) + # self.addControl(self.button_lat) + # self.buttons.append(self.button_lat) + # posy += space + # label = config.get_localized_string(70014) + # self.button_cast = xbmcgui.ControlButton(posx, posy, width, height, label, font=font, alignment=0x00000000, + # noFocusTexture='', focusTexture=media_path + selected, + # textColor=textcolor, shadowColor=shadow, textOffsetX=offsetx, + # textOffsetY=offsety) + # self.addControl(self.button_cast) + # self.buttons.append(self.button_cast) + # posy += space label = config.get_localized_string(70015) self.button_torrent = xbmcgui.ControlButton(posx, posy, width, height, label, font=font, alignment=0x00000000, noFocusTexture='',