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
This commit is contained in:
parent
027a1a09aa
commit
528bb1a6ec
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user