Make the values of Stack Resource status be translatable

Add STATUS_DISPLAY_CHOICES in files:
openstack_dashboard/dashboards/project/stacks/tables.py

Change-Id: Ifd702cb929f9016db639346b1586da5319b9f59e
Partial-Bug: #1418027
This commit is contained in:
Wu Wenxiang 2015-02-18 15:07:50 +08:00
parent f38965ec30
commit 4bbc6d2e26
1 changed files with 3 additions and 2 deletions

View File

@ -344,6 +344,7 @@ class ResourcesTable(tables.DataTable):
("Complete", True),
("Failed", False),
)
STATUS_DISPLAY_CHOICES = StacksTable.STACK_STATUS_DISPLAY_CHOICES
logical_resource = tables.Column('resource_name',
verbose_name=_("Stack Resource"),
@ -358,8 +359,8 @@ class ResourcesTable(tables.DataTable):
filters=(filters.parse_isotime,
filters.timesince_or_never))
status = tables.Column("resource_status",
filters=(title, filters.replace_underscores),
verbose_name=_("Status"))
verbose_name=_("Status"),
display_choices=STATUS_DISPLAY_CHOICES)
statusreason = tables.Column("resource_status_reason",
verbose_name=_("Status Reason"),)