Merge pull request #96 from LabD/feature/translation-support
Fixes a few translation strings and adds translation files
This commit is contained in:
@@ -28,8 +28,8 @@ class Segment(ClusterableModel):
|
||||
STATUS_DISABLED = 'disabled'
|
||||
|
||||
STATUS_CHOICES = (
|
||||
(STATUS_ENABLED, 'Enabled'),
|
||||
(STATUS_DISABLED, 'Disabled'),
|
||||
(STATUS_ENABLED, _('Enabled')),
|
||||
(STATUS_DISABLED, _('Disabled')),
|
||||
)
|
||||
|
||||
name = models.CharField(max_length=255)
|
||||
@@ -64,7 +64,7 @@ class Segment(ClusterableModel):
|
||||
"{}_related".format(rule._meta.db_table),
|
||||
label=rule.__str__,
|
||||
) for rule in AbstractBaseRule.__subclasses__()
|
||||
], heading="Rules"),
|
||||
], heading=_("Rules")),
|
||||
]
|
||||
|
||||
super(Segment, self).__init__(*args, **kwargs)
|
||||
|
Reference in New Issue
Block a user