from django.conf import settings
from modeltranslation.translator import TranslationOptions, translator
from djangocms_baseplugins.baseplugin import defaults
from . import conf
from .models import Text


class TextTranslationOptions(TranslationOptions):
    fields = defaults.TRANSLATED_FIELDS + conf.TRANSLATED_FIELDS


if getattr(settings, 'DJANGOCMS_BASEPLUGINS_TRANSLATE', None):
    translator.register(Text, TextTranslationOptions)

7f385341f92c1d38b04034bf47afbc510db28de6
<mask token>


class TextTranslationOptions(TranslationOptions):
    <mask token>


<mask token>

<mask token>


class TextTranslationOptions(TranslationOptions):
    fields = defaults.TRANSLATED_FIELDS + conf.TRANSLATED_FIELDS


<mask token>

<mask token>


class TextTranslationOptions(TranslationOptions):
    fields = defaults.TRANSLATED_FIELDS + conf.TRANSLATED_FIELDS


if getattr(settings, 'DJANGOCMS_BASEPLUGINS_TRANSLATE', None):
    translator.register(Text, TextTranslationOptions)

from django.conf import settings
from modeltranslation.translator import TranslationOptions, translator
from djangocms_baseplugins.baseplugin import defaults
from . import conf
from .models import Text


class TextTranslationOptions(TranslationOptions):
    fields = defaults.TRANSLATED_FIELDS + conf.TRANSLATED_FIELDS


if getattr(settings, 'DJANGOCMS_BASEPLUGINS_TRANSLATE', None):
    translator.register(Text, TextTranslationOptions)
