Revert "Test traduction"

This reverts commit 07f2e986.
parent 07f2e986
......@@ -325,7 +325,7 @@ if os.path.exists(f):
exec(open(f, "rb").read())
LOCALE_PATHS = (PROJECT_ROOT + "/locale/",)
LOCALE_PATHS = (PROJECT_ROOT + "/locale",)
print(LOCALE_PATHS)
####################
......
from modeltranslation.translator import translator, TranslationOptions
from .models import EXPERIENCE_TYPE, TEACHING_CHOICES, TRAINING_CHOICES
from .models import COMPUTER_SKILLS_CHOICES, ASSOCIATIVE_CHOICES, PUBLICATION_TYPE
from .models import Oversight, OversightPage
from .models import PersonalInfo
from .models import SocialMedia
......@@ -17,17 +15,6 @@ from .models import Certification, CertificationPage
from .models import Teaching, TeachingPage
from .models import ResumePage, AboutMePage
class Attributes:
experience = EXPERIENCE_TYPE
teaching = TEACHING_CHOICES
training = TRAINING_CHOICES
computer = COMPUTER_SKILLS_CHOICES
associative = ASSOCIATIVE_CHOICES
publication = PUBLICATION_TYPE
class AttributesTranslationOptions(TranslationOptions):
fields = ("experience", "teaching", "training", "computer", "associative", "publication")
class OversightTranslationOptions(TranslationOptions):
fields = ("item_title",)
......@@ -114,7 +101,6 @@ class ResumePageTranslationOptions(TranslationOptions):
class AboutMePageTranslationsOptions(TranslationOptions):
fields = ()
translator.register(Attributes, AttributesTranslationOptions)
translator.register(Oversight, OversightTranslationOptions)
translator.register(OversightPage, OversightPageTranslationOptions)
translator.register(PersonalInfo, PersonalInfoTranslationOptions)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment