From 528bb1a6ecbee4bc199962a888d38bc17c2312c0 Mon Sep 17 00:00:00 2001 From: Noboru Arai Date: Tue, 17 Sep 2013 10:54:06 +0900 Subject: [PATCH] replace "ugettext" method with "ugettext_lazy" In the bug "1124276", ugettext" method was replaced with "ugettext_lazy". I do the same thing to the code which is detected by "grep" commad. Change-Id: I494538beb8f28d6ad4658e9d5e45dbde041d889c Closes-Bug: #1226354 --- openstack_dashboard/dashboards/project/firewalls/tables.py | 2 +- openstack_dashboard/dashboards/project/firewalls/tabs.py | 2 +- openstack_dashboard/dashboards/project/firewalls/views.py | 2 +- openstack_dashboard/dashboards/project/firewalls/workflows.py | 2 +- openstack_dashboard/dashboards/project/overview/views.py | 2 +- openstack_dashboard/dashboards/router/nexus1000v/tabs.py | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/openstack_dashboard/dashboards/project/firewalls/tables.py b/openstack_dashboard/dashboards/project/firewalls/tables.py index 16b0a32186..3708e683f9 100644 --- a/openstack_dashboard/dashboards/project/firewalls/tables.py +++ b/openstack_dashboard/dashboards/project/firewalls/tables.py @@ -18,7 +18,7 @@ import logging from django.core.urlresolvers import reverse # noqa -from django.utils.translation import ugettext as _ # noqa +from django.utils.translation import ugettext_lazy as _ # noqa from horizon import tables diff --git a/openstack_dashboard/dashboards/project/firewalls/tabs.py b/openstack_dashboard/dashboards/project/firewalls/tabs.py index 179cb19145..a04ce94f6a 100644 --- a/openstack_dashboard/dashboards/project/firewalls/tabs.py +++ b/openstack_dashboard/dashboards/project/firewalls/tabs.py @@ -15,7 +15,7 @@ # # @author: KC Wang, Big Switch Networks -from django.utils.translation import ugettext as _ # noqa +from django.utils.translation import ugettext_lazy as _ # noqa from horizon import exceptions from horizon import tabs diff --git a/openstack_dashboard/dashboards/project/firewalls/views.py b/openstack_dashboard/dashboards/project/firewalls/views.py index 20292d89e0..1baad62610 100644 --- a/openstack_dashboard/dashboards/project/firewalls/views.py +++ b/openstack_dashboard/dashboards/project/firewalls/views.py @@ -19,7 +19,7 @@ import logging import re from django.core.urlresolvers import reverse_lazy # noqa -from django.utils.translation import ugettext as _ # noqa +from django.utils.translation import ugettext_lazy as _ # noqa from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/firewalls/workflows.py b/openstack_dashboard/dashboards/project/firewalls/workflows.py index 89ca12a060..18b7eca5bd 100644 --- a/openstack_dashboard/dashboards/project/firewalls/workflows.py +++ b/openstack_dashboard/dashboards/project/firewalls/workflows.py @@ -17,7 +17,7 @@ import logging -from django.utils.translation import ugettext as _ # noqa +from django.utils.translation import ugettext_lazy as _ # noqa from horizon import exceptions from horizon import forms diff --git a/openstack_dashboard/dashboards/project/overview/views.py b/openstack_dashboard/dashboards/project/overview/views.py index 28cd535f6e..a1a00b1ae6 100644 --- a/openstack_dashboard/dashboards/project/overview/views.py +++ b/openstack_dashboard/dashboards/project/overview/views.py @@ -21,7 +21,7 @@ from django.template.defaultfilters import capfirst # noqa from django.template.defaultfilters import floatformat # noqa -from django.utils.translation import ugettext as _ # noqa +from django.utils.translation import ugettext_lazy as _ # noqa from django.views.generic import TemplateView # noqa from openstack_dashboard import usage diff --git a/openstack_dashboard/dashboards/router/nexus1000v/tabs.py b/openstack_dashboard/dashboards/router/nexus1000v/tabs.py index 48bf2701ea..28f8b980a6 100644 --- a/openstack_dashboard/dashboards/router/nexus1000v/tabs.py +++ b/openstack_dashboard/dashboards/router/nexus1000v/tabs.py @@ -15,7 +15,7 @@ # @author: Abishek Subramanian, Cisco Systems, Inc. # @author: Sergey Sudakovich, Cisco Systems, Inc. -from django.utils.translation import ugettext as _ # noqa +from django.utils.translation import ugettext_lazy as _ # noqa from horizon import tabs