def add_system_field(name, **opts):
    for key, value in opts.items():
        if key.endswith('_i18n'):
            base_key = key[:-5]
            for lang, trans in load_i18n_block(value).iteritems():
                opts[(base_key, lang) % '%s[%s]'] = trans

    ty = types.builtin_types[opts.pop('type')]
    system_fields[name] = (ty, opts)


# The full path of the record
dataset/ETHPy150Open lektor/lektor-archive/lektor/datamodel.py/add_system_field/swapped operands of `%`