mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-06-18 06:06:14 +00:00
Change translation function name from _ to translate
This commit is contained in:
parent
8f572ec313
commit
4e179890ec
22 changed files with 195 additions and 195 deletions
|
@ -7,7 +7,7 @@ import logging
|
|||
import xbmc
|
||||
import xbmcgui
|
||||
|
||||
from helper import _
|
||||
from helper import translate
|
||||
from jellyfin.connection_manager import CONNECTION_STATE
|
||||
|
||||
##################################################################################################
|
||||
|
@ -110,7 +110,7 @@ class ServerConnect(xbmcgui.WindowXMLDialog):
|
|||
def _connect_server(self, server_id):
|
||||
|
||||
server = self.connect_manager.get_server_info(server_id)
|
||||
self.message.setLabel("%s %s..." % (_(30610), server['Name']))
|
||||
self.message.setLabel("%s %s..." % (translate(30610), server['Name']))
|
||||
|
||||
self.message_box.setVisibleCondition('true')
|
||||
self.busy.setVisibleCondition('true')
|
||||
|
@ -120,7 +120,7 @@ class ServerConnect(xbmcgui.WindowXMLDialog):
|
|||
if result['State'] == CONNECTION_STATE['Unavailable']:
|
||||
self.busy.setVisibleCondition('false')
|
||||
|
||||
self.message.setLabel(_(30609))
|
||||
self.message.setLabel(translate(30609))
|
||||
return False
|
||||
else:
|
||||
xbmc.sleep(1000)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue