def translate(name):
    """Returns returns the translation of `name`, or `name` if no translation found.
    Can handle composed strings like: 'string_present_in_translations (other_string_1, other_string_2)'.
    Note that, in this case, the returned string may be partially translated."""
    for c in '{[(':
        if c in name:
            return compound(c, name)
    if report_missing:
        print '*', (name not in enRes.keys() and name not in langRes.values()) and (name not in enMisc.keys() and name not in langMisc.values()), name
    if (name not in enRes.keys() and name not in langRes.values()) and (name not in enMisc.keys() and name not in langMisc.values()):
        addMissing(name)
    return langRes.get(enRes.get(name, name), name)
Returns returns the translation of `name`, or `name` if no translation found.
    Can handle composed strings like: 'string_present_in_translations (other_string_1, other_string_2)'.
    Note that, in this case, the returned string may be partially translated.
mclangres.py