Change translation function name from _ to translate

This commit is contained in:
TrueTechy 2019-11-25 00:41:37 +00:00
parent 8f572ec313
commit 4e179890ec
22 changed files with 195 additions and 195 deletions

View file

@ -8,7 +8,7 @@ import xbmcgui
from .utils import should_stop
from .exceptions import LibraryException
from .translate import _
from .translate import translate
#################################################################################################
@ -28,10 +28,10 @@ def progress(message=None):
if item and type(item) == dict:
dialog.create(_('addon_name'), "%s %s" % (_('gathering'), item['Name']))
dialog.create(translate('addon_name'), "%s %s" % (translate('gathering'), item['Name']))
LOG.info("Processing %s: %s", item['Name'], item['Id'])
else:
dialog.create(_('addon_name'), message)
dialog.create(translate('addon_name'), message)
LOG.info("Processing %s", message)
if item: