Untranslated strings found in Launch Instance window

Bug #1561550 reported by Yuko Katabami
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Dashboard (Horizon)
Fix Released
High
Richard Jones

Bug Description

Project > Instances > Launch Instance > Details

Strings "Instance Name" and "Count" are not localized in the UI.

DRF Added: also "Configuration Drive" on the Configuration step is not localized.

According to Motoki-san (amotoki), those strings are not included in pot files under the horizon project, despite they are labled with "translate" in the directives and should be considered as translatable. It could be due to the tool's bug which inserts linebreaks, possibly preventing the strings to be extracted.

https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/static/dashboard/project/workflow/launch-instance/details/details.html#L9

Revision history for this message
Yuko Katabami (ykatabam) wrote :
tags: added: i18n
Changed in horizon:
status: New → Confirmed
importance: Undecided → High
Changed in horizon:
milestone: none → newton-1
Eddie Ramirez (ediardo)
Changed in horizon:
assignee: nobody → Eddie Ramirez (ediardo)
tags: added: mitaka-backport-potential
Doug Fish (drfish)
description: updated
Revision history for this message
Richard Jones (r1chardj0n3s) wrote :

The extension to babel is not including the attributes on tags embedded in the translation message string, thus it doesn't match the original.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (master)

Fix proposed to branch: master
Review: https://review.openstack.org/302526

Changed in horizon:
assignee: Eddie Ramirez (ediardo) → Richard Jones (r1chardj0n3s)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (master)

Reviewed: https://review.openstack.org/302526
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=fdf0bf6f186f056fea6ed5761616c40463a2e269
Submitter: Jenkins
Branch: master

commit fdf0bf6f186f056fea6ed5761616c40463a2e269
Author: Richard Jones <email address hidden>
Date: Thu Apr 7 14:28:05 2016 +1000

    Fix babel msgids to include tag attributes and entities

    The messages for translation were omitting the attributes in
    tags and HTML entities embedded in the translation strings,
    thus they no longer matched the original HTML.

    Additionally, HTML entities are mostly (but not always) decoded
    by the browser before angular-gettext sees them, so we have to
    emulate this behaviour in our babel extractor so the message
    ids match.

    Change-Id: Ie6ae0776a2c0d7db589b34a9e7676508178a473d
    Closes-Bug: 1561550
    Closes-Bug: 1561738
    Closes-Bug: 1561761

Changed in horizon:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to horizon (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/316767

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/horizon 10.0.0.0b1

This issue was fixed in the openstack/horizon 10.0.0.0b1 development milestone.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to horizon (stable/mitaka)

Reviewed: https://review.openstack.org/316767
Committed: https://git.openstack.org/cgit/openstack/horizon/commit/?id=dfeacc294fec956fd98892d4ad6534a9427bc3a1
Submitter: Jenkins
Branch: stable/mitaka

commit dfeacc294fec956fd98892d4ad6534a9427bc3a1
Author: Richard Jones <email address hidden>
Date: Thu Apr 7 14:28:05 2016 +1000

    Fix babel msgids to include tag attributes and entities

    The messages for translation were omitting the attributes in
    tags and HTML entities embedded in the translation strings,
    thus they no longer matched the original HTML.

    Additionally, HTML entities are mostly (but not always) decoded
    by the browser before angular-gettext sees them, so we have to
    emulate this behaviour in our babel extractor so the message
    ids match.

    Change-Id: Ie6ae0776a2c0d7db589b34a9e7676508178a473d
    Closes-Bug: 1561550
    Closes-Bug: 1561738
    Closes-Bug: 1561761
    (cherry picked from commit fdf0bf6f186f056fea6ed5761616c40463a2e269)

tags: added: in-stable-mitaka
Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/horizon 9.0.1

This issue was fixed in the openstack/horizon 9.0.1 release.

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.