def process_locales(series):
    languages = dict((k.lower(), v['native'])
                     for k, v in product_details.languages.items())
    for row in series:
        if 'data' in row:
            new = {}
            for key, count in row['data'].items():
                if key in languages:
                    k = u'%s (%s)' % (languages[key], key)
                    new[k] = count
            row['data'] = new
        yield row
Module's Home Page
dataset/ETHPy150Open mozilla/addons-server/src/olympia/stats/views.py/process_locales--crossover with--dataset/ETHPy150Open sahana/eden/controllers/cap.py/index