7

Merge pull request #96 from LabD/feature/translation-support

Fixes a few translation strings and adds translation files
This commit is contained in:
Boris Besemer
2017-05-31 16:58:50 +02:00
committed by GitHub
5 changed files with 361 additions and 10 deletions

View File

@@ -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)