'Represent a language code by language name, translated
into current UI language (preferrable for database fields).
@param code: the language code'

@classmethod
def represent_local(cls, code):

    name = dict(cls.language_codes()).get(code)
    if (name is None):
        name = current.messages.UNKNOWN_OPT
    else:
        name = current.T(name)
    return name
