def METHOD_NAME(self, string):
    unit = self.inputstore.sourceindex.get(string, None)
    if unit is None:
        return string
    unit = unit[0]
    if unit.istranslated():
        return unit.target
    if self.includefuzzy and unit.isfuzzy():
        return unit.target
    return unit.source