'Return a list of language codes'

@staticmethod
def get_langcodes():

    lang_list = []
    langdir = os.path.join(current.request.folder, 'languages')
    files = os.listdir(langdir)
    for f in files:
        lang_list.append(f[:(-3)])
    return lang_list
