Skip to content

Commit

Permalink
Replaces ugettext with ugettext_lazy in the dashboard-related files
Browse files Browse the repository at this point in the history
While most files correctly import ugettext_lazy, some are importing ugettext instead.
This is causing some parts of the dashboard to not translate correctly when a user
switches languages. The core cause of this is because ugettext will translate the
string once when the django application starts. ugettext_lazy will translate when the
string is retrieved.

Change-Id: Ibbdef60b3616d13aa7c2c5449ca592bf214a5f71
Fixes: bug #1124276
  • Loading branch information
jtopjian committed Feb 16, 2013
1 parent 9005722 commit d107e4d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Expand Up @@ -17,7 +17,7 @@
import logging

from django.core.urlresolvers import reverse
from django.utils.translation import ugettext as _
from django.utils.translation import ugettext_lazy as _

from horizon import exceptions

Expand Down
2 changes: 1 addition & 1 deletion openstack_dashboard/dashboards/admin/projects/workflows.py
Expand Up @@ -20,7 +20,7 @@


from django.conf import settings
from django.utils.translation import ugettext as _
from django.utils.translation import ugettext_lazy as _
from django.core.urlresolvers import reverse

from horizon import exceptions
Expand Down
Expand Up @@ -22,7 +22,7 @@
import logging

from django.utils.text import normalize_newlines
from django.utils.translation import ugettext as _
from django.utils.translation import ugettext_lazy as _

from horizon import exceptions
from horizon import forms
Expand Down
Expand Up @@ -19,7 +19,7 @@
import netaddr

from django.core.urlresolvers import reverse
from django.utils.translation import ugettext as _
from django.utils.translation import ugettext_lazy as _

from horizon import exceptions
from horizon import forms
Expand Down
Expand Up @@ -19,7 +19,7 @@
import netaddr

from django.core.urlresolvers import reverse
from django.utils.translation import ugettext as _
from django.utils.translation import ugettext_lazy as _

from horizon import exceptions
from horizon import forms
Expand Down

0 comments on commit d107e4d

Please sign in to comment.