From 5c75a59c8b74352d4b4a5d64c6229caa51bea3b4 Mon Sep 17 00:00:00 2001 From: Doug Fish Date: Fri, 14 Nov 2014 12:48:35 -0600 Subject: [PATCH] Make Power State column on admin instances translatable Add missing reference to make the admin instances power state column translatable. Note that this improves the i18n behavior without requiring any new translations. Change-Id: I1a1a7640cb2a9efdf084227d325ad03a28fca6f9 Closes-Bug: #1392834 --- openstack_dashboard/dashboards/admin/instances/tables.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openstack_dashboard/dashboards/admin/instances/tables.py b/openstack_dashboard/dashboards/admin/instances/tables.py index 3bd551c8f0..9377836597 100644 --- a/openstack_dashboard/dashboards/admin/instances/tables.py +++ b/openstack_dashboard/dashboards/admin/instances/tables.py @@ -150,7 +150,8 @@ class AdminInstancesTable(tables.DataTable): display_choices=project_tables.TASK_DISPLAY_CHOICES) state = tables.Column(project_tables.get_power_state, filters=(title, filters.replace_underscores), - verbose_name=_("Power State")) + verbose_name=_("Power State"), + display_choices=project_tables.POWER_DISPLAY_CHOICES) created = tables.Column("created", verbose_name=_("Time since created"), filters=(filters.parse_isotime,