summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Fish <drfish@us.ibm.com>2015-04-14 15:32:09 -0500
committerDoug Fish <drfish@us.ibm.com>2015-04-17 20:05:25 +0000
commitdb9d7382452c8961d0b45a214114066a2a1735ad (patch)
tree3dea1b61d8c4d7a8ea78d04bf35d3d87c0caf2cf
parent71155e10a07cfd19a9c4896a50597daf38eaac19 (diff)
downloadhorizon-db9d7382452c8961d0b45a214114066a2a1735ad.tar.gz
Make status column on admin network table translatable
The status values in the admin network table are hardcoded to English. They need to be translatable. Change-Id: I0fefdcd294ce7fdcfd7822af685501d7f4f0255e Closes-Bug: 1442341 (cherry picked from commit 5c9d3ace3537b10c87c926b3463d4f476b9bcad4)
-rw-r--r--openstack_dashboard/dashboards/admin/networks/tables.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/openstack_dashboard/dashboards/admin/networks/tables.py b/openstack_dashboard/dashboards/admin/networks/tables.py
index 9807f124d..6b2fc2590 100644
--- a/openstack_dashboard/dashboards/admin/networks/tables.py
+++ b/openstack_dashboard/dashboards/admin/networks/tables.py
@@ -99,7 +99,9 @@ class NetworksTable(tables.DataTable):
verbose_name=_("DHCP Agents"))
shared = tables.Column("shared", verbose_name=_("Shared"),
filters=(filters.yesno, filters.capfirst))
- status = tables.Column("status", verbose_name=_("Status"))
+ status = tables.Column(
+ "status", verbose_name=_("Status"),
+ display_choices=project_tables.STATUS_DISPLAY_CHOICES)
admin_state = tables.Column("admin_state",
verbose_name=_("Admin State"),
display_choices=DISPLAY_CHOICES)