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