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