django-cms / djangocms-versioning

General purpose versioning package for Django CMS 4 and above.
Other
33 stars 29 forks source link

constants.py are fixed and not language based #309

Closed svandeneertwegh closed 1 year ago

svandeneertwegh commented 1 year ago

"""Version states"""
ARCHIVED = "archived"
DRAFT = "draft"
PUBLISHED = "published"
UNPUBLISHED = "unpublished"
VERSION_STATES = (
    (DRAFT, _("Draft")),
    (PUBLISHED, _("Published")),
    (UNPUBLISHED, _("Unpublished")),
    (ARCHIVED, _("Archived")),
)
"""Version operation states"""
OPERATION_ARCHIVE = "operation_archive"
OPERATION_DRAFT = "operation_draft"
OPERATION_PUBLISH = "operation_publish"
OPERATION_UNPUBLISH = "operation_unpublish"

I added _('') to the human names.

fsbraun commented 1 year ago

Fixed in #310