Fix missing translate calls
This commit is contained in:
@@ -14,6 +14,7 @@ from .item_functions import extract_item_info
|
||||
from .kodi_utils import HomeWindow
|
||||
from .tracking import timer
|
||||
from .filelock import FileLock
|
||||
from .utils import translate_string
|
||||
|
||||
import xbmc
|
||||
import xbmcaddon
|
||||
@@ -267,8 +268,8 @@ def clear_cached_server_data():
|
||||
del_count += 1
|
||||
|
||||
log.debug('Deleted {} files'.format(del_count))
|
||||
msg = (30394)
|
||||
xbmcgui.Dialog().ok((30393), msg)
|
||||
msg = translate_string(30394)
|
||||
xbmcgui.Dialog().ok(translate_string(30393), msg)
|
||||
|
||||
|
||||
def clear_old_cache_data():
|
||||
|
||||
@@ -19,7 +19,7 @@ from six import ensure_text
|
||||
from .kodi_utils import HomeWindow
|
||||
from .loghandler import LazyLogger
|
||||
from .tracking import timer
|
||||
from .utils import get_device_id, get_version
|
||||
from .utils import get_device_id, get_version, translate_string
|
||||
|
||||
log = LazyLogger(__name__)
|
||||
|
||||
@@ -505,8 +505,8 @@ class DownloadUtils:
|
||||
if secure or not userid:
|
||||
auth_ok = self.authenticate()
|
||||
if auth_ok == "":
|
||||
xbmcgui.Dialog().notification((30316),
|
||||
(30044),
|
||||
xbmcgui.Dialog().notification(translate_string(30316),
|
||||
translate_string(30044),
|
||||
icon="special://home/addons/plugin.video.jellycon/icon.png")
|
||||
return ""
|
||||
if not userid:
|
||||
@@ -516,8 +516,8 @@ class DownloadUtils:
|
||||
user_image = 'DefaultUser.png'
|
||||
|
||||
if userid == "":
|
||||
xbmcgui.Dialog().notification((30316),
|
||||
(30045),
|
||||
xbmcgui.Dialog().notification(translate_string(30316),
|
||||
translate_string(30045),
|
||||
icon="special://home/addons/plugin.video.jellycon/icon.png")
|
||||
|
||||
log.debug("userid: {0}".format(userid))
|
||||
@@ -705,8 +705,8 @@ class DownloadUtils:
|
||||
|
||||
log.error("HTTP response error for {0}: {1} {2}".format(url, data.status_code, data.content))
|
||||
if suppress is False:
|
||||
xbmcgui.Dialog().notification((30316),
|
||||
'{}: {}'.format((30200), data.content),
|
||||
xbmcgui.Dialog().notification(translate_string(30316),
|
||||
'{}: {}'.format(translate_string(30200), data.content),
|
||||
icon="special://home/addons/plugin.video.jellycon/icon.png")
|
||||
try:
|
||||
result = data.json()
|
||||
@@ -717,6 +717,6 @@ class DownloadUtils:
|
||||
log.error("{0}".format(format_exc()))
|
||||
log.error("Unable to connect to {0} : {1}".format(server, msg))
|
||||
if not suppress:
|
||||
xbmcgui.Dialog().notification((30316),
|
||||
xbmcgui.Dialog().notification(translate_string(30316),
|
||||
str(msg),
|
||||
icon="special://home/addons/plugin.video.jellycon/icon.png")
|
||||
|
||||
Reference in New Issue
Block a user