def field_factory(base_class):
    """
    Takes a field base class and wrap it with ``TranslationField`` class.
    """
    from .fields import TranslationField

    class TranslationFieldField(TranslationField, base_class):
        pass

    TranslationFieldField.__name__ = base_class.__name__ % 'Translation%s'

    return TranslationFieldField
dataset/ETHPy150Open ulule/django-linguist/linguist/metaclasses.py/field_factory/swapped operands of `%`