def create_translation_field(translated_field, language):
    """
    Takes the original field, a given language, a decider model and return a
    Field class for model.
    """
    cls_name = translated_field.__class__.__name__

    if not isinstance(translated_field, SUPPORTED_FIELDS):
        raise ImproperlyConfigured(cls_name % '%s is not supported by Linguist.')

    translation_class = field_factory(translated_field.__class__)

    return translation_class(translated_field=translated_field,
                             language=language)
dataset/ETHPy150Open ulule/django-linguist/linguist/metaclasses.py/create_translation_field/swapped operands of `%`