Translation failed caused by unicode verbose_name when a table is init

Bug #962417 reported by Jim Yeh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
Medium
Jim Yeh

Bug Description

As you change your language in the setting panel,
you will find that the translation will be failed in tables.

I think it is because the instantiation of HorizonSite generate each table class.
Then, the verbose_name is fixed in its __metaclass__.

There is a similar bug. https://bugs.launchpad.net/horizon/+bug/910297
But, I think the bug is just because the translation is not finished.

Devin Carlen (devcamcar)
Changed in horizon:
milestone: none → essex-rc2
status: New → Confirmed
importance: Undecided → Medium
assignee: nobody → Nebula (nebula)
Changed in horizon:
assignee: Nebula (nebula) → Jim Yeh (lemonlatte)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/5700
Committed: http://github.com/openstack/horizon/commit/8e83bc8bc406a70432ea52084010f03765c3aa1c
Submitter: Jenkins
Branch: master

commit 8e83bc8bc406a70432ea52084010f03765c3aa1c
Author: Jim Yeh <email address hidden>
Date: Thu Mar 22 21:15:56 2012 +0800

    Use ugettext_lazy for verbose_texts instead of unicode.

     * Fix bug 962417
     * Change the ugettext to ugettext_lazy
     * Unicode the verbose_name while the
       DataTableOption is initialize will
       make the translation fixed.
     * Similar scenario in Column class and Action class.

    Change-Id: I69ce9f89b0f0c2afb32b26e15ea8db84828d840f

Changed in horizon:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in horizon:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in horizon:
milestone: essex-rc2 → 2012.1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.