Comment 4 for bug 1224329

Revision history for this message
Peng Wu (alexepico) wrote :

Take the "Status" for example:

    STATUS_CHOICES = (
        ("active", True),
        ("shutoff", True),
        ("suspended", True),
        ("paused", True),
        ("error", False),
    )

I propose to change the above code to:

    STATUS_CHOICES = (
        ("active", True, _("active")),
        ("shutoff", True, _("shutoff")),
        ("suspended", True, _("suspended")),
        ("paused", True, _("paused")),
        ("error", False, _("error")),
    )

Then the horizon Web UI can display the translated status message.