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.
Take the "Status" for example:
STATUS_CHOICES = (
("suspended" , True),
("active", True),
("shutoff", True),
("paused", True),
("error", False),
)
I propose to change the above code to:
STATUS_CHOICES = (
("suspended" , True, _("suspended")),
("active", True, _("active")),
("shutoff", True, _("shutoff")),
("paused", True, _("paused")),
("error", False, _("error")),
)
Then the horizon Web UI can display the translated status message.