def getLocalizedString(stringId): try: return py2_encode(ADDON.getLocalizedString(stringId), 'utf-8', 'ignore') except: return stringId
def GetLocalizedString(self, *args, **kwargs): return ADDON.getLocalizedString(*args, **kwargs).encode('utf-8', 'ignore')
def getLocalizedStringMatch(match): try: return ADDON.getLocalizedString(int(match.group(1))) except: return match.group(1)