mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-05-22 16:02:46 +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
|
@ -8,7 +8,7 @@ import os
|
|||
import xbmcgui
|
||||
import xbmcaddon
|
||||
|
||||
from helper import _, addon_id
|
||||
from helper import translate, addon_id
|
||||
|
||||
##################################################################################################
|
||||
|
||||
|
@ -78,7 +78,7 @@ class LoginManual(xbmcgui.WindowXMLDialog):
|
|||
|
||||
if not user:
|
||||
# Display error
|
||||
self._error(ERROR['Empty'], _('empty_user'))
|
||||
self._error(ERROR['Empty'], translate('empty_user'))
|
||||
LOG.error("Username cannot be null")
|
||||
|
||||
elif self._login(user, password):
|
||||
|
@ -121,7 +121,7 @@ class LoginManual(xbmcgui.WindowXMLDialog):
|
|||
result = self.connect_manager.login(server, username, password)
|
||||
|
||||
if not result:
|
||||
self._error(ERROR['Invalid'], _('invalid_auth'))
|
||||
self._error(ERROR['Invalid'], translate('invalid_auth'))
|
||||
return False
|
||||
else:
|
||||
self._user = result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue